Uses of Interface
javax.servlet.ServletResponse
Packages that use ServletResponse
Package
Description
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.
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.
-
Uses of ServletResponse in javax.servlet
Classes in javax.servlet that implement ServletResponseModifier and TypeClassDescriptionclassProvides a convenient implementation of the ServletResponse interface that can be subclassed by developers wishing to adapt the response from a Servlet.Fields in javax.servlet declared as ServletResponseModifier and TypeFieldDescriptionprivate ServletResponseAsyncEvent.responseprivate ServletResponseServletResponseWrapper.responseMethods in javax.servlet that return ServletResponseModifier and TypeMethodDescriptionAsyncContext.getResponse()Gets the response that was used to initialize this AsyncContext by callingServletRequest.startAsync()orServletRequest.startAsync(ServletRequest, ServletResponse).ServletResponseWrapper.getResponse()Return the wrapped ServletResponse object.AsyncEvent.getSuppliedResponse()Gets the ServletResponse from this AsyncEvent.Methods in javax.servlet with parameters of type ServletResponseModifier and TypeMethodDescriptionvoidAsyncContext.addListener(AsyncListener listener, ServletRequest servletRequest, ServletResponse servletResponse) Registers the givenAsyncListenerwith the most recent asynchronous cycle that was started by a call to one of theServletRequest.startAsync()methods.voidFilter.doFilter(ServletRequest request, ServletResponse response, FilterChain chain) ThedoFiltermethod 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.voidFilterChain.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.voidRequestDispatcher.forward(ServletRequest request, ServletResponse response) Forwards a request from a servlet to another resource (servlet, JSP file, or HTML file) on the server.voidRequestDispatcher.include(ServletRequest request, ServletResponse response) Includes the content of a resource (servlet, JSP page, HTML file) in the response.booleanServletResponseWrapper.isWrapperFor(ServletResponse wrapped) Checks (recursively) if this ServletResponseWrapper wraps the givenServletResponseinstance.abstract voidGenericServlet.service(ServletRequest req, ServletResponse res) Called by the servlet container to allow the servlet to respond to a request.voidServlet.service(ServletRequest req, ServletResponse res) Called by the servlet container to allow the servlet to respond to a request.voidServletResponseWrapper.setResponse(ServletResponse response) Sets the response being wrapped.ServletRequest.startAsync(ServletRequest servletRequest, ServletResponse servletResponse) Puts this request into asynchronous mode, and initializes itsAsyncContextwith the given request and response objects.ServletRequestWrapper.startAsync(ServletRequest servletRequest, ServletResponse servletResponse) The default behavior of this method is to invokeServletRequest.startAsync(ServletRequest, ServletResponse)on the wrapped request object.Constructors in javax.servlet with parameters of type ServletResponseModifierConstructorDescriptionAsyncEvent(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. -
Uses of ServletResponse in javax.servlet.http
Subinterfaces of ServletResponse in javax.servlet.httpModifier and TypeInterfaceDescriptioninterfaceExtends theServletResponseinterface to provide HTTP-specific functionality in sending a response.Classes in javax.servlet.http that implement ServletResponseModifier and TypeClassDescriptionclassProvides a convenient implementation of the HttpServletResponse interface that can be subclassed by developers wishing to adapt the response from a Servlet.(package private) classMethods in javax.servlet.http with parameters of type ServletResponseModifier and TypeMethodDescriptionvoidHttpServlet.service(ServletRequest req, ServletResponse res) Dispatches client requests to the protectedservicemethod.