@Deprecated public class J2ERequestContext extends BaseResponseContext
responseContent, responseContentType, responseCookies, responseEncoding, responseHeaders, responseLocation, responseStatus
Constructor and Description |
---|
J2ERequestContext(javax.servlet.http.HttpServletRequest request)
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 |
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.
|
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, setResponseCharacterEncoding, setResponseContentType, setResponseHeader, setResponseStatus, writeResponseContent
public J2ERequestContext(javax.servlet.http.HttpServletRequest request)
public String getRequestParameter(String name)
name
- name of the parameterpublic Map<String,String[]> getRequestParameters()
public Object getRequestAttribute(String name)
name
- the name of the attributepublic void setRequestAttribute(String name, Object value)
name
- the name of the attributevalue
- the attributepublic String getRequestHeader(String name)
name
- name of the headerpublic void setSessionAttribute(String name, Object value)
name
- name of the session attributevalue
- value of the session attributepublic Object getSessionAttribute(String name)
name
- name of the session attributepublic Object getSessionIdentifier()
WebContext
public String getRequestMethod()
public String getRemoteAddr()
public javax.servlet.http.HttpServletRequest getRequest()
public String getServerName()
public int getServerPort()
public String getScheme()
public String getFullRequestURL()
public Collection<Cookie> getRequestCookies()
WebContext
Copyright © 2015. All Rights Reserved.