public class RequestContext extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
_contentLength |
protected String |
_contentType |
protected Map<String,String> |
_headers |
protected HTTPMethod |
_httpMethod |
protected javax.servlet.http.HttpSession |
_httpSession |
protected javax.servlet.http.Cookie[] |
_inputCookies |
protected com.fasterxml.jackson.databind.JsonNode |
_jsonContent |
protected MatchedRoute |
_matchedRoute |
protected String |
_originalPath |
protected String |
_path |
protected Map<String,List<String>> |
_queryParams |
protected String |
_queryString |
protected String |
_remoteAddress |
protected String |
_remoteUser |
protected String |
_requestId |
protected InputStream |
_requestStream |
protected javax.servlet.http.Cookie |
_sessionCookie |
protected boolean |
_unmarshallJson |
protected WebSession |
_webSession |
| Constructor and Description |
|---|
RequestContext(HTTPMethod httpMethod,
javax.servlet.http.HttpServletRequest request) |
RequestContext(HTTPMethod httpMethod,
javax.servlet.http.HttpServletRequest request,
boolean unmarshallJson) |
protected MatchedRoute _matchedRoute
protected HTTPMethod _httpMethod
protected String _path
protected String _originalPath
protected String _queryString
protected String _contentType
protected String _remoteAddress
protected String _remoteUser
protected String _requestId
protected int _contentLength
protected javax.servlet.http.HttpSession _httpSession
protected InputStream _requestStream
protected com.fasterxml.jackson.databind.JsonNode _jsonContent
protected javax.servlet.http.Cookie _sessionCookie
protected javax.servlet.http.Cookie[] _inputCookies
protected boolean _unmarshallJson
protected WebSession _webSession
public RequestContext(HTTPMethod httpMethod, javax.servlet.http.HttpServletRequest request)
public RequestContext(HTTPMethod httpMethod, javax.servlet.http.HttpServletRequest request, boolean unmarshallJson)
public String getContentType()
public String getQueryString()
public String getProto()
public int getPort()
public final void setHttpMethod(HTTPMethod httpMethod)
public final HTTPMethod getHttpMethod()
public final int getContentLength()
public final String getParameter(String key)
public final String getPath()
public final void setPath(String path)
public String getOriginalPath()
public final void setRemoteAddress(String remoteAddress)
public final String getRemoteAddress()
public final void setRemoteUser(String remoteUser)
public final String getRemoteUser()
public final String getRequestId()
public boolean isGZipAccepted()
public InputStream getRequestStream()
public javax.servlet.http.HttpSession getSession()
public com.fasterxml.jackson.databind.JsonNode getJsonContent()
public javax.servlet.http.Cookie getSessionCookie()
public void setSessionCookie(javax.servlet.http.Cookie sessionCookie)
public javax.servlet.http.Cookie[] getCookies()
public void setMatchedRoute(MatchedRoute matchedRoute)
public MatchedRoute getMatchedRoute()
public WebSession getWebSession()
public void setWebSession(WebSession webSession)
Copyright © 2017. All rights reserved.