public class HttpExchange extends Object
| Modifier and Type | Field and Description |
|---|---|
static HttpObjectSerializer |
DEFAULT_SERIALIZER |
static String |
SESSION_ATTR_USER |
| Constructor and Description |
|---|
HttpExchange(javax.servlet.http.HttpServletRequest coreRequest,
javax.servlet.http.HttpServletResponse coreResponse) |
| Modifier and Type | Method and Description |
|---|---|
javax.servlet.http.HttpServletRequest |
getCoreRequest() |
javax.servlet.http.HttpServletResponse |
getCoreResponse() |
User |
getCurrentUser()
Returns the user associated with this HTTP exchange.
|
protected HttpObjectSerializer |
getCustomHttpObjectSerializer()
Returns a customized serializer used by this exchange.
|
protected HttpRequest |
getCustomRequest(javax.servlet.http.HttpServletRequest coreRequest)
Returns a customized instance of request.
|
protected HttpResponse |
getCustomResponse(javax.servlet.http.HttpServletResponse coreResponse)
Returns a customized instance of response.
|
HttpObjectSerializer |
getHttpObjectSerializer()
Returns the default serializer used by this exchange.
|
HttpRequest |
getRequest()
Returns the request associated with this exchange.
|
HttpResponse |
getResponse()
Returns the response associated with this exchange.
|
void |
setCurrentUser(User user)
Sets the user associated with this HTTP exchange.
|
String |
toString() |
public static final HttpObjectSerializer DEFAULT_SERIALIZER
public static final String SESSION_ATTR_USER
public HttpExchange(javax.servlet.http.HttpServletRequest coreRequest,
javax.servlet.http.HttpServletResponse coreResponse)
public javax.servlet.http.HttpServletRequest getCoreRequest()
public javax.servlet.http.HttpServletResponse getCoreResponse()
public HttpObjectSerializer getHttpObjectSerializer()
protected HttpObjectSerializer getCustomHttpObjectSerializer()
public HttpRequest getRequest()
protected HttpRequest getCustomRequest(javax.servlet.http.HttpServletRequest coreRequest)
coreRequest - core HTTP request.public HttpResponse getResponse()
protected HttpResponse getCustomResponse(javax.servlet.http.HttpServletResponse coreResponse)
coreResponse - core HTTP response.public User getCurrentUser()
public void setCurrentUser(User user)
user - application user.Copyright © 2016 Agapsys Tecnologia Ltda-ME. All rights reserved.