Package | Description |
---|---|
javax.servlet |
The javax.servlet package contains a number of classes and interfaces that
describe and define the contracts between a servlet class and the
runtime environment provided for an instance of such a class by a
conforming servlet container.
|
javax.servlet.http |
The javax.servlet.http package contains a number of classes and interfaces
that describe and define the contracts between a servlet class
running under the HTTP protocol and the runtime environment provided
for an instance of such a class by a conforming servlet container.
|
Modifier and Type | Class and Description |
---|---|
class |
ServletResponseWrapper
Provides a convenient implementation of the ServletResponse interface that
can be subclassed by developers wishing to adapt the response from a Servlet.
|
Modifier and Type | Method and Description |
---|---|
ServletResponse |
AsyncContext.getResponse()
Gets the response that was used to initialize this AsyncContext
by calling
ServletRequest.startAsync() or
ServletRequest.startAsync(ServletRequest, ServletResponse) . |
ServletResponse |
ServletResponseWrapper.getResponse()
Return the wrapped ServletResponse object.
|
ServletResponse |
AsyncEvent.getSuppliedResponse()
Gets the ServletResponse from this AsyncEvent.
|
Modifier and Type | Method and Description |
---|---|
void |
AsyncContext.addListener(AsyncListener listener,
ServletRequest servletRequest,
ServletResponse servletResponse)
Registers the given
AsyncListener with the most recent
asynchronous cycle that was started by a call to one of the
ServletRequest.startAsync() methods. |
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.
|
void |
RequestDispatcher.include(ServletRequest request,
ServletResponse response)
Includes the content of a resource (servlet, JSP page,
HTML file) in the response.
|
boolean |
ServletResponseWrapper.isWrapperFor(ServletResponse wrapped)
Checks (recursively) if this ServletResponseWrapper wraps the given
ServletResponse instance. |
abstract void |
GenericServlet.service(ServletRequest req,
ServletResponse res)
Called by the servlet container to allow the servlet to respond to
a request.
|
void |
Servlet.service(ServletRequest req,
ServletResponse res)
Called by the servlet container to allow the servlet to respond to
a request.
|
void |
ServletResponseWrapper.setResponse(ServletResponse response)
Sets the response being wrapped.
|
AsyncContext |
ServletRequest.startAsync(ServletRequest servletRequest,
ServletResponse servletResponse)
Puts this request into asynchronous mode, and initializes its
AsyncContext with the given request and response objects. |
AsyncContext |
ServletRequestWrapper.startAsync(ServletRequest servletRequest,
ServletResponse servletResponse)
The default behavior of this method is to invoke
ServletRequest.startAsync(ServletRequest, ServletResponse)
on the wrapped request object. |
Constructor and Description |
---|
AsyncEvent(AsyncContext context,
ServletRequest request,
ServletResponse response)
Constructs an AsyncEvent from the given AsyncContext, ServletRequest,
and ServletResponse.
|
AsyncEvent(AsyncContext context,
ServletRequest request,
ServletResponse response,
Throwable throwable)
Constructs an AsyncEvent from the given AsyncContext, ServletRequest,
ServletResponse, and Throwable.
|
ServletResponseWrapper(ServletResponse response)
Creates a ServletResponse adaptor wrapping the given response object.
|
Modifier and Type | Interface and Description |
---|---|
interface |
HttpServletResponse
Extends the
ServletResponse interface to provide HTTP-specific
functionality in sending a response. |
Modifier and Type | Class and Description |
---|---|
class |
HttpServletResponseWrapper
Provides a convenient implementation of the HttpServletResponse interface that
can be subclassed by developers wishing to adapt the response from a Servlet.
|
Modifier and Type | Method and Description |
---|---|
void |
HttpFilter.doFilter(ServletRequest req,
ServletResponse res,
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 |
HttpServlet.service(ServletRequest req,
ServletResponse res)
Dispatches client requests to the protected
service method. |
Copyright © 1999-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms. Portions Copyright © 1999-2002 The Apache Software Foundation.