@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, writeResponseContent
public J2ERequestContext(javax.servlet.http.HttpServletRequest request)
public J2ERequestContext(javax.servlet.http.HttpServletRequest request, SessionStore sessionStore)
public String getRequestParameter(String name)
WebContext
name
- name of the parameterpublic Map<String,String[]> getRequestParameters()
WebContext
public Object getRequestAttribute(String name)
WebContext
name
- the name of the attributepublic void setRequestAttribute(String name, Object value)
WebContext
name
- the name of the attributevalue
- the attributepublic String getRequestHeader(String name)
WebContext
name
- name of the headerpublic void setSessionAttribute(String name, Object value)
WebContext
name
- name of the session attributevalue
- value of the session attributepublic Object getSessionAttribute(String name)
WebContext
name
- name of the session attributepublic Object getSessionIdentifier()
WebContext
public String getRequestMethod()
WebContext
public String getRemoteAddr()
WebContext
public javax.servlet.http.HttpServletRequest getRequest()
public SessionStore getSessionStore()
public String getServerName()
WebContext
public int getServerPort()
WebContext
public String getScheme()
WebContext
public boolean isSecure()
WebContext
public String getFullRequestURL()
WebContext
public Collection<Cookie> getRequestCookies()
WebContext
public String getPath()
WebContext
Copyright © 2016. All rights reserved.