public interface HttpRequest extends Request
HttpServletRequest that is to be processed, in order to
produce the corresponding HttpResponse.| Modifier and Type | Method and Description |
|---|---|
void |
addCookie(javax.servlet.http.Cookie cookie)
Add a Cookie to the set of Cookies associated with this Request.
|
void |
addHeader(String name,
String value)
Add a Header to the set of Headers associated with this Request.
|
void |
addLocale(Locale locale)
Add a Locale to the set of preferred Locales for this Request.
|
void |
addParameter(String name,
String[] values)
Add a parameter name and corresponding set of values to this Request.
|
void |
clearCookies()
Clear the collection of Cookies associated with this Request.
|
void |
clearHeaders()
Clear the collection of Headers associated with this Request.
|
void |
clearLocales()
Clear the collection of Locales associated with this Request.
|
void |
clearParameters()
Clear the collection of parameters associated with this Request.
|
String |
getDecodedRequestURI()
Get the decoded request URI.
|
org.glassfish.grizzly.http.util.DataChunk |
getRequestPathMB()
Get the request path.
|
void |
replayPayload(byte[] payloadByteArray) |
void |
setAuthType(String type)
Set the authentication type used for this request, if any; otherwise
set the type to
null. |
void |
setMethod(String method)
Set the HTTP request method used for this Request.
|
void |
setPathInfo(String path)
Set the path information for this Request.
|
void |
setQueryString(String query)
Set the query string for this Request.
|
void |
setRequestedSessionCookie(boolean flag)
Set a flag indicating whether or not the requested session ID for this
request came in through a cookie.
|
void |
setRequestedSessionId(String id)
Set the requested session ID for this request.
|
void |
setRequestedSessionURL(boolean flag)
Set a flag indicating whether or not the requested session ID for this
request came in through a URL.
|
void |
setRequestURI(String uri)
Set the unparsed request URI for this Request.
|
void |
setServletPath(String path)
Set the servlet path for this Request.
|
void |
setUserPrincipal(Principal principal)
Set the Principal who has been authenticated for this Request.
|
changeSessionId, createInputStream, disableAsyncSupport, finishRequest, generateSessionId, getAuthorization, getCheckRestrictedResources, getConnector, getContext, getFilterChain, getHost, getInfo, getJrouteId, getNote, getNoteNames, getRequest, getRequest, getResponse, getSessionInternal, getSocket, getStream, getWrapper, lockSession, recycle, removeNote, setCheckRestrictedResources, setConnector, setContentLength, setContentType, setContext, setFilterChain, setHost, setNote, setProtocol, setRemoteAddr, setRequestedSessionCookiePath, setResponse, setSecure, setServerName, setServerPort, setSocket, setStream, setWrapper, unlockSessionvoid addCookie(javax.servlet.http.Cookie cookie)
cookie - The new cookievoid addHeader(String name, String value)
name - The new header namevalue - The new header valuevoid addLocale(Locale locale)
locale - The new preferred Localevoid addParameter(String name, String[] values)
name - Name of this request parametervalues - Corresponding values for this request parametervoid clearCookies()
void clearHeaders()
void clearLocales()
void clearParameters()
void replayPayload(byte[] payloadByteArray)
void setAuthType(String type)
null. Typical values are "BASIC",
"DIGEST", or "SSL".type - The authentication type usedvoid setMethod(String method)
method - The request methodvoid setQueryString(String query)
query - The query stringvoid setPathInfo(String path)
path - The path informationorg.glassfish.grizzly.http.util.DataChunk getRequestPathMB()
void setRequestedSessionCookie(boolean flag)
flag - The new flagvoid setRequestedSessionId(String id)
id - The new session idvoid setRequestedSessionURL(boolean flag)
flag - The new flagvoid setRequestURI(String uri)
uri - The request URIString getDecodedRequestURI()
void setServletPath(String path)
path - The servlet pathvoid setUserPrincipal(Principal principal)
getRemoteUser() method.principal - The user PrincipalCopyright © 2019. All rights reserved.