HTTP.Servlet.Response

Description

Functions to operate on HTTP servlet response objects.

Functions

NameSignature and Synopsis
getCookieObject getCookie(String cookieName, String cookieValue, String domain, String path, int expiry)
Creates a cookie object to be set on the response.
sendRedirectTovoid sendRedirectTo(Object context, String redirectURL)
Responds by redirecting the client to a different URL.
setCookievoid setCookie(Object response, Object cookie)
Adds a cookie object to the response.
setResponseContentvoid setResponseContent(Object context, Object content, boolean commitResponse)
Sets the String or byte[] response content in the servlet response, and sends the response.
setResponseHeadervoid setResponseHeader(Object response, String headerName, String headerValue)
Sets a response header.
setResponseStatusCodevoid setResponseStatusCode(Object context, int statusCode)
Sets the status code in the servlet response.