| Package | Description |
|---|---|
| jakarta.servlet | |
| jakarta.servlet.http | |
| jakarta.servlet.jsp | |
| org.apache.jasper.runtime |
| Modifier and Type | Class and Description |
|---|---|
class |
ServletRequestWrapper
Provides a convenient implementation of the ServletRequest interface that can
be subclassed by developers wishing to adapt the request to a Servlet.
|
| Modifier and Type | Method and Description |
|---|---|
ServletRequest |
ServletRequestWrapper.getRequest()
Get the wrapped request.
|
ServletRequest |
AsyncContext.getRequest() |
ServletRequest |
ServletRequestEvent.getServletRequest()
Get the associated ServletRequest.
|
ServletRequest |
AsyncEvent.getSuppliedRequest()
Obtain the request associated with the event.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AsyncContext.addListener(AsyncListener listener,
ServletRequest request,
ServletResponse response)
Adds an event listener that will be called when different AsyncEvents fire
|
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 |
ServletRequestWrapper.isWrapperFor(ServletRequest wrapped)
TODO SERVLET3 - Add comments
|
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 |
ServletRequestWrapper.setRequest(ServletRequest request)
Sets the request object being wrapped.
|
AsyncContext |
ServletRequest.startAsync(ServletRequest servletRequest,
ServletResponse servletResponse) |
AsyncContext |
ServletRequestWrapper.startAsync(ServletRequest servletRequest,
ServletResponse servletResponse)
The default behavior of this method is to return startAsync(Runnable) on
the wrapped request object.
|
| Constructor and Description |
|---|
AsyncEvent(AsyncContext context,
ServletRequest request,
ServletResponse response)
Creates an instance using the provide parameters.
|
AsyncEvent(AsyncContext context,
ServletRequest request,
ServletResponse response,
java.lang.Throwable throwable)
Creates an instance using the provide parameters.
|
ServletRequestAttributeEvent(ServletContext sc,
ServletRequest request,
java.lang.String name,
java.lang.Object value)
Construct a ServletRequestAttributeEvent giving the servlet context of
this web application, the ServletRequest whose attributes are changing
and the name and value of the attribute.
|
ServletRequestEvent(ServletContext sc,
ServletRequest request)
Construct a ServletRequestEvent for the given ServletContext and
ServletRequest.
|
ServletRequestWrapper(ServletRequest request)
Creates a ServletRequest adaptor wrapping the given request object.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
HttpServletRequest
Extends the
ServletRequest interface to provide request
information for HTTP servlets. |
| Modifier and Type | Class and Description |
|---|---|
class |
HttpServletRequestWrapper
Provides a convenient implementation of the HttpServletRequest interface that
can be subclassed by developers wishing to adapt the request to a Servlet.
|
| Modifier and Type | Method and Description |
|---|---|
void |
HttpFilter.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 |
HttpServlet.service(ServletRequest req,
ServletResponse res)
Dispatches client requests to the protected
service method. |
| Modifier and Type | Method and Description |
|---|---|
abstract ServletRequest |
PageContext.getRequest()
The current value of the request object (a ServletRequest).
|
| Modifier and Type | Method and Description |
|---|---|
abstract PageContext |
JspFactory.getPageContext(Servlet servlet,
ServletRequest request,
ServletResponse response,
java.lang.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,
java.lang.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.
|
| Modifier and Type | Method and Description |
|---|---|
ServletRequest |
PageContextImpl.getRequest() |
ServletRequest |
JspContextWrapper.getRequest() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
JspRuntimeLibrary.getContextRelativePath(ServletRequest request,
java.lang.String relativePath)
Convert a possibly relative resource path into a context-relative
resource path that starts with a '/'.
|
PageContext |
JspFactoryImpl.getPageContext(Servlet servlet,
ServletRequest request,
ServletResponse response,
java.lang.String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoflush) |
static java.lang.Throwable |
JspRuntimeLibrary.getThrowable(ServletRequest request)
Returns the value of the jakarta.servlet.error.exception request
attribute value, if present, otherwise the value of the
jakarta.servlet.jsp.jspException request attribute value.
|
static void |
JspRuntimeLibrary.include(ServletRequest request,
ServletResponse response,
java.lang.String relativePath,
JspWriter out,
boolean flush)
Perform a RequestDispatcher.include() operation, with optional flushing
of the response beforehand.
|
void |
PageContextImpl.initialize(Servlet servlet,
ServletRequest request,
ServletResponse response,
java.lang.String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoFlush) |
void |
JspContextWrapper.initialize(Servlet servlet,
ServletRequest request,
ServletResponse response,
java.lang.String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoFlush) |
static void |
JspRuntimeLibrary.introspect(java.lang.Object bean,
ServletRequest request) |
static void |
JspRuntimeLibrary.introspecthelper(java.lang.Object bean,
java.lang.String prop,
java.lang.String value,
ServletRequest request,
java.lang.String param,
boolean ignoreMethodNF) |
Copyright © 2014–2021. All rights reserved.