| < Free Open Study > |
|
The javax.servlet.http package provides classes and interfaces that are used to create HTTP protocol-specific servlets. The abstract class HttpServlet is a base class for user-defined HTTP servlets and provides methods to process HTTP DELETE, GET, OPTIONS, POST, PUT, and TRACE requests. The Cookie class allows objects containing state information to be placed on a client machine and accessed by a servlet. The package also enables session tracking through the HttpSession interface.
public interface HttpServletRequest extends ServletRequest
The HttpServletRequest interface extends ServletRequest to provide methods that can be used to obtain information about a request to an HttpServlet.
public static final String BASIC_AUTH public static final String FORM_AUTH public static final String CLIENT_CERT_AUTH public static final String DIGEST_AUTH
These String constants are used to identify the different types of authentication that may have been used to protect the servlet. They have the values "BASIC", "FORM", "CLIENT_CERT", and "DIGEST" respectively.
public String getAuthType()
getAuthType() returns the name of the authentication scheme used in the request, or null if no authentication scheme was used.
public Cookie[] getCookies()
getCookies() returns an array containing any Cookie objects sent with the request, or null if no cookies were sent.
public long getDateHeader(String name)
getDateHeader() returns a long value that converts the date specified in the named header to the number of milliseconds since January 1, 1970 GMT. This method is used with a header that contains a date, and returns -1 if the request does not contain the specified header.
public String getHeader(String name)
getHeader() returns the value of the specified header expressed as a String object, or null if the request does not contain the specified header.
public java.util.Enumeration getHeaders(String name)
getHeaders() returns an Enumeration containing all of the values associated with the specified header name. The method returns an empty enumeration if the request does not contain the specified header.
public java.util.Enumeration getHeaderNames()
getHeaderNames() returns an Enumeration containing all of the header names used by the request.
public int getIntHeader(String name)
getIntHeader() returns the value of the specified header as an int. It returns -1 if the request does not contain the specified header, and throws a NumberFormatException if the header value cannot be converted to an int.
public String getMethod()
getMethod() returns the name of the HTTP method used to make the request. Typical return values are "GET", "POST", or "PUT".
public String getPathInfo()
getPathInfo() returns any additional path information contained in the request URL. This extra information will be after the servlet path and before the query string. It returns null if there is no additional path information.
public String getPathTranslated()
getPathTranslated() returns the same information as the getPathInfo() method, but translated into a real path.
public String getContextPath()
getContextPath() returns the part of the request URI that indicates the context path of the request. The context path is the first part of the URI and always begins with the "/" character. For servlets running in the root context, this method returns an empty String.
public String getQueryString()
getQueryString() returns the query string that was contained in the request URL, or null if there was no query string.
public String getRemoteUser()
getRemoteUser() returns the login of the user making the request, or null if the user has not been authenticated.
public boolean isUserInRole(String role)
isUserInRole() returns a true if the authenticated user has the specified logical role, or false if the user is not authenticated.
public java.security.Principal getUserPrincipal()
getUserPrincipal() returns Principal object representing the authenticated user, or null if the user is not authenticated.
public String getRequestedSessionId()
getRequestedSessionId() returns the session ID that was specified by the client, or null if the request did not specify an ID.
public String getRequestURI()
getRequestURI() returns a sub-section of the request URL, from the protocol name to the query string.
public StringBuffer getRequestURL()
getRequestURL() reconstructs the URL used to make the request including the protocol, server name, port number, and path, but excluding the query string.
public String getServletPath()
getServletPath() returns the part of the request URL that was used to call the servlet, without any additional information or the query string.
public HttpSession getSession(boolean create) public HttpSession getSession()
getSession() returns the HttpSession object associated with the request. By default, if the request does not currently have a session calling this method will create one. Setting the boolean parameter create to false overrides this.
public boolean isRequestedSessionIdValid()
isRequestedSessionIdValid() returns true if the session ID requested by the client is still valid.
public boolean isRequestedSessionIdFromCookie()
isRequestedSessionIdFromCookie() returns true if the session ID came in from a cookie.
public boolean isRequestedSessionIdFromURL()
isRequestedSessionIdFromURL() returns true if the session ID came in as part of the request URL.
public boolean isRequestedSessionIdFromUrl()
This method is .
public interface HttpServletResponse extends ServletResponse
The HttpServletResponse interface extends the functionality of the ServletResponse interface by providing methods to access HTTP-specific features such as HTTP headers and cookies.
public static final int SC_CONTINUE public static final int SC_SWITCHING_PROTOCOLS public static final int SC_OK public static final int SC_CREATED public static final int SC_ACCEPTED public static final int SC_NON_AUTHORITATIVE_INFORMATION public static final int SC_NO_CONTENT public static final int SC_RESET_CONTENT public static final int SC_PARTIAL_CONTENT public static final int SC_MULTIPLE_CHOICES public static final int SC_MOVED_PERMANENTLY public static final int SC_MOVED_TEMPORARILY public static final int SC_SEE_OTHER public static final int SC_NOT_MODIFIED public static final int SC_USE_PROXY public static final int SC_BAD_REQUEST public static final int SC_UNAUTHORIZED public static final int SC_PAYMENT_REQUIRED public static final int SC_FORBIDDEN public static final int SC_NOT_FOUND public static final int SC_METHOD_NOT_ALLOWED public static final int SC_NOT_ACCEPTABLE public static final int SC_PROXY_AUTHENTICATION_REQUIRED public static final int SC_REQUEST_TIMEOUT public static final int SC_CONFLICT public static final int SC_GONE public static final int SC_LENGTH_REQUIRED public static final int SC_PRECONDITION_FAILED public static final int SC_REQUEST_ENTITY_TOO_LARGE public static final int SC_REQUEST_URI_TOO_LONG public static final int SC_UNSUPPORTED_MEDIA_TYPE public static final int SC_REQUESTED_RANGE_NOT_SATISFIABLE public static final int SC_EXPECTATION_FAILED public static final int SC_INTERNAL_SERVER_ERROR public static final int SC_NOT_IMPLEMENTED public static final int SC_BAD_GATEWAY public static final int SC_SERVICE_UNAVAILABLE public static final int SC_GATEWAY_TIMEOUT public static final int SC_HTTP_VERSION_NOT_SUPPORTED
These constants represent the status codes defined in the HTTP specification (see Appendix B for further details).
public void addCookie(Cookie cookie)
addCookie() adds the specified cookie to the response (more than one cookie can be added).
public boolean containsHeader(String name)
containsHeader() returns true if the response header includes the specified header name. This method can be used before calling one of the set() methods to determine if the value has already been set.
public String encodeURL(String url)
encodeURL() encodes the specified URL by including the session ID or returns it unchanged if encoding is not needed. All URLs generated by a servlet should be processed through this method to ensure compatibility with browsers that do not support cookies.
public String encodeRedirectURL(String url)
encodeRedirectURL() encodes the specified URL or returns it unchanged if encoding is not required. This method is used to process a URL before sending it to the sendRedirect() method.
public void sendError(int sc, String msg) throws java.io.IOException public void sendError(int sc) throws java.io.IOException
sendError() sends an error response back to the client machine using the specified error status code. A descriptive message can also be provided. This method must be called before the response is committed (in other words, before the status code and headers have been written).
public void sendRedirect(String location) throws java.io.IOException
sendRedirect() redirects the client machine to the specified URL. This method must be called before the response is committed (in other words, before the status code and headers have been written).
public void setDateHeader(String name, long date)
setDateHeader() sets the time value of a response header for the specified header name. The time is the number of milliseconds since January 1, 1970 GMT. If the time value for the specified header has been previously set, the value passed to this method will override it.
public void addDateHeader(String name, long date)
addDateHeader() adds a response header containing the specified header name and the number of milliseconds since January 1, 1970 GMT. This method can be used to assign multiple values to a given header name.
public void setHeader(String name, String value)
setHeader() sets a response header with the specified name and value. If the value for the specified header has been previously set, the value passed to this method will override it.
public void addHeader(String name, String value)
addHeader() adds a response header with the specified name and value. This method can be used to assign multiple values to a given header name.
public void setIntHeader(String name, int value)
setIntHeader() sets a response header with the specified name and int value. If the int value for the specified header has been previously set, the value passed to this method will override it.
public void addIntHeader(String name, int value)
addIntHeader() adds a response header with the specified name and int value. This method can be used to assign multiple values to a given header name.
public void setStatus (int sc)
setStatus() sets the return status code for the response. The status code should be one of SC_ACCEPTED, SC_OK, SC_CONTINUE, SC_PARTIAL_CONTENT, SC_CREATED, SC_SWITCHING_PROTOCOLS, or SC_NO_CONTENT.
public String encodeUrl(String url) public String encodeRedirectUrl(String url) public void setStatus(int sc, String sm)
These methods are deprecated.
public interface HttpSession
The HttpSession interface provides methods that define a session between a client and server, despite the stateless nature of the HTTP protocol. The session lasts for a specified time period and can encompass more than one connection or page request from the user. The methods declared by this interface allow the access of information about the session and enable the binding of objects to sessions. The bound object can contain the state information that each request should be able to access.
public long getCreationTime()
getCreationTime() returns the time when the session was created in milliseconds since midnight Jan 1, 1970 GMT.
public String getId()
getId() returns a String object containing a unique identifier for this session
public long getLastAccessedTime()
getLastAccessedTime() returns the last time a client request associated with the session was sent. The return value is the number of milliseconds since midnight Jan 1, 1970 GMT.
public void setMaxInactiveInterval(int interval)
setMaxInactiveInterval() specifies the number of seconds the server will wait between client requests before the session is invalidated. If a negative value is passed to this method, the session will never time out.
public int getMaxInactiveInterval()
getMaxInactiveInterval() returns the number of seconds the server will wait between client requests before the session is invalidated. A negative return value indicates the session will never time out.
public Object getAttribute(String name)
getAttribute() returns the Object bound to the specified name in this session, or null if it doesn't exist.
public java.util.Enumeration getAttributeNames()
getAttributeNames() returns an Enumeration of String objects containing the names of all the objects bound to this session.
public void setAttribute(String name, Object value)
setAttribute() binds an Object to the specified attribute name, in this session. If the attribute name already exists, the Object passed to this method will replace the previous Object.
public void removeAttribute(String name)
removeAttribute() removes the Object bound to the specified name from this session.
public void invalidate()
invalidate() invalidates the session and unbinds any objects bound to it.
public boolean isNew()
isNew() returns true if the server has created a session that has not yet been accessed by a client.
public HttpSessionContext getSessionContext() public Object getValue(String name) public String[] getValueNames() public void putValue(String name, Object value) public void removeValue(String name)
These methods have been deprecated.
public interface HttpSessionActivationListener
Objects implementing the HttpSessionActivationListener interface will be informed when the session they are bound to is going to be passivated and activated, for example when a session is going to be persisted or migrated to another Virtual Machine.
public void sessionWillPassivate(HttpSessionEvent se)
sessionWillPassivate() is called when the session is about to be passivated.
public void sessionDidActivate(HttpSessionEvent se)
sessionDidActivate() is called when the session has just been activated.
public interface HttpSessionAttributesListener extends java.util.EventListener
An object implementing HttpSessionAttributesListener can be registered to receive notification when attributes are added to, removed from, or replaced in the HttpSession.
public void attributeAdded(HttpSessionBindingEvent se)
attributeAdded() is called when an attribute is added to the HttpSession. It is passed an HttpSessionBindingEvent containing information about the event.
public void attributeRemoved(HttpSessionBindingEvent se)
attributeRemoved() is called when an attribute is removed from the HttpSession. It is passed an HttpSessionBindingEvent containing information about the event.
public void attributeReplaced(HttpSessionBindingEvent se)
attributeReplaced() is called when an HttpSession attribute is replaced. It is passed an HttpSessionBindingEvent containing information about the event.
public interface HttpSessionBindingListener extends java.util.EventListener
The methods declared in the HttpSessionBindingListener interface are called when an object is bound to or unbound from a session.
public void valueBound(HttpSessionBindingEvent event)
valueBound() is called when an object is being bound to a session.
public void valueUnbound(HttpSessionBindingEvent event)
valueUnbound() is called when an object is being unbound from a session.
public interface HttpSessionContext
This interface is deprecated.
public HttpSession getSession(String sessionId) public java.util.Enumeration getIds()
These methods are deprecated.
public interface HttpSessionListener
An object implementing HttpSessionListener can be registered to receive notification when an HttpSession is created or destroyed.
public void sessionCreated(HttpSessionEvent se)
sessionCreated() is called when a session is created. It is passed an HttpSessionEvent containing information about the event.
public void sessionDestroyed(HttpSessionEvent se)
sessionDestroyed() is called when a session is destroyed. It is passed an HttpSessionEvent containing information about the event.
public class Cookie extends Object implements Cloneable
A Cookie is an object that resides on a client machine and contains state information; each cookie has a name, a single value and some other optional information. Cookies can be used to identify a particular user and provide information such as name, address, account number, etc. They are sent by a server to a web browser, saved on the client machine, and can later be sent back to the server.
The optional information that can be attached to a cookie includes an expiration date, path and domain qualifiers, a version number, and a comment. The expiration date specifies when the cookie will be deleted from the client machine. If no date is given, the cookie is deleted when the session ends.
A Servlet sends cookies to a browser using the addCookie() method defined in the HttpServletResponse interface, which adds fields to the HTTP response header. The browser returns cookies to the servlet by adding fields to the HTTP request header, and the cookies can be retrieved from a request by invoking the getCookies() method defined in the HttpServletRequest interface.
public Cookie(String name, String value)
Creates a Cookie object with a specified name and value. The name must consist only of alphanumeric characters. Once the name is set by the constructor, it cannot be changed.
public void setComment(String purpose)
setComment() changes or sets the comment associated with the Cookie object. A Cookie can contain a comment that is normally used to describe the purpose of the Cookie.
public String getComment()
getComment() returns the comment associated with the Cookie object, or null if there is no comment.
public void setDomain(String pattern)
setDomain() sets the domain name within which the Cookie will be visible.
public String getDomain()
getDomain() returns the domain name set for the Cookie object.
public void setMaxAge(int expiry)
setMaxAge() sets the length of time in seconds that the Cookie will persist on the user's machine. A negative value means the Cookie will not be stored on the user's machine and will be deleted when the browser terminates. A value of zero means the Cookie will be deleted immediately.
public int getMaxAge()
getMaxAge() returns the length of time in seconds that the Cookie will persist on the user's machine. A return value of -1 indicates that the cookie will persist until the browser shuts down.
public void setPath(String uri)
setPath() specifies the path on the server where the browser will return the Cookie object. The Cookie will also be visible to all sub-directories of the specified path.
public String getPath()
getPath() returns the path on the server where the browser will return the Cookie object.
public void setSecure(boolean flag)
setSecure() specifies whether the browser should send the Cookie object using a secure protocol. The default is false, meaning the Cookie will be sent using any protocol.
public boolean getSecure()
getSecure() returns true if the browser will send the Cookie object using a secure protocol.
public String getName()
getName() returns the name of the Cookie object.
public void setValue(String newValue)
setValue() changes the value of the Cookie object.
public String getValue()
getValue() returns a String containing the value of the Cookie object.
public void setVersion(int v)
setVersion() sets the version number of the protocol with which the Cookie complies: 0 for the original Netscape specification, or 1 for cookies compliant with RFC 2109.
public int getVersion()
getVersion() returns 0 if the invoking Cookie object complies with the original Netscape specification, or 1 if it complies with RFC 2109.
public Object clone()
clone() overrides the clone() method from the Object class to return a copy of the Cookie object.
public abstract class HttpServlet extends GenericServlet implements java.io.Serializable
The HttpServlet class extends GenericServlet to provide functionality tailored to the HTTP protocol. It provides methods for handling HTTP DELETE, GET, OPTIONS, POST, PUT, and TRACE requests. Like the GenericServlet class, the HttpServlet class provides a service() method, but unlike the GenericServlet class the service() method is rarely overridden since the default implementation of service() dispatches the request to the appropriate handler method.
A concrete sub-class of HttpServlet must override at least one of the methods defined in the HttpServlet or GenericServlet classes. The doDelete(), doGet(), doPost(), and doPut() methods are the ones most commonly overridden.
public HttpServlet()
This constructor does nothing. As HttpServlet is an abstract class, an HttpServlet object is never created directly.
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, java.io.IOException
doGet() is called by the server via the service() method to handle an HTTP GET request. A GET request allows a client to send form data to a server. With the GET request, the form data is attached to the end of the URL sent by the browser to the server as a query string. The amount of form data that can be sent is limited to the maximum length of the URL.
protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, java.io.IOException
doHead() is called by the server via the service() method to handle an HTTP HEAD request. A HEAD request allows a client to retrieve only the response headers, rather than the body.
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, java.io.IOException
doPost() is called by the server via the service() method to handle an HTTP POST request. A POST request allows a client to send form data to a server. With the POST request, the form data is sent to the server separately instead of being appended to the URL. This allows a large amount of form data to be sent.
protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, java.io.IOException
doPut() is called by the server via the service() method to handle an HTTP PUT request. A PUT request allows a client to place a file on the server and is conceptually similar to sending the file to the server via FTP.
protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, java.io.IOException
doDelete() is called by the server via the service() method to handle an HTTP DELETE request. A DELETE request allows a client to remove a document or web page from a server.
protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, java.io.IOException
doOptions() is called by the server via the service() method to handle an HTTP OPTIONS request. An OPTIONS request determines which HTTP methods the server supports and sends the information back to the client by way of a header.
protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, java.io.IOException
doTrace() is called by the server via the service() method to handle an HTTP TRACE request. A TRACE request returns the headers sent with the TRACE request back to the client. This can be useful for debugging purposes. This method is rarely overridden.
protected long getLastModified(HttpServletRequest req)
getLastModified() returns the time the requested resource was last modified. The return value is the time in milliseconds since midnight Jan 1, 1970.
protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, java.io.IOException public void service(ServletRequest req, ServletResponse res) throws ServletException, java.io.IOException
The service() methods receive HTTP requests and send them to the appropriate do() method. They are generally not overridden.
public class HttpServletRequestWrapper extends ServletRequestWrapper implements HttpServletRequest
HttpServletRequestWrapper provides an implementation of HttpServletRequest that can be subclassed when it is desired to adapt in some way the request to a servlet. By default, its methods call the same methods on the wrapped Request object.
public HttpServletRequestWrapper(HttpServletRequest request)
The constructor creates an HttpServletRequestWrapper around the specified HttpServletRequest object.
public String getAuthType() public Cookie[] getCookies() public long getDateHeader(String name) public String getHeader(String name) public java.util.Enumeration getHeaders(String name) public java.util.Enumeration getHeaderNames() public int getIntHeader(String name) public String getMethod() public String getPathInfo() public String getPathTranslated() public String getContextPath() public String getQueryString() public String getRemoteUser () public boolean isUserInRole(String role) public java.security.Principal getUserPrincipal() public String getRequestedSessionId() public String getRequestURI() public StringBuffer getRequestURL() public String getServletPath() public HttpSession getSession(boolean create) public HttpSession getSession() public boolean isRequestedSessionIdValid() public boolean isRequestedSessionIdFromCookie() public boolean isRequestedSessionIdFromURL() public boolean isRequestedSessionIdFromUrl()
These methods, unless overridden in a subclass, call the equivalent method on the wrapped HttpServletRequest.
public class HttpServletResponseWrapper extends ServletResponseWrapper implements HttpServletResponse
HttpServletResponseWrapper provides an implementation of HttpServletResponse that can be subclassed when it is desired to adapt in some way the request to a Servlet. By default, its methods call the same methods on the wrapped Request object.
public HttpServletResponseWrapper(HttpServletResponse response)
The constructor creates an HttpServletResponseWrapper around the specified HttpServletResponse object.
public void addCookie(Cookie cookie) public boolean containsHeader(String name) public String encodeURL(String url) public String encodeRedirectURL(String url) public String encodeUrl(String url) public String encodeRedirectUrl(String url) public void sendError(int sc, String msg) throws java.io.IOException public void sendError(int sc) throws java.io.IOException public void sendRedirect(String location) throws java.io.IOException public void setDateHeader(String name, long date) public void addDateHeader(String name, long date) public void setHeader(String name, String value) public void addHeader(String name, String value) public void setIntHeader(String name, int value) public void addIntHeader(String name, int value) public void setStatus(int sc) public void setStatus(int sc, String sm)
These methods, unless overridden in a subclass, call the equivalent method on the wrapped HttpServletResponse.
public class HttpSessionBindingEvent extends HttpSessionEvent
An HttpSessionBindingEvent represents an object being added to, removed from, or replaced in an HttpSession.
public HttpSessionBindingEvent(HttpSession session, String name) public HttpSessionBindingEvent(HttpSession session, String name, Object value)
Creates an HttpSessionBindingEvent object. The session and name are the parameters to which the HttpSessionBindingEvent object is bound or unbound.
public HttpSession getSession()
getSession() returns the session associated with the object that is bound or unbound.
public String getName()
getName() returns the name associated with the object that is bound or unbound.
public Object getValue()
getValue() returns the value of the attribute being added, removed or replaced. (If the attribute was replaced, getValue() returns the attribute's old value.)
public class HttpSessionEvent extends java.util.EventObject
HttpSessionEvent represents an event for changes to a session.
public HttpSessionEvent(HttpSession source)
The constructor must be passed a reference to the HttpSession to which the event relates.
public HttpSession getSession()
getSession() returns the session attached to this event.
public class HttpUtils extends Object
This class has been deprecated.
public HttpUtils() public static java.util.Hashtable parseQueryString(String s) public static java.util.Hashtable parsePostData(int len, ServletInputStream in) public static StringBuffer getRequestURL(HttpServletRequest req)
The constructor and methods have been deprecated.
A |
---|
addCookie() method, HttpServletResponse interface
addDateHeader() method, HttpServletResponse interface
addHeader() method, HttpServletResponse interface
addIntHeader() method, HttpServletResponse interface
attributeAdded() method, HttpSessionAttributesListener interface
attributeAdded() method, ServletContextAttributesListener interface
attributeRemoved() method, HttpSessionAttributesListener interface
attributeRemoved() method, ServletContextAttributesListener interface
attributeReplaced() method, HttpSessionAttributesListener interface
attributeReplaced() method, ServletContextAttributesListener interface
|
C |
---|
classes
clone() method, Cookie class
containsHeader() method, HttpServletResponse interface
contextDestroyed() method, ServletContextListener interface
contextInitialized() method, ServletContextListener interface
Cookie class, javax.servlet.http
|
D |
---|
destroy() method, GenericServlet class
destroy() method, Servlet interface
doDelete() method, HttpServlet class
doFilter() method, Filter interface
doFilter() method, FilterChain interface
doGet() method, HttpServlet class
doHead() method, HttpServlet class
doOptions() method, HttpServlet class
doPost() method, HttpServlet class
doPut() method, HttpServlet class
doTrace() method, HttpServlet class
|
E |
---|
encodeRedirectUrl() method, HttpServletResponse interface
encodeRedirectURL() method, HttpServletResponse interface
encodeUrl() method, HttpServletResponse interface
encodeURL() method, HttpServletResponse interface
exceptions
|
F |
---|
Filter interface, javax.servlet
FilterChain interface, javax.servlet
FilterConfig interface, javax.servlet
flushBuffer() method, ServletResponse interface
foward() method, RequestDispatcher interface
|
G |
---|
GenericServlet class, javax.servlet
getAttribute() method, HttpSession interface
getAttribute() method, ServletContext interface
getAttribute() method, ServletRequest interface
getAttributeNames() method, HttpSession interface
getAttributeNames() method, ServletContext interface
getAttributeNames() method, ServletRequest interface
getAuthType() method, HttpServletRequest interface
getBufferSize() method, ServletResponse interface
getCharacterEncoding() method, ServletRequest interface
getCharacterEncoding() method, ServletResponse interface
getComment() method, Cookie class
getContentLength() method, ServletRequest interface
getContentType() method, ServletRequest interface
getContext() method, ServletContext interface
getContextPath() method, HttpServletRequest interface
getCookies() method, HttpServletRequest interface
getCreationTime() method, HttpSession interface
getDateHeader() method, HttpServletRequest interface
getDomain() method, Cookie class
getFilterConfig() method, Filter interface
getFilterName() method, FilterConfig interface
getHeader() method, HttpServletRequest interface
getHeaderNames() method, HttpServletRequest interface
getHeaders() method, HttpServletRequest interface
getId() method, HttpSession interface
getIds() method, HttpServletRequest interface
getInitParameter() method, FilterConfig interface
getInitParameter() method, GenericServlet class
getInitParameter() method, ServletConfig interface
getInitParameter() method, ServletContext interface
getInitParameterNames() method, FilterConfig interface
getInitParameterNames() method, GenericServlet class
getInitParameterNames() method, ServletConfig interface
getInitParameterNames() method, ServletContext interface
getInputStream() method, ServletRequest interface
getIntHeader() method, HttpServletRequest interface
getLastAccessedTime() method, HttpSession interface
getLastModified() method, HttpServlet class
getLocale() method, ServletRequest interface
getLocale() method, ServletResponse interface
getLocales() method, ServletRequest interface
getMajorVersion() method, ServletContext interface
getMaxAge() method, Cookie class
getMaxInactiveInterval() method, HttpSession interface
getMethod() method, HttpServletRequest interface
getMimeType() method, ServletContext interface
getMinorVersion() method, ServletContext interface
getName method, HttpSessionBindingEvent class
getName() method, Cookie class
getName() method, ServletContextAttributeEvent class
getNamedDispatcher() method, ServletContext interface
getOutputStream() method, ServletResponse interface
getParameter() method, ServletRequest interface
getParameterMap() method, ServletRequest interface
getParameterNames() method, ServletRequest interface
getParamterValues() method, ServletRequest interface
getPath() method, Cookie class
getPathInfo() method, HttpServletRequest interface
getPathTranslated() method, HttpServletRequest interface
getProtocol() method, ServletRequest interface
getQueryString() method, HttpServletRequest interface
getReader() method, ServletRequest interface
getRealPath() method, ServletContext interface
getRealPath() method, ServletRequest interface
getRemoteAddr() method, ServletRequest interface
getRemoteHost() method, ServletRequest interface
getRemoteUser() method, HttpServletRequest interface
getRequest() method, ServletRequestWrapper class
getRequestDispatcher() method, ServletContext interface
getRequestDispatcher() method, ServletRequest interface
getRequestedSessionId() method, HttpServletRequest interface
getRequestURI() method, HttpServletRequest interface
getRequestURL() method, HttpServletRequest interface
getResource() method, ServletContext interface
getResourceAsStream() method, ServletContext interface
getResourcePaths() method, ServletContext interface
getResponse() method, ServletResponseWrapper class
getRootCause() method, ServletException exception class
getScheme() method, ServletRequest interface
getSecure() method, Cookie class
getServerInfo() method, ServletContext interface
getServerName() method, ServletRequest interface
getServerPort() method, ServletRequest interface
getServlet() method, ServletContext interface
getServletConfig() method, GenericServlet class
getServletConfig() method, Servlet interface
getServletContext() method, FilterConfig interface
getServletContext() method, GenericServlet class
getServletContext() method, ServletConfig interface
getServletContext() method, ServletContextEvent class
getServletContextName() method, ServletContext interface
getServletInfo() method, GenericServlet class
getServletInfo() method, Servlet interface
getServletName() method, GenericServlet class
getServletName() method, ServletConfig interface
getServletNames() method, ServletContext interface
getServletPath() method, HttpServletRequest interface
getServlets() method, ServletContext interface
getSession method, HttpSessionEvent class
getSession() method, HttpServletRequest interface
getSession() method, HttpSessionContext interface
getSessionContext() method, HttpSession interface
getUnavailableSeconds() method, UnavailableException exception class
getUserPrincipal() method, HttpServletRequest interface
getValue method, HttpSessionBindingEvent class
getValue() method, Cookie class
getValue() method, HttpSession interface
getValue() method, ServletContextAttributeEvent class
getValueNames() method, HttpSession interface
getVersion() method, Cookie class
getWriter() method, ServletResponse interface
|
H |
---|
HttpServlet class, javax.servlet.http
HttpServletRequest class, javax.servlet.http
HttpServletRequest interface, javax.servlet
HttpServletRequest interface, javax.servlet.http
HttpServletRequestWrapper class, javax.servlet.http
HttpServletResponse class, javax.servlet.http
HttpServletResponse interface, javax.servlet
HttpServletResponse interface, javax.servlet.http
HttpServletResponseWrapper class, javax.servlet.http
HttpSession class, javax.servlet.http
HttpSession interface, javax.servlet
HttpSession interface, javax.servlet.http
HttpSessionActivationListener class, javax.servlet.http
HttpSessionActivationListener interface, javax.servlet.http
HttpSessionAttributesListener class, javax.servlet.http
HttpSessionAttributesListener interface, javax.servlet.http
HttpSessionBindingEvent class, javax.servlet.http
HttpSessionBindingListener interface, javax.servlet.http
HttpSessionContext interface, javax.servlet
HttpSessionContext interface, javax.servlet.http
HttpSessionEvent class, javax.servlet.http
HttpSessionListener interface, javax.servlet.http
HttpUtils class, javax.servlet.http
|
I |
---|
include() method, RequestDispatcher interface
init() method, GenericServlet class
init() method, Servlet interface
interfaces
invalidate() method, HttpSession interface
isCommitted() method, ServletResponse interface
isNew() method, HttpSession interface
isPermanent() method, UnavailableException exception class
isRequestedSessionIdFromCookie() method, HttpServletRequest interface
isRequestedSessionIdFromURL() method, HttpServletRequest interface
isRequestedSessionIdValid() method, HttpServletRequest interface
isSecure() method, ServletRequest interface
isUserInRole() method, HttpServletRequest interface
|
J |
---|
javax.servlet classes
javax.servlet exceptions
javax.servlet interfaces
javax.servlet package
javax.servlet.http classes
javax.servlet.http interfaces
javax.servlet.http package
javax.servlet.ServletContext interface
javax.servlet.ServletContextAttributesListener interface
javax.servlet.ServletContextListener interface
javax.servlet.ServletRequest interface
javax.servlet.ServletResponse interface
|
L |
---|
log() method, GenericServlet class
log() method, ServletContext interface
|
M |
---|
methods
|
P |
---|
packages
print() method, ServletOutputStream class
println() method, ServletOutputStream class
putValue() method, HttpSession interface
|
R |
---|
readLine() method, ServletInputStream class
removeAttribute() method, HttpSession interface
removeAttribute() method, ServletContext interface
removeAttribute() method, ServletRequest interface
removeValue() method, HttpSession interface
RequestDispatcher interface, javax.servlet
reset() method, ServletResponse interface
resetBuffer() method, ServletResponse interface
|
S |
---|
sendError() method, HttpServletResponse interface
sendRedirect() method, HttpServletResponse interface
service() method, GenericServlet class
service() method, HttpServlet class
service() method, Servlet interface
servicegetSession method, HttpSessionBindingEvent class
Servlet 2.3 API
Servlet interface, javax.servlet
ServletConfig interface, javax.servlet
ServletContext interface, javax.servlet
ServletContextAttributeEvent class, javax.servlet
ServletContextAttributesListener interface, javax.servlet
ServletContextEvent class, javax.servlet
ServletContextListener interface, javax.servlet
ServletException exception class, javax.servlet
ServletException exception, javax.servlet
ServletInputStream class, javax.servlet
ServletOutputStream class, javax.servlet
ServletRequest interface, javax.servlet
ServletRequestWrapper class, javax.servlet
ServletResponse interface, javax.servlet
ServletResponseWrapper class, javax.servlet
sessionCreated() method, HttpSessionListener interface
sessionDestroyed() method, HttpSessionListener interface
sessionDidActivate() method, HttpSessionActivationListener interface
sessionWillPassivate() method, HttpSessionActivationListener interface
setAttribute() method, HttpSession interface
setAttribute() method, ServletContext interface
setAttribute() method, ServletRequest interface
setBufferSize() method, ServletResponse interface
setCharacterEncoding() method, ServletRequest interface
setComment() method, Cookie class
setContentLength() method, ServletResponse interface
setContentType() method, ServletResponse interface
setDateHeader() method, HttpServletResponse interface
setDomain() method, Cookie class
setFilterConfig() method, Filter interface
setHeader() method, HttpServletResponse interface
setIntHeader() method, HttpServletResponse interface
setLocale() method, ServletResponse interface
setMaxAge() method, Cookie class
setMaxInactiveInterval() method, HttpSession interface
setPath() method, Cookie class
setRequest() method, ServletRequestWrapper class
setResponse() method, ServletResponseWrapper class
setSecure() method, Cookie class
setStatus() method, HttpServletResponse interface
setValue() method, Cookie class
setVersion() method, Cookie class
SingleThreadModel interface, javax.servlet
|
U |
---|
UnavailableException exception class, javax.servlet
UnavailableException exception, javax.servlet
|
V |
---|
valueBound() method, HttpSessionBindingListener interface
valueUnbound() method, HttpSessionBindingListener interface
|
| < Free Open Study > |
|