Uses of Interface
jakarta.servlet.ServletResponse
Package
Description
The jakarta.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 jakarta.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 com.sun.faces.application
Modifier and TypeClassDescriptionclass
This class is used byViewHandler.createView(jakarta.faces.context.FacesContext, java.lang.String)
to obtain the text that exists after the <f:view> tag. -
Uses of ServletResponse in com.sun.faces.context
ModifierConstructorDescriptionExternalContextImpl
(ServletContext sc, ServletRequest request, ServletResponse response) -
Uses of ServletResponse in jakarta.faces.webapp
Modifier and TypeMethodDescriptionvoid
FacesServlet.service
(ServletRequest req, ServletResponse resp) Process an incoming request, and create the corresponding response according to the following specification. -
Uses of ServletResponse in jakarta.servlet
Modifier and TypeClassDescriptionclass
Provides a convenient implementation of the ServletResponse interface that can be subclassed by developers wishing to adapt the response from a Servlet.Modifier 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.Modifier and TypeMethodDescriptionvoid
AsyncContext.addListener
(AsyncListener listener, ServletRequest servletRequest, ServletResponse servletResponse) Registers the givenAsyncListener
with the most recent asynchronous cycle that was started by a call to one of theServletRequest.startAsync()
methods.void
Filter.doFilter
(ServletRequest request, ServletResponse response, FilterChain chain) ThedoFilter
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
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
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 givenServletResponse
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.ServletRequest.startAsync
(ServletRequest servletRequest, ServletResponse servletResponse) Puts this request into asynchronous mode, and initializes itsAsyncContext
with 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.ModifierConstructorDescriptionAsyncEvent
(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 jakarta.servlet.http
Modifier and TypeInterfaceDescriptioninterface
Extends theServletResponse
interface to provide HTTP-specific functionality in sending a response.Modifier and TypeClassDescriptionclass
Provides a convenient implementation of the HttpServletResponse interface that can be subclassed by developers wishing to adapt the response from a Servlet.Modifier and TypeMethodDescriptionvoid
HttpFilter.doFilter
(ServletRequest req, ServletResponse res, FilterChain chain) ThedoFilter
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 protectedservice
method. -
Uses of ServletResponse in jakarta.servlet.jsp
Modifier and TypeMethodDescriptionabstract ServletResponse
PageContext.getResponse()
The current value of the response object (a ServletResponse).Modifier and TypeMethodDescriptionabstract PageContext
JspFactory.getPageContext
(Servlet servlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int buffer, boolean autoflush) obtains an instance of an implementation dependent jakarta.servlet.jsp.PageContext abstract class for the calling Servlet and currently pending request and response.abstract void
PageContext.initialize
(Servlet servlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush) The initialize method is called to initialize an uninitialized PageContext so that it may be used by a JSP Implementation class to service an incoming request and response within it's _jspService() method.