@Deprecated public class J2ERequestContext extends BaseResponseContext
responseContent, responseContentType, responseCookies, responseEncoding, responseHeaders, responseLocation, responseStatus| Constructor and Description |
|---|
J2ERequestContext(javax.servlet.http.HttpServletRequest request)
Deprecated.
|
J2ERequestContext(javax.servlet.http.HttpServletRequest request,
SessionStore sessionStore)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFullRequestURL()
Deprecated.
Return the full URL (with query string) the client used to request the server.
|
String |
getPath()
Deprecated.
Get the "servlet path" (in a J2E style).
|
String |
getRemoteAddr()
Deprecated.
Return the remote address.
|
javax.servlet.http.HttpServletRequest |
getRequest()
Deprecated.
Return the HTTP request.
|
Object |
getRequestAttribute(String name)
Deprecated.
Return a request attribute.
|
Collection<Cookie> |
getRequestCookies()
Deprecated.
Retrieves request cookies.
|
String |
getRequestHeader(String name)
Deprecated.
Return a request header.
|
String |
getRequestMethod()
Deprecated.
Return the request method.
|
String |
getRequestParameter(String name)
Deprecated.
Return a request parameter.
|
Map<String,String[]> |
getRequestParameters()
Deprecated.
Return all request parameters.
|
String |
getScheme()
Deprecated.
Return the scheme.
|
String |
getServerName()
Deprecated.
Return the server name.
|
int |
getServerPort()
Deprecated.
Return the server port.
|
Object |
getSessionAttribute(String name)
Deprecated.
Get an attribute from session.
|
Object |
getSessionIdentifier()
Deprecated.
Gets the session id for this context.
|
SessionStore |
getSessionStore()
Deprecated.
|
boolean |
isSecure()
Deprecated.
Return whether the request is secure.
|
void |
setRequestAttribute(String name,
Object value)
Deprecated.
Save a request attribute.
|
void |
setSessionAttribute(String name,
Object value)
Deprecated.
Save an attribute in session.
|
addResponseCookie, getResponseContent, getResponseContentType, getResponseEncoding, getResponseHeaders, getResponseLocation, getResponseStatus, setResponseContentType, setResponseHeader, setResponseStatus, writeResponseContentpublic J2ERequestContext(javax.servlet.http.HttpServletRequest request)
public J2ERequestContext(javax.servlet.http.HttpServletRequest request,
SessionStore sessionStore)
public String getRequestParameter(String name)
WebContextname - name of the parameterpublic Map<String,String[]> getRequestParameters()
WebContextpublic Object getRequestAttribute(String name)
WebContextname - the name of the attributepublic void setRequestAttribute(String name, Object value)
WebContextname - the name of the attributevalue - the attributepublic String getRequestHeader(String name)
WebContextname - name of the headerpublic void setSessionAttribute(String name, Object value)
WebContextname - name of the session attributevalue - value of the session attributepublic Object getSessionAttribute(String name)
WebContextname - name of the session attributepublic Object getSessionIdentifier()
WebContextpublic String getRequestMethod()
WebContextpublic String getRemoteAddr()
WebContextpublic javax.servlet.http.HttpServletRequest getRequest()
public SessionStore getSessionStore()
public String getServerName()
WebContextpublic int getServerPort()
WebContextpublic String getScheme()
WebContextpublic boolean isSecure()
WebContextpublic String getFullRequestURL()
WebContextpublic Collection<Cookie> getRequestCookies()
WebContextpublic String getPath()
WebContextCopyright © 2016. All Rights Reserved.