public class ActionResponse extends ServletExchange
| Modifier | Constructor and Description |
|---|---|
protected |
ActionResponse(ActionResponse wrappedResponse) |
| Modifier and Type | Method and Description |
|---|---|
ActionResponse |
addCookie(String name,
String value,
int maxAge)
Adds a cookie for request context path.
|
ActionResponse |
addCookie(String name,
String value,
int maxAge,
String path)
Adds a cookie.
|
ActionResponse |
addHeader(String name,
String value) |
ActionRequest |
getRequest() |
protected ActionResponse |
getWrappedResponse() |
ActionResponse |
removeCookie(String name)
Removes a cookie for request context path.
|
ActionResponse |
removeCookie(String name,
String path)
Removes a cookie.
|
ActionResponse |
sendPermanentRedirect(String location) |
ActionResponse |
sendTemporaryRedirect(String location) |
ActionResponse |
setHeader(String name,
String value) |
ActionResponse |
setStatus(int status) |
getServletRequest, getServletResponseprotected ActionResponse(ActionResponse wrappedResponse)
protected final ActionResponse getWrappedResponse()
public final ActionResponse addCookie(String name, String value, int maxAge, String path)
name - cookie namevalue - cookie valuemaxAge - an integer specifying the maximum age of the cookie in seconds; if negative, means the cookie is not stored; if zero, deletes the cookiepath - cookie path (usually HttpServletRequest.getContextPath())public final ActionResponse addCookie(String name, String value, int maxAge)
name - cookie namevalue - cookie valuemaxAge - an integer specifying the maximum age of the cookie in seconds; if negative, means the cookie is not stored; if zero, deletes the cookiepublic final ActionResponse removeCookie(String name, String path)
name - name of the cookie to be removedpath - cookie path ((usually HttpServletRequest.getContextPath())public final ActionResponse setHeader(String name, String value)
public final ActionResponse addHeader(String name, String value)
public final ActionResponse removeCookie(String name)
name - name of the cookie to be removedpublic final ActionResponse sendTemporaryRedirect(String location) throws IOException
IOExceptionpublic final ActionResponse sendPermanentRedirect(String location) throws IOException
IOExceptionpublic final ActionResponse setStatus(int status) throws IOException
IOExceptionpublic final ActionRequest getRequest()
Copyright © 2017 Agapsys Tecnologia Ltda-ME. All rights reserved.