public class Redirect extends Object implements Renderable
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_ENCODING_CHARSET |
protected static int |
UNSET_RESPONSE_CODE |
| Modifier and Type | Method and Description |
|---|---|
Redirect |
addParameter(String name,
String value) |
Redirect |
encodeWith(String encodingCharset) |
boolean |
equals(Object o) |
protected String |
getEncodingCharset() |
protected String |
getParametarizedPath() |
protected Map<String,String> |
getParameters() |
protected int |
getResponseCode() |
protected String |
getTo() |
int |
hashCode() |
Response |
render(RequestContext context,
ResponseContext response)
Render invocation result to response.
|
Redirect |
resoposeCode(int responseCode) |
protected void |
sendRedirect(RequestContext context,
ResponseContext response,
URI encodedPath,
int responseCode) |
static Redirect |
to(String path) |
protected static final String DEFAULT_ENCODING_CHARSET
protected static final int UNSET_RESPONSE_CODE
public Response render(RequestContext context, ResponseContext response) throws IOException, WebApplicationException
Renderablerender in interface Renderablecontext - RequestContextresponse - ResponseContextIOException - I/O error.WebApplicationException - other exception.protected void sendRedirect(RequestContext context, ResponseContext response, URI encodedPath, int responseCode) throws IOException
IOExceptionprotected String getTo()
protected String getParametarizedPath()
protected final String getEncodingCharset()
protected int getResponseCode()
public Redirect resoposeCode(int responseCode)
Copyright © 2011-2017 Analog Web Framework Development Team. All Rights Reserved.