Implements javax.servlet.HttpServletRequest from the javax.servlet package.
The standard interface of mostly getters, is extended with setters so that the request is mutable by the handlers that it is passed to. This allows the request object to be as lightweight as possible and not actually implement any significant behaviour. For example
getContextPath method will return null, until the requeset has been
passed to a ContextHandler which matches the getPathInfo with a context
path and calls setContextPath as a result.org.mortbay.jetty.servlet.SessionHandler which checks for session cookies
and enables the ability to create new sessions.getServletPath method will return null until the request has been
passed to a org.mortbay.jetty.servlet.ServletHandler and the pathInfo matched
against the servlet URL patterns and setServletPath called as a result.HttpConnection accepted by the server
and recycled for each HTTP request received via that connection. An effort is made
to avoid reparsing headers and cookies that are likely to be the same for
requests from the same connection.
| Modifier and Type | Field and Description |
|---|---|
| private static final Collection | |
| private static final int | |
| private static final int | |
| private Attributes | |
| private String | |
| private MultiMap | |
| private String | |
| private ContextHandler. | |
| private String | |
| private Continuation | _continuation
Deprecated
as a consequence of
Continuation being deprecated.
|
| private CookieCutter | |
| private boolean | |
| private boolean | |
| private EndPoint | |
| private boolean | |
| private int | |
| private String | |
| private MultiMap | |
| private boolean | |
| private String | |
| private int | |
| private String | |
| private String | |
| private String | |
| private BufferedReader | |
| private String | |
| private String | |
| private String | |
| private Object | |
| private String | |
| private boolean | |
| private String | |
| private Map | |
| private Map | |
| private String | |
| private String | |
| private String | |
| private String | |
| private HttpSession | |
| private SessionManager | |
| private static final int | |
| private long | |
| private Buffer | |
| private HttpURI | |
| private Principal | |
| private UserRealm |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | |
| public void | |
| private void | |
| public Object | getAttribute(String
a name)String specifying the name of the attributeImplements javax. Object,
or null if no attribute of the given name exists.
|
| public Enumeration | getAttributeNames()
Implements javax. Enumeration containing the
names of the attributes available to this request.
|
| public Attributes | |
| public String | getAuthType()
Implements javax. |
| public String | getCharacterEncoding()
Implements javax. |
| public HttpConnection | |
| public int | getContentLength()
Implements javax. |
| public String | getContentType()
Implements javax. null if the type is not known.
|
| public ContextHandler. | |
| public String | getContextPath()
Implements javax. |
| public Continuation | |
| public Continuation | |
| public Cookie[] | getCookies()
Implements javax. Cookie
objects the client sent with this request.
|
| public long | getDateHeader(String
a name)String specifying the
name of the headerImplements javax. long value that represents a
Date object.
|
| public String | getHeader(String
a name)String specifying the
header nameImplements javax. String.
|
| public Enumeration | getHeaderNames()
Implements javax. |
| public Enumeration | getHeaders(String
a name)String specifying the
header nameImplements javax. Enumeration of String objects.
|
| public int | |
| public ServletInputStream | getInputStream()
Implements javax. ServletInputStream.
|
| public int | getIntHeader(String
a name)String specifying the name
of a request headerImplements javax. int.
|
| public String | getLocalAddr()
Implements javax. |
| public Locale | getLocale()
Implements javax. Locale that the client will
accept content in, based on the Accept-Language header.
|
| public Enumeration | getLocales()
Implements javax. Enumeration of Locale objects
indicating, in decreasing order starting with the preferred locale, the
locales that are acceptable to the client based on the Accept-Language
header.
|
| public String | getLocalName()
Implements javax. |
| public int | getLocalPort()
Implements javax. |
| public String | getMethod()
Implements javax. |
| public String | getParameter(String
a name)String specifying the name of the parameterImplements javax. String,
or null if the parameter does not exist.
|
| public Map | getParameterMap()
Implements javax. |
| public Enumeration | getParameterNames()
Implements javax. Enumeration of String
objects containing the names of the parameters contained
in this request.
|
| public MultiMap | |
| public String[] | getParameterValues(String
a name)String containing the name of
the parameter whose value is requestedImplements javax. String objects containing
all of the values the given request parameter has, or
null if the parameter does not exist.
|
| public String | getPathInfo()
Implements javax. |
| public String | getPathTranslated()
Implements javax. |
| public String | getProtocol()
Implements javax. |
| public String | |
| public String | getQueryString()
Implements javax. |
| public BufferedReader | getReader()
Implements javax. BufferedReader.
|
| public String | getRealPath(String
the path for which the real path is to be returned. path)Implements javax. |
| public String | getRemoteAddr()
Implements javax. |
| public String | getRemoteHost()
Implements javax. |
| public int | getRemotePort()
Implements javax. |
| public String | getRemoteUser()
Implements javax. null if the user
has not been authenticated.
|
| public static Request | |
| public RequestDispatcher | getRequestDispatcher(String
a path)String specifying the pathname
to the resource. If it is relative, it must be
relative against the current servlet.Implements javax. RequestDispatcher object that acts as a wrapper for
the resource located at the given path.
|
| public String | getRequestedSessionId()
Implements javax. |
| public String | getRequestURI()
Implements javax. |
| public StringBuffer | getRequestURL()
Implements javax. |
| public Map | |
| public StringBuilder | |
| public String | getScheme()
Implements javax. http, https, or ftp.
|
| public String | getServerName()
Implements javax. |
| public int | getServerPort()
Implements javax. |
| public ServletContext | getServletContext()
Implements javax. |
| public String | |
| public String | getServletPath()
Implements javax. |
| public ServletResponse | |
| public HttpSession | getSession()
Implements javax. |
| public HttpSession | getSession(boolean
true to create
a new session for this request if necessary;
false to return null
if there's no current sessionImplements javax. HttpSession
associated with this request or, if there is no
current session and create is true, returns
a new session.
|
| public SessionManager | |
| public long | |
| public Buffer | |
| public HttpURI | |
| public Principal | getUserPrincipal()
Implements javax. java.security.Principal object containing
the name of the current authenticated user.
|
| public UserRealm | |
| public boolean | |
| public boolean | isRequestedSessionIdFromCookie()
Implements javax. Checks whether the requested session ID was conveyed to the server as an HTTP cookie. |
| public boolean | |
| public boolean | isRequestedSessionIdFromURL()
Implements javax. Checks whether the requested session ID was conveyed to the server as part of the request URL. |
| public boolean | isRequestedSessionIdValid()
Implements javax. |
| public boolean | isSecure()
Implements javax. |
| public boolean | isUserInRole(String
a role)String specifying the name
of the roleImplements javax. |
| public HttpSession | |
| protected void | |
| public void | removeAttribute(String
a name)String specifying
the name of the attribute to removeImplements javax. |
| public synchronized void | |
| public void | |
| public void | |
| public void | setAttribute(String
a name, Object String specifying
the name of the attributethe value)Object to be storedImplements javax. |
| public void | |
| public void | |
| public void | setCharacterEncoding(String
String containing the name of
the character encoding.Implements javax. |
| public void | |
| protected void | |
| public void | |
| public void | |
| public void | |
| pack-priv void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setRequestedSessionIdFromCookie(boolean
The requestedSessionIdCookie to set. requestedSessionIdCookie)
|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | toString()
Overrides org. |
| __defaultLocale | back to summary |
|---|---|
| private static final Collection<E> __defaultLocale | |
| __NONE | back to summary |
|---|---|
| private static final int __NONE | |
| __READER | back to summary |
|---|---|
| private static final int __READER | |
| _attributes | back to summary |
|---|---|
| private Attributes _attributes | |
| _authType | back to summary |
|---|---|
| private String _authType | |
| _baseParameters | back to summary |
|---|---|
| private MultiMap<K> _baseParameters | |
| _characterEncoding | back to summary |
|---|---|
| private String _characterEncoding | |
| _context | back to summary |
|---|---|
| private ContextHandler. | |
| _contextPath | back to summary |
|---|---|
| private String _contextPath | |
| _continuation | back to summary |
|---|---|
| private Continuation _continuation
Deprecated as a consequence of | |
| _cookies | back to summary |
|---|---|
| private CookieCutter _cookies | |
| _cookiesExtracted | back to summary |
|---|---|
| private boolean _cookiesExtracted | |
| _dns | back to summary |
|---|---|
| private boolean _dns | |
| _endp | back to summary |
|---|---|
| private EndPoint _endp | |
| _handled | back to summary |
|---|---|
| private boolean _handled | |
| _inputState | back to summary |
|---|---|
| private int _inputState | |
| _method | back to summary |
|---|---|
| private String _method | |
| _parameters | back to summary |
|---|---|
| private MultiMap<K> _parameters | |
| _paramsExtracted | back to summary |
|---|---|
| private boolean _paramsExtracted | |
| _pathInfo | back to summary |
|---|---|
| private String _pathInfo | |
| _port | back to summary |
|---|---|
| private int _port | |
| _protocol | back to summary |
|---|---|
| private String _protocol | |
| _queryEncoding | back to summary |
|---|---|
| private String _queryEncoding | |
| _queryString | back to summary |
|---|---|
| private String _queryString | |
| _reader | back to summary |
|---|---|
| private BufferedReader _reader | |
| _readerEncoding | back to summary |
|---|---|
| private String _readerEncoding | |
| _remoteAddr | back to summary |
|---|---|
| private String _remoteAddr | |
| _remoteHost | back to summary |
|---|---|
| private String _remoteHost | |
| _requestAttributeListeners | back to summary |
|---|---|
| private Object _requestAttributeListeners | |
| _requestedSessionId | back to summary |
|---|---|
| private String _requestedSessionId | |
| _requestedSessionIdFromCookie | back to summary |
|---|---|
| private boolean _requestedSessionIdFromCookie | |
| _requestURI | back to summary |
|---|---|
| private String _requestURI | |
| _roleMap | back to summary |
|---|---|
| private Map<K, V> _roleMap | |
| _savedNewSessions | back to summary |
|---|---|
| private Map<K, V> _savedNewSessions | |
| _scheme | back to summary |
|---|---|
| private String _scheme | |
| _serverName | back to summary |
|---|---|
| private String _serverName | |
| _servletName | back to summary |
|---|---|
| private String _servletName | |
| _servletPath | back to summary |
|---|---|
| private String _servletPath | |
| _session | back to summary |
|---|---|
| private HttpSession _session | |
| _sessionManager | back to summary |
|---|---|
| private SessionManager _sessionManager | |
| _STREAM | back to summary |
|---|---|
| private static final int _STREAM | |
| _timeStamp | back to summary |
|---|---|
| private long _timeStamp | |
| _timeStampBuffer | back to summary |
|---|---|
| private Buffer _timeStampBuffer | |
| _uri | back to summary |
|---|---|
| private HttpURI _uri | |
| _userPrincipal | back to summary |
|---|---|
| private Principal _userPrincipal | |
| _userRealm | back to summary |
|---|---|
| private UserRealm _userRealm | |
| Request | back to summary |
|---|---|
| public Request() | |
| Request | back to summary |
|---|---|
| public Request(HttpConnection connection) | |
| addEventListener | back to summary |
|---|---|
| public synchronized void addEventListener(EventListener listener) | |
| complete | back to summary |
|---|---|
| public void complete() throws IOException Overrides org. | |
| extractParameters | back to summary |
|---|---|
| private void extractParameters() | |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(String name) Implements javax. Doc from javax. Returns the value of the named attribute as an Attributes can be set two ways. The servlet container may set
attributes to make available custom information about a request.
For example, for requests made using HTTPS, the attribute
Attribute names should follow the same conventions as package
names. This specification reserves names matching | |
| getAttributeNames | back to summary |
|---|---|
| public Enumeration Implements javax. Doc from javax. Returns an
| |
| getAttributes | back to summary |
|---|---|
| public Attributes getAttributes() | |
| getAuthType | back to summary |
|---|---|
| public String getAuthType() Implements javax. Doc from javax. Returns the name of the authentication scheme used to protect
the servlet. All servlet containers support basic, form and client
certificate authentication, and may additionally support digest
authentication.
If the servlet is not authenticated Same as the value of the CGI variable AUTH_TYPE.
| |
| getCharacterEncoding | back to summary |
|---|---|
| public String getCharacterEncoding() Implements javax. Doc from javax. Returns the name of the character encoding used in the body of this
request. This method returns
| |
| getConnection | back to summary |
|---|---|
public HttpConnection getConnection()
| |
| getContentLength | back to summary |
|---|---|
| public int getContentLength() Implements javax. Doc from javax. Returns the length, in bytes, of the request body and made available by the input stream, or -1 if the length is not known ir is greater than Integer.MAX_VALUE. For HTTP servlets, same as the value of the CGI variable CONTENT_LENGTH.
| |
| getContentType | back to summary |
|---|---|
| public String getContentType() Implements javax. Doc from javax. Returns the MIME type of the body of the request, or
| |
| getContext | back to summary |
|---|---|
public ContextHandler.
| |
| getContextPath | back to summary |
|---|---|
| public String getContextPath() Implements javax. Doc from javax. Returns the portion of the request URI that indicates the context of the request. The context path always comes first in a request URI. The path starts with a "/" character but does not end with a "/" character. For servlets in the default (root) context, this method returns "". The container does not decode this string. It is possible that a servlet container may match a context by
more than one context path. In such cases this method will return the
actual context path used by the request and it may differ from the
path returned by the
| |
| getContinuation | back to summary |
|---|---|
| public Continuation getContinuation()
Deprecated
| |
| getContinuation | back to summary |
|---|---|
| public Continuation getContinuation(boolean create)
Deprecated
| |
| getCookies | back to summary |
|---|---|
| public Cookie[] getCookies() Implements javax. Doc from javax. Returns an array containing all of the
| |
| getDateHeader | back to summary |
|---|---|
| public long getDateHeader(String name) Implements javax. Doc from javax. Returns the value of the specified request header
as a The date is returned as the number of milliseconds since January 1, 1970 GMT. The header name is case insensitive. If the request did not have a header of the
specified name, this method returns -1. If the header
can't be converted to a date, the method throws
an
| |
| getHeader | back to summary |
|---|---|
| public String getHeader(String name) Implements javax. Doc from javax. Returns the value of the specified request header
as a | |
| getHeaderNames | back to summary |
|---|---|
| public Enumeration Implements javax. Doc from javax. Returns an enumeration of all the header names this request contains. If the request has no headers, this method returns an empty enumeration. Some servlet containers do not allow
servlets to access headers using this method, in
which case this method returns
| |
| getHeaders | back to summary |
|---|---|
| public Enumeration Implements javax. Doc from javax. Returns all the values of the specified request header
as an Some headers, such as If the request did not include any headers
of the specified name, this method returns an empty
| |
| getInputState | back to summary |
|---|---|
public int getInputState()
| |
| getInputStream | back to summary |
|---|---|
| public ServletInputStream getInputStream() throws IOException Implements javax. Doc from javax. Retrieves the body of the request as binary data using
a
| |
| getIntHeader | back to summary |
|---|---|
| public int getIntHeader(String name) Implements javax. Doc from javax. Returns the value of the specified request header
as an The header name is case insensitive.
| |
| getLocalAddr | back to summary |
|---|---|
| public String getLocalAddr() Implements javax. Doc from javax. Returns the Internet Protocol (IP) address of the interface on which the request was received.
| |
| getLocale | back to summary |
|---|---|
| public Locale getLocale() Implements javax. Doc from javax. Returns the preferred
| |
| getLocales | back to summary |
|---|---|
| public Enumeration Implements javax. Doc from javax. Returns an
| |
| getLocalName | back to summary |
|---|---|
| public String getLocalName() Implements javax. Doc from javax. Returns the host name of the Internet Protocol (IP) interface on which the request was received.
| |
| getLocalPort | back to summary |
|---|---|
| public int getLocalPort() Implements javax. Doc from javax. Returns the Internet Protocol (IP) port number of the interface on which the request was received.
| |
| getMethod | back to summary |
|---|---|
| public String getMethod() Implements javax. Doc from javax. Returns the name of the HTTP method with which this request was made, for example, GET, POST, or PUT. Same as the value of the CGI variable REQUEST_METHOD.
| |
| getParameter | back to summary |
|---|---|
| public String getParameter(String name) Implements javax. Doc from javax. Returns the value of a request parameter as a You should only use this method when you are sure the
parameter has only one value. If the parameter might have
more than one value, use If you use this method with a multivalued
parameter, the value returned is equal to the first value
in the array returned by If the parameter data was sent in the request body, such as occurs
with an HTTP POST request, then reading the body directly via | |
| getParameterMap | back to summary |
|---|---|
| public Map Implements javax. Doc from javax. Returns a java.util.Map of the parameters of this request. Request parameters are extra information sent with the request. For HTTP servlets, parameters are contained in the query string or posted form data.
| |
| getParameterNames | back to summary |
|---|---|
| public Enumeration Implements javax. Doc from javax. Returns an
| |
| getParameters | back to summary |
|---|---|
public MultiMap
| |
| getParameterValues | back to summary |
|---|---|
| public String[] getParameterValues(String name) Implements javax. Doc from javax. Returns an array of If the parameter has a single value, the array has a length of 1. | |
| getPathInfo | back to summary |
|---|---|
| public String getPathInfo() Implements javax. Doc from javax. Returns any extra path information associated with the URL the client sent when it made this request. The extra path information follows the servlet path but precedes the query string and will start with a "/" character. This method returns Same as the value of the CGI variable PATH_INFO.
| |
| getPathTranslated | back to summary |
|---|---|
| public String getPathTranslated() Implements javax. Doc from javax. Returns any extra path information after the servlet name but before the query string, and translates it to a real path. Same as the value of the CGI variable PATH_TRANSLATED. If the URL does not have any extra path information,
this method returns
| |
| getProtocol | back to summary |
|---|---|
| public String getProtocol() Implements javax. Doc from javax. Returns the name and version of the protocol the request uses
in the form protocol/majorVersion.minorVersion, for
example, HTTP/1.1. For HTTP servlets, the value
returned is the same as the value of the CGI variable
| |
| getQueryEncoding | back to summary |
|---|---|
| public String getQueryEncoding() | |
| getQueryString | back to summary |
|---|---|
| public String getQueryString() Implements javax. Doc from javax. Returns the query string that is contained in the request
URL after the path. This method returns
| |
| getReader | back to summary |
|---|---|
| public BufferedReader getReader() throws IOException Implements javax. Doc from javax. Retrieves the body of the request as character data using
a
| |
| getRealPath | back to summary |
|---|---|
| public String getRealPath(String path) Implements javax.
| |
| getRemoteAddr | back to summary |
|---|---|
| public String getRemoteAddr() Implements javax. Doc from javax. Returns the Internet Protocol (IP) address of the client
or last proxy that sent the request.
For HTTP servlets, same as the value of the
CGI variable
| |
| getRemoteHost | back to summary |
|---|---|
| public String getRemoteHost() Implements javax. Doc from javax. Returns the fully qualified name of the client
or the last proxy that sent the request.
If the engine cannot or chooses not to resolve the hostname
(to improve performance), this method returns the dotted-string form of
the IP address. For HTTP servlets, same as the value of the CGI variable
| |
| getRemotePort | back to summary |
|---|---|
| public int getRemotePort() Implements javax. Doc from javax. Returns the Internet Protocol (IP) source port of the client or last proxy that sent the request.
| |
| getRemoteUser | back to summary |
|---|---|
| public String getRemoteUser() Implements javax. Doc from javax. Returns the login of the user making this request, if the
user has been authenticated, or
| |
| getRequest | back to summary |
|---|---|
| public static Request getRequest(HttpServletRequest request) | |
| getRequestDispatcher | back to summary |
|---|---|
| public RequestDispatcher getRequestDispatcher(String path) Implements javax. Doc from javax. Returns a The pathname specified may be relative, although it cannot extend
outside the current servlet context. If the path begins with
a "/" it is interpreted as relative to the current context root.
This method returns The difference between this method and
| |
| getRequestedSessionId | back to summary |
|---|---|
| public String getRequestedSessionId() Implements javax. Doc from javax. Returns the session ID specified by the client. This may
not be the same as the ID of the current valid session
for this request.
If the client did not specify a session ID, this method returns
| |
| getRequestURI | back to summary | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public String getRequestURI() Implements javax. Doc from javax. Returns the part of this request's URL from the protocol name up to the query string in the first line of the HTTP request. The web container does not decode this String. For example:
To reconstruct an URL with a scheme and host, use
| ||||||||||||
| getRequestURL | back to summary |
|---|---|
| public StringBuffer getRequestURL() Implements javax. Doc from javax. Reconstructs the URL the client used to make the request. The returned URL contains a protocol, server name, port number, and server path, but it does not include query string parameters. If this request has been forwarded using
Because this method returns a This method is useful for creating redirect messages and for reporting errors.
| |
| getRoleMap | back to summary |
|---|---|
| public Map | |
| getRootURL | back to summary |
|---|---|
| public StringBuilder getRootURL() Reconstructs the URL the client used to make the request. The returned URL contains a protocol, server name, port number, and, but it does not include a path.
Because this method returns a
| |
| getScheme | back to summary |
|---|---|
| public String getScheme() Implements javax. Doc from javax. Returns the name of the scheme used to make this request,
for example,
| |
| getServerName | back to summary |
|---|---|
| public String getServerName() Implements javax. Doc from javax. Returns the host name of the server to which the request was sent.
It is the value of the part before ":" in the
| |
| getServerPort | back to summary |
|---|---|
| public int getServerPort() Implements javax. Doc from javax. Returns the port number to which the request was sent.
It is the value of the part after ":" in the
| |
| getServletContext | back to summary |
|---|---|
| public ServletContext getServletContext() Implements javax. Doc from javax. Gets the servlet context to which this ServletRequest was last dispatched.
| |
| getServletName | back to summary |
|---|---|
| public String getServletName() | |
| getServletPath | back to summary |
|---|---|
| public String getServletPath() Implements javax. Doc from javax. Returns the part of this request's URL that calls the servlet. This path starts with a "/" character and includes either the servlet name or a path to the servlet, but does not include any extra path information or a query string. Same as the value of the CGI variable SCRIPT_NAME. This method will return an empty string ("") if the servlet used to process this request was matched using the "/*" pattern.
| |
| getServletResponse | back to summary |
|---|---|
| public ServletResponse getServletResponse() | |
| getSession | back to summary |
|---|---|
| public HttpSession getSession() Implements javax. Doc from javax. Returns the current session associated with this request, or if the request does not have a session, creates one.
| |
| getSession | back to summary |
|---|---|
| public HttpSession getSession(boolean create) Implements javax. Doc from javax. Returns the current If To make sure the session is properly maintained, you must call this method before the response is committed. If the container is using cookies to maintain session integrity and is asked to create a new session when the response is committed, an IllegalStateException is thrown.
| |
| getSessionManager | back to summary |
|---|---|
public SessionManager getSessionManager()
| |
| getTimeStamp | back to summary |
|---|---|
| public long getTimeStamp() Get Request TimeStamp
| |
| getTimeStampBuffer | back to summary |
|---|---|
| public Buffer getTimeStampBuffer() Get Request TimeStamp
| |
| getUri | back to summary |
|---|---|
public HttpURI getUri()
| |
| getUserPrincipal | back to summary |
|---|---|
| public Principal getUserPrincipal() Implements javax. Doc from javax. Returns a
| |
| getUserRealm | back to summary |
|---|---|
public UserRealm getUserRealm()
| |
| isHandled | back to summary |
|---|---|
| public boolean isHandled() | |
| isRequestedSessionIdFromCookie | back to summary |
|---|---|
| public boolean isRequestedSessionIdFromCookie() Implements javax. Doc from javax. Checks whether the requested session ID was conveyed to the server as an HTTP cookie.
| |
| isRequestedSessionIdFromUrl | back to summary |
|---|---|
| public boolean isRequestedSessionIdFromUrl() Implements javax.
| |
| isRequestedSessionIdFromURL | back to summary |
|---|---|
| public boolean isRequestedSessionIdFromURL() Implements javax. Doc from javax. Checks whether the requested session ID was conveyed to the server as part of the request URL.
| |
| isRequestedSessionIdValid | back to summary |
|---|---|
| public boolean isRequestedSessionIdValid() Implements javax. Doc from javax. Checks whether the requested session ID is still valid. If the client did not specify any session ID, this method returns
| |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() Implements javax. Doc from javax. Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS.
| |
| isUserInRole | back to summary |
|---|---|
| public boolean isUserInRole(String role) Implements javax. Doc from javax. Returns a boolean indicating whether the authenticated user is included
in the specified logical "role". Roles and role membership can be
defined using deployment descriptors. If the user has not been
authenticated, the method returns The role name "*" should never be used as an argument in calling
| |
| recoverNewSession | back to summary |
|---|---|
| public HttpSession recoverNewSession(Object key) | |
| recycle | back to summary |
|---|---|
| protected void recycle() | |
| removeAttribute | back to summary |
|---|---|
| public void removeAttribute(String name) Implements javax. Doc from javax. Removes an attribute from this request. This method is not generally needed as attributes only persist as long as the request is being handled. Attribute names should follow the same conventions as
package names. Names beginning with
| |
| removeEventListener | back to summary |
|---|---|
| public synchronized void removeEventListener(EventListener listener) | |
| resume | back to summary |
|---|---|
| public void resume() Overrides org. | |
| saveNewSession | back to summary |
|---|---|
| public void saveNewSession(Object key, HttpSession session) | |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(String name, Object value) Implements javax. Doc from javax. Stores an attribute in this request.
Attributes are reset between requests. This method is most
often used in conjunction with Attribute names should follow the same conventions as
package names. Names beginning with | |
| setAttributes | back to summary |
|---|---|
| public void setAttributes(Attributes attributes) | |
| setAuthType | back to summary |
|---|---|
public void setAuthType(String authType)
| |
| setCharacterEncoding | back to summary |
|---|---|
| public void setCharacterEncoding(String encoding) throws UnsupportedEncodingException Implements javax. Doc from javax. Overrides the name of the character encoding used in the body of this request. This method must be called prior to reading request parameters or reading input using getReader(). Otherwise, it has no effect.
| |
| setCharacterEncodingUnchecked | back to summary |
|---|---|
| public void setCharacterEncodingUnchecked(String encoding) | |
| setConnection | back to summary |
|---|---|
| protected void setConnection(HttpConnection connection) | |
| setContentType | back to summary |
|---|---|
| public void setContentType(String contentType) | |
| setContext | back to summary |
|---|---|
| public void setContext(ContextHandler. | |
| setContextPath | back to summary |
|---|---|
| public void setContextPath(String contextPath) Sets the "context path" for this request
| |
| setContinuation | back to summary |
|---|---|
| pack-priv void setContinuation(Continuation cont)
Deprecated as a consequence of | |
| setCookies | back to summary |
|---|---|
public void setCookies(Cookie[] cookies)
| |
| setHandled | back to summary |
|---|---|
| public void setHandled(boolean h) | |
| setMethod | back to summary |
|---|---|
public void setMethod(String method)
| |
| setParameters | back to summary |
|---|---|
public void setParameters(MultiMap<K> parameters)
| |
| setPathInfo | back to summary |
|---|---|
public void setPathInfo(String pathInfo)
| |
| setProtocol | back to summary |
|---|---|
public void setProtocol(String protocol)
| |
| setQueryEncoding | back to summary |
|---|---|
| public void setQueryEncoding(String queryEncoding) Set the character encoding used for the query string. This call will effect the return of getQueryString and getParamaters. It must be called before any geParameter methods. The request attribute "org.mortbay.jetty.Request.queryEncoding" may be set as an alternate method of calling setQueryEncoding. | |
| setQueryString | back to summary |
|---|---|
public void setQueryString(String queryString)
| |
| setRemoteAddr | back to summary |
|---|---|
public void setRemoteAddr(String addr)
| |
| setRemoteHost | back to summary |
|---|---|
public void setRemoteHost(String host)
| |
| setRequestedSessionId | back to summary |
|---|---|
public void setRequestedSessionId(String requestedSessionId)
| |
| setRequestedSessionIdFromCookie | back to summary |
|---|---|
public void setRequestedSessionIdFromCookie(boolean requestedSessionIdCookie)
| |
| setRequestURI | back to summary |
|---|---|
public void setRequestURI(String requestURI)
| |
| setRoleMap | back to summary |
|---|---|
| public void setRoleMap(Map<K, V> map) | |
| setScheme | back to summary |
|---|---|
public void setScheme(String scheme)
| |
| setServerName | back to summary |
|---|---|
public void setServerName(String host)
| |
| setServerPort | back to summary |
|---|---|
public void setServerPort(int port)
| |
| setServletName | back to summary |
|---|---|
public void setServletName(String name)
| |
| setServletPath | back to summary |
|---|---|
public void setServletPath(String servletPath)
| |
| setSession | back to summary |
|---|---|
public void setSession(HttpSession session)
| |
| setSessionManager | back to summary |
|---|---|
public void setSessionManager(SessionManager sessionManager)
| |
| setTimeStamp | back to summary |
|---|---|
| public void setTimeStamp(long ts) | |
| setUri | back to summary |
|---|---|
public void setUri(HttpURI uri)
| |
| setUserPrincipal | back to summary |
|---|---|
public void setUserPrincipal(Principal userPrincipal)
| |
| setUserRealm | back to summary |
|---|---|
public void setUserRealm(UserRealm userRealm)
| |
| suspend | back to summary |
|---|---|
| public void suspend() Overrides org. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
| |