Package | Description |
---|---|
javax.servlet | |
javax.servlet.http |
Modifier and Type | Class and Description |
---|---|
class |
UnavailableException
Defines an exception that a servlet or filter throws to indicate
that it is permanently or temporarily unavailable.
|
Modifier and Type | Method and Description |
---|---|
<T extends Filter> |
ServletContext.createFilter(Class<T> clazz)
Create a filter with dependencies injected.
|
<T extends EventListener> |
ServletContext.createListener(Class<T> clazz)
create a fully initialized listener
|
<T extends AsyncListener> |
AsyncContext.createListener(Class<T> clazz) |
<T extends Servlet> |
ServletContext.createServlet(Class<T> clazz)
Create a servlet with dependencies injected.
|
void |
FilterChain.doFilter(ServletRequest request,
ServletResponse response)
Causes the next filter in the chain to be invoked, or if the calling filter is the last filter
in the chain, causes the resource at the end of the chain to be invoked.
|
void |
Filter.doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
The
doFilter method of the Filter is called by the container
each time a request/response pair is passed through the chain due
to a client request for a resource at the end of the chain. |
void |
RequestDispatcher.forward(ServletRequest request,
ServletResponse response)
Forwards a request from
a servlet to another resource (servlet, JSP file, or
HTML file) on the server.
|
Servlet |
ServletContext.getServlet(String name)
Deprecated.
As of Java Servlet API 2.1, with no direct replacement.
This method was originally defined to retrieve a servlet
from a In lieu of this method, servlets can share information using the
|
void |
RequestDispatcher.include(ServletRequest request,
ServletResponse response)
Includes the content of a resource (servlet, JSP page,
HTML file) in the response.
|
void |
GenericServlet.init()
A convenience method which can be overridden so that there's no need
to call
super.init(config) . |
void |
Filter.init(FilterConfig filterConfig)
Called by the web container to indicate to a filter that it is being placed into
service.
|
void |
Servlet.init(ServletConfig config)
Called by the servlet container to indicate to a servlet that the
servlet is being placed into service.
|
void |
GenericServlet.init(ServletConfig config)
Called by the servlet container to indicate to a servlet that the
servlet is being placed into service.
|
void |
ServletContainerInitializer.onStartup(Set<Class<?>> classes,
ServletContext ctx) |
void |
Servlet.service(ServletRequest req,
ServletResponse res)
Called by the servlet container to allow the servlet to respond to
a request.
|
abstract void |
GenericServlet.service(ServletRequest req,
ServletResponse res)
Called by the servlet container to allow the servlet to respond to
a request.
|
Modifier and Type | Method and Description |
---|---|
boolean |
HttpServletRequest.authenticate(HttpServletResponse response)
authenticate user using container facilities
|
boolean |
HttpServletRequestWrapper.authenticate(HttpServletResponse response) |
protected void |
HttpServlet.doDelete(HttpServletRequest req,
HttpServletResponse resp)
Called by the server (via the
service method)
to allow a servlet to handle a DELETE request. |
protected void |
HttpServlet.doGet(HttpServletRequest req,
HttpServletResponse resp)
Called by the server (via the
service method) to
allow a servlet to handle a GET request. |
protected void |
HttpServlet.doHead(HttpServletRequest req,
HttpServletResponse resp)
Receives an HTTP HEAD request from the protected
service method and handles the
request. |
protected void |
HttpServlet.doOptions(HttpServletRequest req,
HttpServletResponse resp)
Called by the server (via the
service method)
to allow a servlet to handle a OPTIONS request. |
protected void |
HttpServlet.doPost(HttpServletRequest req,
HttpServletResponse resp)
Called by the server (via the
service method)
to allow a servlet to handle a POST request. |
protected void |
HttpServlet.doPut(HttpServletRequest req,
HttpServletResponse resp)
Called by the server (via the
service method)
to allow a servlet to handle a PUT request. |
protected void |
HttpServlet.doTrace(HttpServletRequest req,
HttpServletResponse resp)
Called by the server (via the
service method)
to allow a servlet to handle a TRACE request. |
Part |
HttpServletRequest.getPart(String name) |
Part |
HttpServletRequestWrapper.getPart(String name) |
Collection<Part> |
HttpServletRequest.getParts() |
Collection<Part> |
HttpServletRequestWrapper.getParts() |
void |
HttpServletRequest.login(String username,
String password) |
void |
HttpServletRequestWrapper.login(String username,
String password) |
void |
HttpServletRequest.logout() |
void |
HttpServletRequestWrapper.logout() |
protected void |
HttpServlet.service(HttpServletRequest req,
HttpServletResponse resp)
Receives standard HTTP requests from the public
service method and dispatches
them to the do XXX methods defined in
this class. |
void |
HttpServlet.service(ServletRequest req,
ServletResponse res)
Dispatches client requests to the protected
service method. |
Copyright © 2015. All rights reserved.