Jakarta Servlet
Servlet - 6.1
JavaDoc Assertion Detail

TotalsTotalActiveDeprecatedRemoved
# of Assertions 11731129413
# of Required Assertions 11731129413
# of Optional Assertions 0000

IDReturnMethod/FieldDescriptionRequiredDeprecatedTestable
Servlet:JAVADOC:1UnavailableExceptionjakarta.servlet.UnavailableException.UnavailableException
( Servlet ,
String )

truetruetrue
Servlet:JAVADOC:2UnavailableExceptionjakarta.servlet.UnavailableException.UnavailableException
( int ,
Servlet ,
String )

truetruetrue
Servlet:JAVADOC:3UnavailableExceptionjakarta.servlet.UnavailableException.UnavailableException
( String )
Constructs a new exception with a descriptive message indicating that the servlet is permanently unavailable. true
true
Servlet:JAVADOC:4UnavailableExceptionjakarta.servlet.UnavailableException.UnavailableException
( String ,
int )
Constructs a new exception with a descriptive message indicating that the servlet is temporarily unavailable and giving an estimate of how long it will be unavailable. In some cases, the servlet cannot make an estimate. For example, the servlet might know that a server it needs is not running, but not be able to report how long it will take to be restored to functionality. This can be indicated with a negative or zero value for the seconds argument. true
true
Servlet:JAVADOC:5booleanjakarta.servlet.UnavailableException.isPermanent
Returns a boolean indicating whether the servlet is permanently unavailable.true
true
Servlet:JAVADOC:6Servletjakarta.servlet.UnavailableException.getServlet

truetruetrue
Servlet:JAVADOC:7intjakarta.servlet.UnavailableException.getUnavailableSeconds
Returns the number of seconds the servlet expects to be temporarily unavailable. If this method returns a negative number, the servlet is permanently unavailable or cannot provide an estimate of how long it will be unavailable. No effort is made to correct for the time elapsed since the exception was first reported. true
true
Servlet:JAVADOC:8Throwablejakarta.servlet.UnavailableException.{jakarta.servlet.ServletException}.getRootCause
Returns the exception that caused this servlet exception.true
true
Servlet:JAVADOC:9ServletResponseWrapperjakarta.servlet.ServletResponseWrapper.ServletResponseWrapper
( ServletResponse )
Creates a ServletResponse adaptor wrapping the given response object. true
true
Servlet:JAVADOC:10ServletResponsejakarta.servlet.ServletResponseWrapper.getResponse
Return the wrapped ServletResponse object.true
true
Servlet:JAVADOC:11voidjakarta.servlet.ServletResponseWrapper.setResponse
( ServletResponse )
Sets the response being wrapped.true
true
Servlet:JAVADOC:12voidjakarta.servlet.ServletResponseWrapper.setResponse
( ServletResponse )
throws IllegalArgumentException
if the response is null.true
true
Servlet:JAVADOC:13voidjakarta.servlet.ServletResponseWrapper.setCharacterEncoding
( String )
The default behavior of this method is to call setCharacterEncoding(String charset) on the wrapped response object. true
true
Servlet:JAVADOC:14Stringjakarta.servlet.ServletResponseWrapper.getCharacterEncoding
The default behavior of this method is to return getCharacterEncoding() on the wrapped response object. true
true
Servlet:JAVADOC:15ServletOutputStreamjakarta.servlet.ServletResponseWrapper.getOutputStream
The default behavior of this method is to return getOutputStream() on the wrapped response object.true
true
Servlet:JAVADOC:16ServletOutputStreamjakarta.servlet.ServletResponseWrapper.getOutputStream

throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:17PrintWriterjakarta.servlet.ServletResponseWrapper.getWriter
The default behavior of this method is to return getWriter() on the wrapped response object. true
true
Servlet:JAVADOC:18PrintWriterjakarta.servlet.ServletResponseWrapper.getWriter

throws IOException

true
false
Servlet:JAVADOC:19voidjakarta.servlet.ServletResponseWrapper.setContentLength
( int )
The default behavior of this method is to call setContentLength(int len) on the wrapped response object. true
true
Servlet:JAVADOC:20voidjakarta.servlet.ServletResponseWrapper.setContentType
( String )
The default behavior of this method is to call setContentType(String type) on the wrapped response object. true
true
Servlet:JAVADOC:21Stringjakarta.servlet.ServletResponseWrapper.getContentType
The default behavior of this method is to return getContentType() on the wrapped response object. true
true
Servlet:JAVADOC:22voidjakarta.servlet.ServletResponseWrapper.setBufferSize
( int )
The default behavior of this method is to call setBufferSize(int size) on the wrapped response object. true
true
Servlet:JAVADOC:23intjakarta.servlet.ServletResponseWrapper.getBufferSize
The default behavior of this method is to return getBufferSize() on the wrapped response object. true
true
Servlet:JAVADOC:24voidjakarta.servlet.ServletResponseWrapper.flushBuffer
The default behavior of this method is to call flushBuffer() on the wrapped response object. true
true
Servlet:JAVADOC:25voidjakarta.servlet.ServletResponseWrapper.flushBuffer

throws IOException

true
false
Servlet:JAVADOC:26booleanjakarta.servlet.ServletResponseWrapper.isCommitted
The default behavior of this method is to return isCommitted() on the wrapped response object. true
true
Servlet:JAVADOC:27voidjakarta.servlet.ServletResponseWrapper.reset
The default behavior of this method is to call reset() on the wrapped response object. true
true
Servlet:JAVADOC:28voidjakarta.servlet.ServletResponseWrapper.resetBuffer
The default behavior of this method is to call resetBuffer() on the wrapped response object. true
true
Servlet:JAVADOC:29voidjakarta.servlet.ServletResponseWrapper.setLocale
( Locale )
The default behavior of this method is to call setLocale(Locale loc) on the wrapped response object. true
true
Servlet:JAVADOC:30Localejakarta.servlet.ServletResponseWrapper.getLocale
The default behavior of this method is to return getLocale() on the wrapped response object. true
true
Servlet:JAVADOC:31ServletRequestWrapperjakarta.servlet.ServletRequestWrapper.ServletRequestWrapper
( ServletRequest )
Creates a ServletRequest adaptor wrapping the given request object. true
true
Servlet:JAVADOC:32ServletRequestjakarta.servlet.ServletRequestWrapper.getRequest
Return the wrapped request object. true
true
Servlet:JAVADOC:33voidjakarta.servlet.ServletRequestWrapper.setRequest
( ServletRequest )
Sets the request object being wrapped.true
true
Servlet:JAVADOC:34voidjakarta.servlet.ServletRequestWrapper.setRequest
( ServletRequest )
throws IllegalArgumentException
if the request is null.true
true
Servlet:JAVADOC:35Objectjakarta.servlet.ServletRequestWrapper.getAttribute
( String )
The default behavior of this method is to call getAttribute(String name) on the wrapped request object. true
true
Servlet:JAVADOC:36Enumerationjakarta.servlet.ServletRequestWrapper.getAttributeNames
The default behavior of this method is to return getAttributeNames() on the wrapped request object. true
true
Servlet:JAVADOC:37Stringjakarta.servlet.ServletRequestWrapper.getCharacterEncoding
The default behavior of this method is to return getCharacterEncoding() on the wrapped request object. true
true
Servlet:JAVADOC:38voidjakarta.servlet.ServletRequestWrapper.setCharacterEncoding
( String )
Overrides the name of the character encoding used in the body of this wrapped request. This method must be called prior to reading request parameters or reading input using getReader(). Otherwise, it has no effect. true
true
Servlet:JAVADOC:39voidjakarta.servlet.ServletRequestWrapper.setCharacterEncoding
( String )
throws UnsupportedEncodingException
if this ServletRequest is still in a state where a character encoding may be set, but the specified encoding is invalidtrue
true
Servlet:JAVADOC:40intjakarta.servlet.ServletRequestWrapper.getContentLength
The default behavior of this method is to return getContentLength() on the wrapped request object. true
true
Servlet:JAVADOC:41Stringjakarta.servlet.ServletRequestWrapper.getContentType
The default behavior of this method is to return getContentType() on the wrapped request object. true
true
Servlet:JAVADOC:42ServletInputStreamjakarta.servlet.ServletRequestWrapper.getInputStream
The default behavior of this method is to return getInputStream() on the wrapped request object. true
true
Servlet:JAVADOC:43ServletInputStreamjakarta.servlet.ServletRequestWrapper.getInputStream

throws IOException

true
false
Servlet:JAVADOC:44Stringjakarta.servlet.ServletRequestWrapper.getParameter
( String )
The default behavior of this method is to return getParameter(String name) on the wrapped request object. true
true
Servlet:JAVADOC:45Mapjakarta.servlet.ServletRequestWrapper.getParameterMap
The default behavior of this method is to return getParameterMap() on the wrapped request object. true
true
Servlet:JAVADOC:46Enumerationjakarta.servlet.ServletRequestWrapper.getParameterNames
The default behavior of this method is to return getParameterNames() on the wrapped request object. true
true
Servlet:JAVADOC:47String[]jakarta.servlet.ServletRequestWrapper.getParameterValues
( String )
The default behavior of this method is to return getParameterValues(String name) on the wrapped request object. true
true
Servlet:JAVADOC:48Stringjakarta.servlet.ServletRequestWrapper.getProtocol
The default behavior of this method is to return getProtocol() on the wrapped request object. true
true
Servlet:JAVADOC:49Stringjakarta.servlet.ServletRequestWrapper.getScheme
The default behavior of this method is to return getScheme() on the wrapped request object. true
true
Servlet:JAVADOC:50Stringjakarta.servlet.ServletRequestWrapper.getServerName
The default behavior of this method is to return getServerName() on the wrapped request object. true
true
Servlet:JAVADOC:51intjakarta.servlet.ServletRequestWrapper.getServerPort
The default behavior of this method is to return getServerPort() on the wrapped request object. true
true
Servlet:JAVADOC:52BufferedReaderjakarta.servlet.ServletRequestWrapper.getReader
The default behavior of this method is to return getReader() on the wrapped request object. true
true
Servlet:JAVADOC:53BufferedReaderjakarta.servlet.ServletRequestWrapper.getReader

throws IOException

true
false
Servlet:JAVADOC:54Stringjakarta.servlet.ServletRequestWrapper.getRemoteAddr
The default behavior of this method is to return getRemoteAddr() on the wrapped request object. true
true
Servlet:JAVADOC:55Stringjakarta.servlet.ServletRequestWrapper.getRemoteHost
The default behavior of this method is to return getRemoteHost() on the wrapped request object. true
true
Servlet:JAVADOC:56voidjakarta.servlet.ServletRequestWrapper.setAttribute
( String ,
Object )
The default behavior of this method is to return setAttribute(String name, Object o) on the wrapped request object. true
true
Servlet:JAVADOC:57voidjakarta.servlet.ServletRequestWrapper.removeAttribute
( String )
The default behavior of this method is to call removeAttribute(String name) on the wrapped request object. true
true
Servlet:JAVADOC:58Localejakarta.servlet.ServletRequestWrapper.getLocale
The default behavior of this method is to return getLocale() on the wrapped request object. true
true
Servlet:JAVADOC:59Enumerationjakarta.servlet.ServletRequestWrapper.getLocales
The default behavior of this method is to return getLocales() on the wrapped request object. true
true
Servlet:JAVADOC:60booleanjakarta.servlet.ServletRequestWrapper.isSecure
The default behavior of this method is to return isSecure() on the wrapped request object. true
true
Servlet:JAVADOC:61RequestDispatcherjakarta.servlet.ServletRequestWrapper.getRequestDispatcher
( String )
The default behavior of this method is to return getRequestDispatcher(String path) on the wrapped request object. true
true
Servlet:JAVADOC:62Stringjakarta.servlet.ServletRequestWrapper.getRealPath
( String )
The default behavior of this method is to return getRealPath(String path) on the wrapped request object. truetruetrue
Servlet:JAVADOC:63ServletRequestEventjakarta.servlet.ServletRequestEvent.ServletRequestEvent
( ServletContext ,
ServletRequest )
Construct a ServletRequestEvent from the given context. true
true
Servlet:JAVADOC:64ServletRequestjakarta.servlet.ServletRequestEvent.getServletRequest
Return the ServletRequest that changed. true
true
Servlet:JAVADOC:65ServletContextjakarta.servlet.ServletRequestEvent.getServletContext
Return the ServletContext that changed. true
true
Servlet:JAVADOC:66ServletRequestAttributeEventjakarta.servlet.ServletRequestAttributeEvent.ServletRequestAttributeEvent
( ServletContext ,
ServletRequest ,
String ,
Object )
Construct a ServletRequestAttributeEvent from the given context for the given attribute name and attribute value. true
true
Servlet:JAVADOC:67Stringjakarta.servlet.ServletRequestAttributeEvent.getName
Return the name of the attribute that changed on the ServletRequest.true
true
Servlet:JAVADOC:68Objectjakarta.servlet.ServletRequestAttributeEvent.getValue
Returns the value of the attribute that has been added removed or replaced. If the attribute was added, this is the value of the attribute.true
true
Servlet:JAVADOC:69Objectjakarta.servlet.ServletRequestAttributeEvent.getValue
Returns the value of the attribute that has been added removed or replaced. If the attribute was removed, this is the value of the removed attribute.true
true
Servlet:JAVADOC:70Objectjakarta.servlet.ServletRequestAttributeEvent.getValue
Returns the value of the attribute that has been added removed or replaced. If the attribute was replaced, this is the old value of the attribute.true
true
Servlet:JAVADOC:71ServletRequestjakarta.servlet.ServletRequestAttributeEvent.{jakarta.servlet.ServletRequestEvent}.getServletRequest
Return the ServletRequest that changed.true
true
Servlet:JAVADOC:72ServletContextjakarta.servlet.ServletRequestAttributeEvent.{jakarta.servlet.ServletRequestEvent}.getServletContext
Return the ServletContext that changed.true
true
Servlet:JAVADOC:73voidjakarta.servlet.ServletOutputStream.print
( String )
Writes a String to the client, without a carriage return-line feed (CRLF) character at the end. true
true
Servlet:JAVADOC:74voidjakarta.servlet.ServletOutputStream.print
( String )
throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:75voidjakarta.servlet.ServletOutputStream.print
( boolean )
Writes a boolean value to the client, with no carriage return-line feed (CRLF) character at the end. true
true
Servlet:JAVADOC:76voidjakarta.servlet.ServletOutputStream.print
( boolean )
throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:77voidjakarta.servlet.ServletOutputStream.print
( char )
Writes a character to the client, with no carriage return-line feed (CRLF) at the end. true
true
Servlet:JAVADOC:78voidjakarta.servlet.ServletOutputStream.print
( char )
throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:79voidjakarta.servlet.ServletOutputStream.print
( int )
Writes an int to the client, with no carriage return-line feed (CRLF) at the end. true
true
Servlet:JAVADOC:80voidjakarta.servlet.ServletOutputStream.print
( int )
throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:81voidjakarta.servlet.ServletOutputStream.print
( long )
Writes a long value to the client, with no carriage return-line feed (CRLF) at the end. true
true
Servlet:JAVADOC:82voidjakarta.servlet.ServletOutputStream.print
( long )
throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:83voidjakarta.servlet.ServletOutputStream.print
( float )
Writes a float value to the client, with no carriage return-line feed (CRLF) at the end. true
true
Servlet:JAVADOC:84voidjakarta.servlet.ServletOutputStream.print
( float )
throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:85voidjakarta.servlet.ServletOutputStream.print
( double )
Writes a double value to the client, with no carriage return-line feed (CRLF) at the end. true
true
Servlet:JAVADOC:86voidjakarta.servlet.ServletOutputStream.print
( double )
throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:87voidjakarta.servlet.ServletOutputStream.println
Writes a carriage return-line feed (CRLF) to the client. true
true
Servlet:JAVADOC:88voidjakarta.servlet.ServletOutputStream.println

throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:89voidjakarta.servlet.ServletOutputStream.println
( String )
Writes a String to the client, followed by a carriage return-line feed (CRLF). true
true
Servlet:JAVADOC:90voidjakarta.servlet.ServletOutputStream.println
( String )
throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:91voidjakarta.servlet.ServletOutputStream.println
( boolean )
Writes a boolean value to the client, followed by a carriage return-line feed (CRLF). true
true
Servlet:JAVADOC:92voidjakarta.servlet.ServletOutputStream.println
( boolean )
throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:93voidjakarta.servlet.ServletOutputStream.println
( char )
Writes a character to the client, followed by a carriage return-line feed (CRLF). true
true
Servlet:JAVADOC:94voidjakarta.servlet.ServletOutputStream.println
( char )
throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:95voidjakarta.servlet.ServletOutputStream.println
( int )
Writes an int to the client, followed by a carriage return-line feed (CRLF) character. true
true
Servlet:JAVADOC:96voidjakarta.servlet.ServletOutputStream.println
( int )
throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:97voidjakarta.servlet.ServletOutputStream.println
( long )
Writes a long value to the client, followed by a carriage return-line feed (CRLF). true
true
Servlet:JAVADOC:98voidjakarta.servlet.ServletOutputStream.println
( long )
throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:99voidjakarta.servlet.ServletOutputStream.println
( float )
Writes a float value to the client, followed by a carriage return-line feed (CRLF). true
true
Servlet:JAVADOC:100voidjakarta.servlet.ServletOutputStream.println
( float )
throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:101voidjakarta.servlet.ServletOutputStream.println
( double )
Writes a double value to the client, followed by a carriage return-line feed (CRLF). true
true
Servlet:JAVADOC:102voidjakarta.servlet.ServletOutputStream.println
( double )
throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:103intjakarta.servlet.ServletInputStream.readLine
( byte[] ,
int ,
int )
Reads the input stream, one line at a time. Starting at an offset, reads bytes into an array, until it reads a certain number of bytes or reaches a newline character, which it reads into the array as well. true
true
Servlet:JAVADOC:104intjakarta.servlet.ServletInputStream.readLine
( byte[] ,
int ,
int )
throws IOException
if an input or output exception has occurredtrue
false
Servlet:JAVADOC:105ServletExceptionjakarta.servlet.ServletException.ServletException
Constructs a new servlet exception. true
true
Servlet:JAVADOC:106ServletExceptionjakarta.servlet.ServletException.ServletException
( String )
Constructs a new servlet exception with the specified message. true
true
Servlet:JAVADOC:107ServletExceptionjakarta.servlet.ServletException.ServletException
( String ,
Throwable )
Constructs a new servlet exception when the servlet needs to throw an exception and include a message about the "root cause" exception that interfered with its normal operation, including a description message. true
true
Servlet:JAVADOC:108ServletExceptionjakarta.servlet.ServletException.ServletException
( Throwable )
Constructs a new servlet exception when the servlet needs to throw an exception and include a message about the "root cause" exception that interfered with its normal operation. The exception's message is based on the localized message of the underlying exception. This method calls the getLocalizedMessage method on the Throwable exception to get a localized exception message. When subclassing ServletException, this method can be overridden to create an exception message designed for a specific locale. true
true
Servlet:JAVADOC:109Throwablejakarta.servlet.ServletException.getRootCause
Returns the exception that caused this servlet exception. true
true
Servlet:JAVADOC:110ServletContextEventjakarta.servlet.ServletContextEvent.ServletContextEvent
( ServletContext )
Construct a ServletContextEvent from the given context. true
true
Servlet:JAVADOC:111ServletContextjakarta.servlet.ServletContextEvent.getServletContext
Return the ServletContext that changed. true
true
Servlet:JAVADOC:112ServletContextAttributeEventjakarta.servlet.ServletContextAttributeEvent.ServletContextAttributeEvent
( ServletContext ,
String ,
Object )
Construct a ServletContextAttributeEvent from the given context for the given attribute name and attribute value. true
true
Servlet:JAVADOC:113Stringjakarta.servlet.ServletContextAttributeEvent.getName
Return the name of the attribute that changed on the ServletContext. true
true
Servlet:JAVADOC:114Objectjakarta.servlet.ServletContextAttributeEvent.getValue
Returns the value of the attribute that has been added removed or replaced. If the attribute was added, this is the value of the attribute. true
true
Servlet:JAVADOC:115Objectjakarta.servlet.ServletContextAttributeEvent.getValue
Returns the value of the attribute that has been added removed or replaced. If the attrubute was removed, this is the value of the removed attribute. true
true
Servlet:JAVADOC:116Objectjakarta.servlet.ServletContextAttributeEvent.getValue
Returns the value of the attribute that has been added removed or replaced. If the attribute was replaced, this is the old value of the attribute. true
true
Servlet:JAVADOC:117ServletContextjakarta.servlet.ServletContextAttributeEvent.{jakarta.servlet.ServletContextEvent}.getServletContext
Return the ServletContext that changed.true
true
Servlet:JAVADOC:118GenericServletjakarta.servlet.GenericServlet.GenericServlet
Does nothing. All of the servlet initialization is done by one of the init methods. true
false
Servlet:JAVADOC:119voidjakarta.servlet.GenericServlet.destroy
Called by the servlet container to indicate to a servlet that the servlet is being taken out of service. true
true
Servlet:JAVADOC:120Stringjakarta.servlet.GenericServlet.getInitParameter
( String )
Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist. This method is supplied for convenience. It gets the value of the named parameter from the servlet's ServletConfig object. true
true
Servlet:JAVADOC:121Stringjakarta.servlet.GenericServlet.getInitParameter
( String )
Returns null if the parameter does not exist. This method is supplied for convenience. It gets the value of the named parameter from the servlet's ServletConfig object. true
false
Servlet:JAVADOC:122Enumerationjakarta.servlet.GenericServlet.getInitParameterNames
Returns the names of the servlet's initialization parameters as an Enumeration of String objects, or an empty Enumeration if the servlet has no initialization parameters. This method is supplied for convenience. It gets the parameter names from the servlet's ServletConfig object. true
true
Servlet:JAVADOC:123Enumerationjakarta.servlet.GenericServlet.getInitParameterNames
Returns an empty Enumeration if the servlet has no initialization parameters. This method is supplied for convenience. It gets the parameter names from the servlet's ServletConfig object. true
false
Servlet:JAVADOC:124ServletConfigjakarta.servlet.GenericServlet.getServletConfig
Returns this servlet's object. true
true
Servlet:JAVADOC:125ServletContextjakarta.servlet.GenericServlet.getServletContext
Returns a reference to the context in which this servlet is running. This method is supplied for convenience. It gets the servlet context from the servlet's ServletConfig object. true
true
Servlet:JAVADOC:126Stringjakarta.servlet.GenericServlet.getServletInfo
Returns information about the servlet, such as author, version, and copyright. By default, this method returns an empty string. Override this method to have it return a meaningful value. true
true
Servlet:JAVADOC:127voidjakarta.servlet.GenericServlet.init
( ServletConfig )
Called by the servlet container to indicate to a servlet that the servlet is being placed into service. This implementation stores the object it receives from the servlet container for later use. When overriding this form of the method, call super.init(config). true
true
Servlet:JAVADOC:128voidjakarta.servlet.GenericServlet.init
( ServletConfig )
throws ServletException
if an exception occurs that interrupts the servlet's normal operationtrue
true
Servlet:JAVADOC:129voidjakarta.servlet.GenericServlet.init
A convenience method which can be overridden so that there's no need to call super.init(config). Instead of overriding #init(ServletConfig), simply override this method and it will be called by GenericServlet.init(ServletConfig config). The ServletConfig object can still be retrieved via . true
true
Servlet:JAVADOC:130voidjakarta.servlet.GenericServlet.init

throws ServletException
if an exception occurs that interrupts the servlet's normal operationtrue
true
Servlet:JAVADOC:131voidjakarta.servlet.GenericServlet.log
( String )
Writes the specified message to a servlet log file, prepended by the servlet's name. true
false
Servlet:JAVADOC:132voidjakarta.servlet.GenericServlet.log
( String ,
Throwable )
Writes an explanatory message and a stack trace for a given Throwable exception to the servlet log file, prepended by the servlet's name. true
false
Servlet:JAVADOC:133voidjakarta.servlet.GenericServlet.service
( ServletRequest ,
ServletResponse )
Called by the servlet container to allow the servlet to respond to a request. This method is declared abstract so subclasses, such as HttpServlet, must override it. true
true
Servlet:JAVADOC:134voidjakarta.servlet.GenericServlet.service
( ServletRequest ,
ServletResponse )
throws ServletException
if an exception occurs that interferes with the servlet's normal operation occurredtrue
false
Servlet:JAVADOC:135voidjakarta.servlet.GenericServlet.service
( ServletRequest ,
ServletResponse )
throws IOException
if an input or output exception occurstrue
false
Servlet:JAVADOC:136Stringjakarta.servlet.GenericServlet.getServletName
Returns the name of this servlet instance. true
true
Servlet:JAVADOC:137Stringjakarta.servlet.ServletResponse.getCharacterEncoding
Returns the name of the charset used for the MIME body sent in this response. See RFC 2047 (http://ds.internic.net/rfc/rfc2045.txt) for more information about character encoding and MIME. true
true
Servlet:JAVADOC:138Stringjakarta.servlet.ServletResponse.getCharacterEncoding
Returns the name of the charset used for the MIME body sent in this response. If no charset has been assigned, it is implicitly set to ISO-8859-1 (Latin-1). See RFC 2047 (http://ds.internic.net/rfc/rfc2045.txt) for more information about character encoding and MIME. true
true
Servlet:JAVADOC:139voidjakarta.servlet.ServletResponse.setCharacterEncoding
( String )
Overrides the name of the character encoding used in the body of the request. true
true
Servlet:JAVADOC:140ServletOutputStreamjakarta.servlet.ServletResponse.getOutputStream
Returns a ServletOutputStream suitable output steam for writing binary data in the response. Calling flush() on the ServletOutputStream commits the response. true
true
Servlet:JAVADOC:141ServletOutputStreamjakarta.servlet.ServletResponse.getOutputStream
Returns a ServletOutputStream suitable output steam for writing binary data in the response. The servlet container does not encode the binary data. true
true
Servlet:JAVADOC:142ServletOutputStreamjakarta.servlet.ServletResponse.getOutputStream

throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:143ServletOutputStreamjakarta.servlet.ServletResponse.getOutputStream

throws IllegalStateException
if the getWriter method has been called on this responsetrue
true
Servlet:JAVADOC:144PrintWriterjakarta.servlet.ServletResponse.getWriter
Returns a PrintWriter object that can send character text to the client. The character encoding used is the one specified in the charset= property of the setContentType(String) method. true
true
Servlet:JAVADOC:145PrintWriterjakarta.servlet.ServletResponse.getWriter
Returns a PrintWriter object that can send character text to the client. getWriter()must be called before calling the setContentType(String) methodfor the charset to take effect. true
true
Servlet:JAVADOC:146PrintWriterjakarta.servlet.ServletResponse.getWriter
Returns a PrintWriter object that can send character text to the client. Calling flush() on the PrintWriter commits the response. true
true
Servlet:JAVADOC:147PrintWriterjakarta.servlet.ServletResponse.getWriter

throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:148PrintWriterjakarta.servlet.ServletResponse.getWriter

throws UnsupportedEncodingException
if the character encoding returned by getCharacterEncoding cannot be usedtrue
false
Servlet:JAVADOC:149PrintWriterjakarta.servlet.ServletResponse.getWriter

throws IllegalStateException
if the getOutputStream method has already been called for this response objecttrue
true
Servlet:JAVADOC:150voidjakarta.servlet.ServletResponse.setContentLength
( int )
Sets the length of the content body in the response In HTTP servlets, this method sets the HTTP Content-Length header. true
true
Servlet:JAVADOC:151voidjakarta.servlet.ServletResponse.setContentType
( String )
Sets the content type of the response being sent to the client, if the response has not been committed yet. The given content type may include a character encoding specification, for example, text/html;charset=UTF-8. The response s character encoding is only set from the given content type if this method is called before getWriter is called. true
true
Servlet:JAVADOC:151.1voidjakarta.servlet.ServletResponse.setContentType
( String )
This method may be called repeatedly to change content type and character encoding. true
true
Servlet:JAVADOC:151.2voidjakarta.servlet.ServletResponse.setContentType
( String )
This method has no effect if called after the response has been committed. It does not set the response s character encoding if it is called after getWriter has been called or after the response has been committed. true
true
Servlet:JAVADOC:151.3voidjakarta.servlet.ServletResponse.setContentType
( String )
Containers must communicate the content type and the character encoding used for the servlet response's writer to the client if the protocol provides a way for doing so. In the case of HTTP, the Content-Type header is used. true
true
Servlet:JAVADOC:152Stringjakarta.servlet.ServletResponse.getContentType
Returns the content type used for the MIME body sent in this response. The content type proper must have been specified using setContentType(java.lang.String) before the response is committed. true
true
Servlet:JAVADOC:153Stringjakarta.servlet.ServletResponse.getContentType
If no content type has been specified, this method returns null. true
true
Servlet:JAVADOC:153.1Stringjakarta.servlet.ServletResponse.getContentType
If a content type has been specified, and a character encoding has been explicitly or implicitly specified as described in getCharacterEncoding() or getWriter() has been called, the charset parameter is included in the string returned. If no character encoding has been specified, the charset parameter is omitted. true
true
Servlet:JAVADOC:154voidjakarta.servlet.ServletResponse.setBufferSize
( int )
Sets the preferred buffer size for the body of the response. The servlet container will use a buffer at least as large as the size requested. true
true
Servlet:JAVADOC:155voidjakarta.servlet.ServletResponse.setBufferSize
( int )
throws IllegalStateException
If this method is called after content has been writtentrue
true
Servlet:JAVADOC:156intjakarta.servlet.ServletResponse.getBufferSize
Returns the actual buffer size used for the response. true
true
Servlet:JAVADOC:157intjakarta.servlet.ServletResponse.getBufferSize
If no buffering is used, this method returns 0. true
true
Servlet:JAVADOC:158voidjakarta.servlet.ServletResponse.flushBuffer
Forces any content in the buffer to be written to the client. A call to this method automatically commits the response, meaning the status code and headers will be written. true
true
Servlet:JAVADOC:159voidjakarta.servlet.ServletResponse.flushBuffer

throws IOException

true
false
Servlet:JAVADOC:160voidjakarta.servlet.ServletResponse.resetBuffer
Clears the content of the underlying buffer in the response without clearing headers or status code.true
true
Servlet:JAVADOC:161booleanjakarta.servlet.ServletResponse.isCommitted
Returns a boolean indicating if the response has been committed.true
true
Servlet:JAVADOC:162voidjakarta.servlet.ServletResponse.reset
Clears any data that exists in the buffer as well as the status code and headers.true
true
Servlet:JAVADOC:163voidjakarta.servlet.ServletResponse.reset

throws IllegalStateException
if the response has already been committedtrue
true
Servlet:JAVADOC:164voidjakarta.servlet.ServletResponse.setLocale
( Locale )
Sets the locale of the response, if the response has not been committed yet. true
true
Servlet:JAVADOC:164.1voidjakarta.servlet.ServletResponse.setLocale
( Locale )
It also sets the response's character encoding appropriately for the locale, if the character encoding has not been explicitly set using setContentType true
true
Servlet:JAVADOC:164.2voidjakarta.servlet.ServletResponse.setLocale
( Locale )
It also sets the response's character encoding appropriately for the locale, if the character encoding has not been explicitly set using setCharacterEncoding, true
true
Servlet:JAVADOC:164.3voidjakarta.servlet.ServletResponse.setLocale
( Locale )
It also sets the response's character encoding appropriately for the locale, if the character encoding has not been explicitly set using setContentType or setCharacterEncoding, getWriter hasn't been called yet true
true
Servlet:JAVADOC:164.4voidjakarta.servlet.ServletResponse.setLocale
( Locale )
It also sets the response's character encoding appropriately for the locale, if the character encoding has not been explicitly set using setContentType or setCharacterEncoding, and the response hasn't been committed yet. true
true
Servlet:JAVADOC:164.5voidjakarta.servlet.ServletResponse.setLocale
( Locale )
If the deployment descriptor contains a locale-encoding-mapping-list element, and that element provides a mapping for the given locale, that mapping is used. true
true
Servlet:JAVADOC:164.6voidjakarta.servlet.ServletResponse.setLocale
( Locale )
Otherwise, the mapping from locale to character encoding is container dependent. true
true
Servlet:JAVADOC:164.7voidjakarta.servlet.ServletResponse.setLocale
( Locale )
This method may be called repeatedly to change locale and character encoding. true
true
Servlet:JAVADOC:164.8voidjakarta.servlet.ServletResponse.setLocale
( Locale )
The method has no effect if called after the response has been committed. true
true
Servlet:JAVADOC:164.9voidjakarta.servlet.ServletResponse.setLocale
( Locale )
It does not set the response's character encoding if it is called after setContentType has been called with a charset specification,true
true
Servlet:JAVADOC:164.10voidjakarta.servlet.ServletResponse.setLocale
( Locale )
It does not set the response's character encoding if it is called after setCharacterEncoding has been called true
true
Servlet:JAVADOC:164.11voidjakarta.servlet.ServletResponse.setLocale
( Locale )
It does not set the response's character encoding if it is called after getWriter has been called, true
true
Servlet:JAVADOC:164.12voidjakarta.servlet.ServletResponse.setLocale
( Locale )
It does not set the response's character encoding if it is called after the response has been committed. true
true
Servlet:JAVADOC:165voidjakarta.servlet.ServletResponse.setLocale
( Locale )
Containers must communicate the locale and the character encoding used for the servlet response's writer to the client if the protocol provides a way for doing so. In the case of HTTP, the locale is communicated via the Content-Language header, the character encoding as part of the Content-Type header for text media types. Note that the character encoding cannot be communicated via HTTP headers if the servlet does not specify a content type; however, it is still used to encode text written via the servlet response's writer.Sets the locale of the response, setting the headers (including the Content-Type's charset) as appropriate. true
true
Servlet:JAVADOC:166Localejakarta.servlet.ServletResponse.getLocale
Returns the locale specified for this response using the setLocale method. If no locale has been specified, the container's default locale is returned. true
true
Servlet:JAVADOC:167voidjakarta.servlet.ServletRequestListener.requestDestroyed
( ServletRequestEvent )
Notification that the servlet request is about to go out of scope. true
true
Servlet:JAVADOC:168voidjakarta.servlet.ServletRequestListener.requestInitialized
( ServletRequestEvent )
Notification that the servlet request is about to go into scope. true
true
Servlet:JAVADOC:169voidjakarta.servlet.ServletRequestAttributeListener.attributeAdded
( ServletRequestAttributeEvent )
Notification that a new attribute was added to the servlet request. Called after the attribute is added. true
true
Servlet:JAVADOC:170voidjakarta.servlet.ServletRequestAttributeListener.attributeRemoved
( ServletRequestAttributeEvent )
Notification that an existing attribute has been removed from the servlet request. Called after the attribute is removed. true
true
Servlet:JAVADOC:171voidjakarta.servlet.ServletRequestAttributeListener.attributeReplaced
( ServletRequestAttributeEvent )
Notification that an attribute on the servlet request has been replaced. Called after the attribute is replaced. true
true
Servlet:JAVADOC:172Objectjakarta.servlet.ServletRequest.getAttribute
( String )
Returns the value of the named attribute as an Object. true
true
Servlet:JAVADOC:173Objectjakarta.servlet.ServletRequest.getAttribute
( String )
Returns null if no attribute of the given name exists. true
true
Servlet:JAVADOC:174Enumerationjakarta.servlet.ServletRequest.getAttributeNames
Returns an Enumeration containing the names of the attributes available to this request. true
true
Servlet:JAVADOC:175Enumerationjakarta.servlet.ServletRequest.getAttributeNames
Returns an empty Enumeration if the request has no attributes available to it. true
true
Servlet:JAVADOC:176Stringjakarta.servlet.ServletRequest.getCharacterEncoding
Returns the name of the character encoding used in the body of this request. true
true
Servlet:JAVADOC:177Stringjakarta.servlet.ServletRequest.getCharacterEncoding
Returns null if the request does not specify a character encoding true
true
Servlet:JAVADOC:178voidjakarta.servlet.ServletRequest.setCharacterEncoding
( String )
Overrides the name of the character encoding used in the body of this request. This method must be called prior to reading request parameters or reading input using getReader(). Otherwise, it has no effect. true
true
Servlet:JAVADOC:179voidjakarta.servlet.ServletRequest.setCharacterEncoding
( String )
throws UnsupportedEncodingException
if this ServletRequest is still in a state where a character encoding may be set, but the specified encoding is invalidtrue
true
Servlet:JAVADOC:180intjakarta.servlet.ServletRequest.getContentLength
Returns the length, in bytes, of the request body and made available by the input stream. For HTTP servlets, same as the value of the CGI variable CONTENT_LENGTH. true
true
Servlet:JAVADOC:181intjakarta.servlet.ServletRequest.getContentLength
Returns -1 if the length is not known. For HTTP servlets, same as the value of the CGI variable CONTENT_LENGTH. true
false
Servlet:JAVADOC:182Stringjakarta.servlet.ServletRequest.getContentType
Returns the MIME type of the body of the request. For HTTP servlets, same as the value of the CGI variable CONTENT_TYPE. true
true
Servlet:JAVADOC:183Stringjakarta.servlet.ServletRequest.getContentType
Returns null if the MIME type is not known. For HTTP servlets, same as the value of the CGI variable CONTENT_TYPE. true
true
Servlet:JAVADOC:184ServletInputStreamjakarta.servlet.ServletRequest.getInputStream
Retrieves the body of the request as binary data using a ServletInputStream. true
true
Servlet:JAVADOC:185ServletInputStreamjakarta.servlet.ServletRequest.getInputStream

throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:186ServletInputStreamjakarta.servlet.ServletRequest.getInputStream

throws IllegalStateException
if the getReader() method has already been called for this requesttrue
true
Servlet:JAVADOC:187Stringjakarta.servlet.ServletRequest.getParameter
( String )
Returns the value of a request parameter as a String. Request parameters are extra information sent with the request. For HTTP servlets, parameters are contained in the query string or posted form data. You should only use this method when you are sure the parameter has only one value. If the parameter might have more than one value, use . If you use this method with a multivalued parameter, the value returned is equal to the first value in the array returned by getParameterValues. If the parameter data was sent in the request body, such as occurs with an HTTP POST request, then reading the body directly via or can interfere with the execution of this method. true
true
Servlet:JAVADOC:188Stringjakarta.servlet.ServletRequest.getParameter
( String )
Returns null if the parameter does not exist. true
true
Servlet:JAVADOC:189Enumerationjakarta.servlet.ServletRequest.getParameterNames
Returns an Enumeration of String objects containing the names of the parameters contained in this request. true
true
Servlet:JAVADOC:190Enumerationjakarta.servlet.ServletRequest.getParameterNames
If the request has no parameters, the method returns an empty Enumeration. true
true
Servlet:JAVADOC:191String[]jakarta.servlet.ServletRequest.getParameterValues
( String )
Returns an array of String objects containing all of the values the given request parameter has. true
true
Servlet:JAVADOC:192String[]jakarta.servlet.ServletRequest.getParameterValues
( String )
Returns null if the parameter does not exist. true
true
Servlet:JAVADOC:193Mapjakarta.servlet.ServletRequest.getParameterMap
Returns a java.util.Map of the parameters of this request. Request parameters are extra information sent with the request. For HTTP servlets, parameters are contained in the query string or posted form data. true
true
Servlet:JAVADOC:194Stringjakarta.servlet.ServletRequest.getProtocol
Returns the name and version of the protocol the request uses in the form protocol/majorVersion.minorVersion, for example, HTTP/1.1. For HTTP servlets, the value returned is the same as the value of the CGI variable SERVER_PROTOCOL. true
true
Servlet:JAVADOC:195Stringjakarta.servlet.ServletRequest.getScheme
Returns the name of the scheme used to make this request, for example, http, https, or ftp. true
true
Servlet:JAVADOC:196Stringjakarta.servlet.ServletRequest.getServerName
Returns the host name of the server that received the request. For HTTP servlets, same as the value of the CGI variable SERVER_NAME. true
true
Servlet:JAVADOC:197intjakarta.servlet.ServletRequest.getServerPort
Returns the port number on which this request was received. For HTTP servlets, same as the value of the CGI variable SERVER_PORT. true
true
Servlet:JAVADOC:198BufferedReaderjakarta.servlet.ServletRequest.getReader
Retrieves the body of the request as character data using a BufferedReader. true
true
Servlet:JAVADOC:199BufferedReaderjakarta.servlet.ServletRequest.getReader

throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:200BufferedReaderjakarta.servlet.ServletRequest.getReader

throws UnsupportedEncodingException
if the character set encoding used is not supported and the text cannot be decodedtrue
true
Servlet:JAVADOC:201BufferedReaderjakarta.servlet.ServletRequest.getReader

throws IllegalStateException
if getInputStream method has been called on this requesttrue
true
Servlet:JAVADOC:202Stringjakarta.servlet.ServletRequest.getRemoteAddr
Returns the Internet Protocol (IP) address of the client that sent the request. For HTTP servlets, same as the value of the CGI variable REMOTE_ADDR. true
true
Servlet:JAVADOC:203Stringjakarta.servlet.ServletRequest.getRemoteHost
Returns the fully qualified name of the client that sent the request. If the engine cannot or chooses not to resolve the hostname (to improve performance), this method returns the dotted-string form of the IP address. For HTTP servlets, same as the value of the CGI variable REMOTE_HOST. true
true
Servlet:JAVADOC:204voidjakarta.servlet.ServletRequest.setAttribute
( String ,
Object )
Stores an attribute in this request. Attributes are reset between requests. This method is most often used in conjunction with . Attribute names should follow the same conventions as package names. Names beginning with java.*, jakarta.*, and com.sun.*, are reserved for use by the Eclipse Foundation. If the value passed in is null, the effect is the same as calling . true
true
Servlet:JAVADOC:205voidjakarta.servlet.ServletRequest.removeAttribute
( String )
Removes an attribute from this request. This method is not generally needed as attributes only persist as long as the request is being handled. Attribute names should follow the same conventions as package names. Names beginning with java.*, jakarta.*, and com.sun.*, are reserved for use by the Eclipse Foundation. true
true
Servlet:JAVADOC:206Localejakarta.servlet.ServletRequest.getLocale
Returns the preferred Locale that the client will accept content in, based on the Accept-Language header. If the client request doesn't provide an Accept-Language header, this method returns the default locale for the server. true
true
Servlet:JAVADOC:207Localejakarta.servlet.ServletRequest.getLocale
If the client request doesn't provide an Accept-Language header, this method returns the default locale for the server. true
true
Servlet:JAVADOC:208Enumerationjakarta.servlet.ServletRequest.getLocales
Returns an Enumeration of Locale objects indicating, in decreasing order starting with the preferred locale, the locales that are acceptable to the client based on the Accept-Language header. true
true
Servlet:JAVADOC:209Enumerationjakarta.servlet.ServletRequest.getLocales
If the client request doesn't provide an Accept-Language header, this method returns an Enumeration containing one Locale, the default locale for the server. true
true
Servlet:JAVADOC:210booleanjakarta.servlet.ServletRequest.isSecure
Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS. true
true
Servlet:JAVADOC:211RequestDispatcherjakarta.servlet.ServletRequest.getRequestDispatcher
( String )
Returns a object that acts as a wrapper for the resource located at the given path. A RequestDispatcher object can be used to forward a request to the resource or to include the resource in a response. The resource can be dynamic or static. The pathname specified may be relative, although it cannot extend outside the current servlet context. If the path begins with a "/" it is interpreted as relative to the current context root. true
true
Servlet:JAVADOC:212RequestDispatcherjakarta.servlet.ServletRequest.getRequestDispatcher
( String )
This method returns null if the servlet container cannot return a RequestDispatcher. true
false
Servlet:JAVADOC:213Stringjakarta.servlet.ServletRequest.getRealPath
( String )

truetruetrue
Servlet:JAVADOC:214voidjakarta.servlet.ServletContextListener.contextInitialized
( ServletContextEvent )
Notification that the web application is ready to process requests. true
true
Servlet:JAVADOC:215voidjakarta.servlet.ServletContextListener.contextDestroyed
( ServletContextEvent )
Notification that the servlet context is about to be shut down. true
false
Servlet:JAVADOC:216voidjakarta.servlet.ServletContextAttributeListener.attributeAdded
( ServletContextAttributeEvent )
Notification that a new attribute was added to the servlet context. Called after the attribute is added. true
true
Servlet:JAVADOC:217voidjakarta.servlet.ServletContextAttributeListener.attributeRemoved
( ServletContextAttributeEvent )
Notification that an existing attribute has been remved from the servlet context. Called after the attribute is removed. true
true
Servlet:JAVADOC:218voidjakarta.servlet.ServletContextAttributeListener.attributeReplaced
( ServletContextAttributeEvent )
Notification that an attribute on the servlet context has been replaced. Called after the attribute is replaced. true
true
Servlet:JAVADOC:219ServletContextjakarta.servlet.ServletContext.getContext
( String )
Returns a ServletContext object that corresponds to a specified URL on the server.true
true
Servlet:JAVADOC:219.1ServletContextjakarta.servlet.ServletContext.getContext
( String )
This method allows servlets to gain access to the context for various parts of the server, and as needed obtain RequestDispatcher objects from the context. The given path must be begin with "/", is interpreted relative to the server's document root and is matched against the context roots of other web applications hosted on this container. true
true
Servlet:JAVADOC:219.2ServletContextjakarta.servlet.ServletContext.getContext
( String )
In a security conscious environment, the servlet container may return null for a given URL.true
true
Servlet:JAVADOC:220intjakarta.servlet.ServletContext.getMajorVersion
Returns the major version of the Java Servlet API that this servlet container supports. All implementations that comply with Version 3.0 must have this method return the integer 3. true
true
Servlet:JAVADOC:221intjakarta.servlet.ServletContext.getMinorVersion
Returns the minor version of the Servlet API that this servlet container supports. All implementations that comply with Version 3.0 must have this method return the integer 0. true
true
Servlet:JAVADOC:222Stringjakarta.servlet.ServletContext.getMimeType
( String )
Returns the MIME type of the specified file, or null if the MIME type is not known. The MIME type is determined by the configuration of the servlet container, and may be specified in a web application deployment descriptor. Common MIME types are "text/html" and "image/gif". true
true
Servlet:JAVADOC:223Stringjakarta.servlet.ServletContext.getMimeType
( String )
Returns null if the MIME type is not known. The MIME type is determined by the configuration of the servlet container, and may be specified in a web application deployment descriptor. Common MIME types are "text/html" and "image/gif". true
true
Servlet:JAVADOC:224Setjakarta.servlet.ServletContext.getResourcePaths
( String )
Returns a directory-like listing of all the paths to resources within the web application whose longest sub-path matches the supplied path argument. Paths indicating subdirectory paths end with a '/'. The returned paths are all relative to the root of the web application and have a leading '/'. For example, for a web application containing /welcome.html /catalog/index.html /catalog/products.html /catalog/offers/books.html /catalog/offers/music.html /customer/login.jsp /WEB-INF/web.xml /WEB-INF/classes/com.acme.OrderServlet.class, getResourcePaths("/") returns {"/welcome.html", "/catalog/", "/customer/", "/WEB-INF/"} getResourcePaths("/catalog/") returns {"/catalog/index.html", "/catalog/products.html", "/catalog/offers/"}. true
true
Servlet:JAVADOC:225URLjakarta.servlet.ServletContext.getResource
( String )
This method returns null if no resource is mapped to the pathname. true
true
Servlet:JAVADOC:226URLjakarta.servlet.ServletContext.getResource
( String )
Returns a URL to the resource that is mapped to the given path. The path must begin with a "/" and is interpreted as relative to the current context root. This method allows the servlet container to make a resource available to servlets from any source. Resources can be located on a local or remote file system, in a database, or in a .war file. The servlet container must implement the URL handlers and URLConnection objects that are necessary to access the resource. true
true
Servlet:JAVADOC:227URLjakarta.servlet.ServletContext.getResource
( String )
throws MalformedURLException
if the pathname is not given in the correct formtrue
true
Servlet:JAVADOC:228InputStreamjakarta.servlet.ServletContext.getResourceAsStream
( String )
Returns the resource located at the named path as an InputStream object. The data in the InputStream can be of any type or length. The path must be specified according to the rules given in getResource. Meta-information such as content length and content type that is available via getResource method is lost when using this method. The servlet container must implement the URL handlers and URLConnection objects necessary to access the resource. true
true
Servlet:JAVADOC:229InputStreamjakarta.servlet.ServletContext.getResourceAsStream
( String )
This method returns null if no resource exists at the specified path. true
true
Servlet:JAVADOC:230RequestDispatcherjakarta.servlet.ServletContext.getRequestDispatcher
( String )
Returns a RequestDispatcher object that acts as a wrapper for the resource located at the given path. A RequestDispatcher object can be used to forward a request to the resource or to include the resource in a response. The resource can be dynamic or static. The pathname must begin with a / and is interpreted as relative to the current context root. Use getContext to obtain a RequestDispatcher for resources in foreign contexts. true
true
Servlet:JAVADOC:231RequestDispatcherjakarta.servlet.ServletContext.getRequestDispatcher
( String )
This method returns null if the ServletContext cannot return a RequestDispatcher. true
false
Servlet:JAVADOC:232RequestDispatcherjakarta.servlet.ServletContext.getNamedDispatcher
( String )
Returns a RequestDispatcher object that acts as a wrapper for the named servlet. Servlets (and JSP pages also) may be given names via server administration or via a web application deployment descriptor. A servlet instance can determine its name using ServletConfig#getServletName. true
true
Servlet:JAVADOC:233RequestDispatcherjakarta.servlet.ServletContext.getNamedDispatcher
( String )
This method returns null if the ServletContext cannot return a RequestDispatcher for any reason. true
true
Servlet:JAVADOC:234Servletjakarta.servlet.ServletContext.getServlet
( String )

truetruetrue
Servlet:JAVADOC:235Servletjakarta.servlet.ServletContext.getServlet
( String )
throws ServletException

truetruetrue
Servlet:JAVADOC:236Enumerationjakarta.servlet.ServletContext.getServlets

truetruetrue
Servlet:JAVADOC:237Enumerationjakarta.servlet.ServletContext.getServletNames

truetruetrue
Servlet:JAVADOC:954Stringjakarta.servlet.ServletContext.getVirtualServerName
Returns the configuration name of the logical host on which the ServletContext is deployed. Servlet containers may support multiple logical hosts. This method must return the same name for all the servlet contexts deployed on a logical host, and the name returned by this method must be distinct, stable per logical host, and suitable for use in associating server configuration information with the logical host. The returned value is NOT expected or required to be equivalent to a network address or hostname of the logical host.true
true
Servlet:JAVADOC:238voidjakarta.servlet.ServletContext.log
( String )
Writes the specified message to a servlet log file, usually an event log. The name and type of the servlet log file is specific to the servlet container. true
false
Servlet:JAVADOC:239voidjakarta.servlet.ServletContext.log
( Exception ,
String )

truetruefalse
Servlet:JAVADOC:240voidjakarta.servlet.ServletContext.log
( String ,
Throwable )
Writes an explanatory message and a stack trace for a given Throwable exception to the servlet log file. The name and type of the servlet log file is specific to the servlet container, usually an event log. true
false
Servlet:JAVADOC:241Stringjakarta.servlet.ServletContext.getRealPath
( String )
Gets the real path corresponding to the given virtual path. For example, if path is equal to /index.html, this method will return the absolute file path on the server's filesystem to which a request of the form http://://index.html would be mapped, where corresponds to the context path of this ServletContext. The real path returned will be in a form appropriate to the computer and operating system on which the servlet container is running, including the proper path separators. Resources inside the /META-INF/resources directories of JAR files bundled in the application's /WEB-INF/lib directory must be considered only if the container has unpacked them from their containing JAR file, in which case the path to the unpacked location must be returned. This method returns null if the servlet container is unable to translate the given virtual path to a real path.true
true
Servlet:JAVADOC:242Stringjakarta.servlet.ServletContext.getServerInfo
Returns the name and version of the servlet container on which the servlet is running. The form of the returned string is servername/versionnumber. For example, the JavaServer Web Development Kit may return the string JavaServer Web Dev Kit/1.0. The servlet container may return other optional information after the primary string in parentheses, for example, JavaServer Web Dev Kit/1.0 (JDK 1.1.6; Windows NT 4.0 x86). true
true
Servlet:JAVADOC:243Stringjakarta.servlet.ServletContext.getInitParameter
( String )
Returns a String containing the value of the named context-wide initialization parameter. true
true
Servlet:JAVADOC:244Stringjakarta.servlet.ServletContext.getInitParameter
( String )
Returns null if the parameter does not exist. true
true
Servlet:JAVADOC:245Enumerationjakarta.servlet.ServletContext.getInitParameterNames
Returns the names of the context's initialization parameters as an Enumeration of String objects. true
true
Servlet:JAVADOC:246Enumerationjakarta.servlet.ServletContext.getInitParameterNames
Returns an empty Enumeration if the context has no initialization parameters. true
false
Servlet:JAVADOC:247Objectjakarta.servlet.ServletContext.getAttribute
( String )
Returns the servlet container attribute with the given name.true
true
Servlet:JAVADOC:248Objectjakarta.servlet.ServletContext.getAttribute
( String )
Returns null if there is no attribute by that name.true
true
Servlet:JAVADOC:249Enumerationjakarta.servlet.ServletContext.getAttributeNames
Returns an Enumeration containing the attribute names available within this ServletContext. Use the #getAttribute method with an attribute name to get the value of an attribute.true
true
Servlet:JAVADOC:250voidjakarta.servlet.ServletContext.setAttribute
( String ,
Object )
Binds an object to a given attribute name in this servlet context. true
true
Servlet:JAVADOC:251voidjakarta.servlet.ServletContext.setAttribute
( String ,
Object )
If the name specified is already used for an attribute, this method will replace the attribute with the new to the new attribute. true
true
Servlet:JAVADOC:252voidjakarta.servlet.ServletContext.setAttribute
( String ,
Object )
If listeners are configured on the ServletContext the container notifies them accordingly. true
true
Servlet:JAVADOC:253voidjakarta.servlet.ServletContext.setAttribute
( String ,
Object )
If a null value is passed, the effect is the same as calling removeAttribute(). true
true
Servlet:JAVADOC:254voidjakarta.servlet.ServletContext.removeAttribute
( String )
Removes the attribute with the given name from the servlet context. After removal, subsequent calls to to retrieve the attribute's value will return null. true
true
Servlet:JAVADOC:255voidjakarta.servlet.ServletContext.removeAttribute
( String )
If listeners are configured on the ServletContext the container notifies them accordingly. true
true
Servlet:JAVADOC:256Stringjakarta.servlet.ServletContext.getServletContextName
Returns the name of this web application correponding to this ServletContext as specified in the deployment descriptor for this web application by the display-name element. true
true
Servlet:JAVADOC:257Stringjakarta.servlet.ServletConfig.getServletName
Returns the name of this servlet instance. The name may be provided via server administration, assigned in the web application deployment descriptor, or for an unregistered (and thus unnamed) servlet instance it will be the servlet's class name. true
true
Servlet:JAVADOC:258ServletContextjakarta.servlet.ServletConfig.getServletContext
Returns a reference to the ServletContext in which the caller is executing. true
true
Servlet:JAVADOC:259Stringjakarta.servlet.ServletConfig.getInitParameter
( String )
Returns a String containing the value of the named initialization parameter. true
true
Servlet:JAVADOC:260Stringjakarta.servlet.ServletConfig.getInitParameter
( String )
Returns null if the parameter does not exist. true
true
Servlet:JAVADOC:261Enumerationjakarta.servlet.ServletConfig.getInitParameterNames
Returns the names of the servlet's initialization parameters as an Enumeration of String objects. true
true
Servlet:JAVADOC:262Enumerationjakarta.servlet.ServletConfig.getInitParameterNames
Returns an empty Enumeration if the servlet has no initialization parameters. true
false
Servlet:JAVADOC:263voidjakarta.servlet.Servlet.init
( ServletConfig )
Called by the servlet container to indicate to a servlet that the servlet is being placed into service. The servlet container calls the init method exactly once after instantiating the servlet. The init method must complete successfully before the servlet can receive any requests. true
true
Servlet:JAVADOC:265voidjakarta.servlet.Servlet.init
( ServletConfig )
throws ServletException
Called by the servlet container to indicate to a servlet that the servlet is being placed into service. The servlet container cannot place the servlet into service if the init method Throws a ServletException or does not return within a time period defined by the Web server. if an exception has occurred that interferes with the servlet's normal operationtrue
true
Servlet:JAVADOC:266ServletConfigjakarta.servlet.Servlet.getServletConfig
Returns a ServletConfig object, which contains initialization and startup parameters for this servlet. The ServletConfig object returned is the one passed to the init method. Implementations of this interface are responsible for storing the ServletConfig object so that this method can return it. The GenericServlet class, which implements this interface, already does this. true
true
Servlet:JAVADOC:267voidjakarta.servlet.Servlet.service
( ServletRequest ,
ServletResponse )
Called by the servlet container to allow the servlet to respond to a request. true
true
Servlet:JAVADOC:268voidjakarta.servlet.Servlet.service
( ServletRequest ,
ServletResponse )
throws ServletException
if an exception occurs that interferes with the servlet's normal operationtrue
true
Servlet:JAVADOC:269voidjakarta.servlet.Servlet.service
( ServletRequest ,
ServletResponse )
throws IOException
if an input or output exception occurstrue
false
Servlet:JAVADOC:270Stringjakarta.servlet.Servlet.getServletInfo
Returns information about the servlet, such as author, version, and copyright. The string that this method returns should be plain text and not markup of any kind (such as HTML, XML, etc.). true
true
Servlet:JAVADOC:271voidjakarta.servlet.Servlet.destroy
Called by the servlet container to indicate to a servlet that the servlet is being taken out of service. This method is only called once all threads within the servlet's service method have exited or after a timeout period has passed. After the servlet container calls this method, it will not call the service method again on this servlet. This method gives the servlet an opportunity to clean up any resources that are being held (for example, memory, file handles, threads) and make sure that any persistent state is synchronized with the servlet's current state in memory.true
false
Servlet:JAVADOC:272voidjakarta.servlet.RequestDispatcher.forward
( ServletRequest ,
ServletResponse )
Forwards a request from a servlet to another resource (servlet, JSP file, or HTML file) on the server. For a RequestDispatcher obtained via getRequestDispatcher(), the ServletRequest object has its path elements and parameters adjusted to match the path of the target resource. true
true
Servlet:JAVADOC:273voidjakarta.servlet.RequestDispatcher.forward
( ServletRequest ,
ServletResponse )
Forwards a request from a servlet to another resource (servlet, JSP file, or HTML file) on the server. Uncommitted output in the response buffer is automatically cleared before the forward. true
true
Servlet:JAVADOC:274voidjakarta.servlet.RequestDispatcher.forward
( ServletRequest ,
ServletResponse )
Forwards a request from a servlet to another resource (servlet, JSP file, or HTML file) on the server. The request and response parameters must be either the same objects as were passed to the calling servlet's service method or be subclasses of the ServletRequestWrapper or ServletResponseWrapper classes that wrap them. true
true
Servlet:JAVADOC:275voidjakarta.servlet.RequestDispatcher.forward
( ServletRequest ,
ServletResponse )
throws ServletException
if the target resource throws this exceptiontrue
true
Servlet:JAVADOC:276voidjakarta.servlet.RequestDispatcher.forward
( ServletRequest ,
ServletResponse )
throws IOException
if the target resource throws this exceptiontrue
true
Servlet:JAVADOC:277voidjakarta.servlet.RequestDispatcher.forward
( ServletRequest ,
ServletResponse )
throws IllegalStateException
if the response was already committedtrue
true
Servlet:JAVADOC:278voidjakarta.servlet.RequestDispatcher.include
( ServletRequest ,
ServletResponse )
Includes the content of a resource (servlet, JSP page, HTML file) in the response. In essence, this method enables programmatic server-side includes. The ServletResponse object has its path elements and parameters remain unchanged from the caller's. The included servlet cannot change the response status code or set headers; any attempt to make a change is ignored. The request and response parameters must be either the same objects as were passed to the calling servlet's service method or be subclasses of the ServletRequestWrapper or ServletResponseWrapper classes that wrap them. This method sets the dispatcher type of the given request to DispatcherType.INCLUDE. true
true
Servlet:JAVADOC:279voidjakarta.servlet.RequestDispatcher.include
( ServletRequest ,
ServletResponse )
throws ServletException
if the included resource throws this exceptiontrue
true
Servlet:JAVADOC:280voidjakarta.servlet.RequestDispatcher.include
( ServletRequest ,
ServletResponse )
throws IOException
if the included resource throws this exceptiontrue
true
Servlet:JAVADOC:281Stringjakarta.servlet.FilterConfig.getFilterName
Returns the filter-name of this filter as defined in the deployment descriptor. true
true
Servlet:JAVADOC:282ServletContextjakarta.servlet.FilterConfig.getServletContext
Returns a reference to the ServletContext in which the caller is executing. true
true
Servlet:JAVADOC:283Stringjakarta.servlet.FilterConfig.getInitParameter
( String )
Returns a String containing the value of the named initialization parameter. true
true
Servlet:JAVADOC:284Stringjakarta.servlet.FilterConfig.getInitParameter
( String )
Returns null if the parameter does not exist. true
true
Servlet:JAVADOC:285Enumerationjakarta.servlet.FilterConfig.getInitParameterNames
Returns the names of the servlet's initialization parameters as an Enumeration of String objects. true
true
Servlet:JAVADOC:286Enumerationjakarta.servlet.FilterConfig.getInitParameterNames
Returns an empty Enumeration if the servlet has no initialization parameters. true
true
Servlet:JAVADOC:287voidjakarta.servlet.FilterChain.doFilter
( ServletRequest ,
ServletResponse )
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. true
true
Servlet:JAVADOC:288voidjakarta.servlet.FilterChain.doFilter
( ServletRequest ,
ServletResponse )
throws IOException

true
false
Servlet:JAVADOC:289voidjakarta.servlet.FilterChain.doFilter
( ServletRequest ,
ServletResponse )
throws ServletException

true
false
Servlet:JAVADOC:290voidjakarta.servlet.Filter.init
( FilterConfig )
Called by the web container to indicate to a filter that it is being placed into service. The servlet container calls the init method exactly once after instantiating the filter. The init method must complete successfully before the filter is asked to do any filtering work. The web container cannot place the filter into service if the init method either 1.Throws a ServletException 2.Does not return within a time period defined by the web container true
true
Servlet:JAVADOC:292voidjakarta.servlet.Filter.init
( FilterConfig )
throws ServletException
Called by the web container to indicate to a filter that it is being placed into service.1 The web container cannot place the filter into service if the init method throws a ServletException. true
false
Servlet:JAVADOC:293voidjakarta.servlet.Filter.doFilter
( ServletRequest ,
ServletResponse ,
FilterChain )
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. The FilterChain passed in to this method allows the Filter to pass on the request and response to the next entity in the chain. A typical implementation of this method would follow the following pattern: Examine the request Optionally wrap the request object with a custom implementation to filter content or headers for input filtering Optionally wrap the response object with a custom implementation to filter content or headers for output filtering Either invoke the next entity in the chain using the FilterChain object (chain.doFilter()), or not pass on the request/response pair to the next entity in the filter chain to block the request processing Directly set headers on the response after invocation of the next entity in the filter chain. true
true
Servlet:JAVADOC:294voidjakarta.servlet.Filter.doFilter
( ServletRequest ,
ServletResponse ,
FilterChain )
throws IOException

true
false
Servlet:JAVADOC:295voidjakarta.servlet.Filter.doFilter
( ServletRequest ,
ServletResponse ,
FilterChain )
throws ServletException

true
false
Servlet:JAVADOC:296voidjakarta.servlet.Filter.destroy
Called by the web container to indicate to a filter that it is being taken out of service. This method is only called once all threads within the filter's doFilter method have exited or after a timeout period has passed. After the web container calls this method, it will not call the doFilter method again on this instance of the filter. This method gives the filter an opportunity to clean up any resources that are being held (for example, memory, file handles, threads) and make sure that any persistent state is synchronized with the filter's current state in memory. true
false
Servlet:JAVADOC:297HttpUtilsjakarta.servlet.http.HttpUtils.HttpUtils
Constructs an empty HttpUtils object. truetruetrue
Servlet:JAVADOC:298Hashtablejakarta.servlet.http.HttpUtils.parseQueryString
( String )
Parses a query string passed from the client to the server and builds a HashTable object with key-value pairs. The query string should be in the form of a string packaged by the GET or POST method, that is, it should have key-value pairs in the form key=value, with each pair separated from the next by a & character. A key can appear more than once in the query string with different values. However, the key appears only once in the hashtable, with its value being an array of strings containing the multiple values sent by the query string. The keys and values in the hashtable are stored in their decoded form, so any + characters are converted to spaces, and characters sent in hexadecimal notation (like %xx) are converted to ASCII characters. truetruetrue
Servlet:JAVADOC:299Hashtablejakarta.servlet.http.HttpUtils.parseQueryString
( String )
throws IllegalArgumentException
if the query string is invalidtruetruetrue
Servlet:JAVADOC:300Hashtablejakarta.servlet.http.HttpUtils.parsePostData
( int ,
ServletInputStream )
Parses data from an HTML form that the client sends to the server using the HTTP POST method and the application/x-www-form-urlencoded MIME type. The data sent by the POST method contains key-value pairs. A key can appear more than once in the POST data with different values. However, the key appears only once in the hashtable, with its value being an array of strings containing the multiple values sent by the POST method. The keys and values in the hashtable are stored in their decoded form, so any + characters are converted to spaces, and characters sent in hexadecimal notation (like %xx) are converted to ASCII characters. truetruetrue
Servlet:JAVADOC:301Hashtablejakarta.servlet.http.HttpUtils.parsePostData
( int ,
ServletInputStream )
throws IllegalArgumentException
if the data sent by the POST method is invalidtruetruetrue
Servlet:JAVADOC:302StringBufferjakarta.servlet.http.HttpUtils.getRequestURL
( HttpServletRequest )
Reconstructs the URL the client used to make the request, using information in the HttpServletRequest object. The returned URL contains a protocol, server name, port number, and server path, but it does not include query string parameters. truetruetrue
Servlet:JAVADOC:303HttpSessionEventjakarta.servlet.http.HttpSessionEvent.HttpSessionEvent
( HttpSession )
Construct a session event from the given source. true
true
Servlet:JAVADOC:304HttpSessionjakarta.servlet.http.HttpSessionEvent.getSession
Return the session that changed.true
true
Servlet:JAVADOC:305HttpSessionBindingEventjakarta.servlet.http.HttpSessionBindingEvent.HttpSessionBindingEvent
( HttpSession ,
String )
Constructs an event that notifies an object that it has been bound to or unbound from a session. To receive the event, the object must implement HttpSessionBindingListener . true
true
Servlet:JAVADOC:306HttpSessionBindingEventjakarta.servlet.http.HttpSessionBindingEvent.HttpSessionBindingEvent
( HttpSession ,
String ,
Object )
Constructs an event that notifies an object that it has been bound to or unbound from a session. To receive the event, the object must implement HttpSessionBindingListener. true
true
Servlet:JAVADOC:307HttpSessionjakarta.servlet.http.HttpSessionBindingEvent.getSession
Return the session that changed.true
true
Servlet:JAVADOC:308Stringjakarta.servlet.http.HttpSessionBindingEvent.getName
Returns the name with which the attribute is bound to or unbound from the session. true
true
Servlet:JAVADOC:309Objectjakarta.servlet.http.HttpSessionBindingEvent.getValue
Returns the value of the attribute that has been added, removed or replaced. If the attribute was added (or bound), this is the value of the attribute. true
true
Servlet:JAVADOC:310Objectjakarta.servlet.http.HttpSessionBindingEvent.getValue
Returns the value of the attribute that has been added, removed or replaced. If the attrubute was removed (or unbound), this is the value of the removed attribute. true
true
Servlet:JAVADOC:311Objectjakarta.servlet.http.HttpSessionBindingEvent.getValue
Returns the value of the attribute that has been added, removed or replaced. If the attribute was replaced, this is the old value of the attribute. true
true
Servlet:JAVADOC:313HttpServletResponseWrapperjakarta.servlet.http.HttpServletResponseWrapper.HttpServletResponseWrapper
( HttpServletResponse )
Constructs a response adaptor wrapping the given response. true
true
Servlet:JAVADOC:314voidjakarta.servlet.http.HttpServletResponseWrapper.addCookie
( Cookie )
The default behavior of this method is to call addCookie(Cookie cookie) on the wrapped response object. true
true
Servlet:JAVADOC:315booleanjakarta.servlet.http.HttpServletResponseWrapper.containsHeader
( String )
The default behavior of this method is to call containsHeader(String name) on the wrapped response object. true
true
Servlet:JAVADOC:316Stringjakarta.servlet.http.HttpServletResponseWrapper.encodeURL
( String )
The default behavior of this method is to call encodeURL(String url) on the wrapped response object. true
true
Servlet:JAVADOC:317Stringjakarta.servlet.http.HttpServletResponseWrapper.encodeRedirectURL
( String )
The default behavior of this method is to return encodeRedirectURL(String url) on the wrapped response object. true
true
Servlet:JAVADOC:318Stringjakarta.servlet.http.HttpServletResponseWrapper.encodeUrl
( String )
The default behavior of this method is to call encodeUrl(String url) on the wrapped response object. truetruetrue
Servlet:JAVADOC:319Stringjakarta.servlet.http.HttpServletResponseWrapper.encodeRedirectUrl
( String )
The default behavior of this method is to return encodeRedirectUrl(String url) on the wrapped response object. truetruetrue
Servlet:JAVADOC:320voidjakarta.servlet.http.HttpServletResponseWrapper.sendError
( int ,
String )
The default behavior of this method is to call sendError(int sc, String msg) on the wrapped response object. true
true
Servlet:JAVADOC:321voidjakarta.servlet.http.HttpServletResponseWrapper.sendError
( int ,
String )
throws IOException

true
false
Servlet:JAVADOC:322voidjakarta.servlet.http.HttpServletResponseWrapper.sendError
( int )
The default behavior of this method is to call sendError(int sc) on the wrapped response object. true
true
Servlet:JAVADOC:323voidjakarta.servlet.http.HttpServletResponseWrapper.sendError
( int )
throws IOException

true
false
Servlet:JAVADOC:324voidjakarta.servlet.http.HttpServletResponseWrapper.sendRedirect
( String )
The default behavior of this method is to return sendRedirect(String location) on the wrapped response object. true
true
Servlet:JAVADOC:325voidjakarta.servlet.http.HttpServletResponseWrapper.sendRedirect
( String )
throws IOException

true
false
Servlet:JAVADOC:326voidjakarta.servlet.http.HttpServletResponseWrapper.setDateHeader
( String ,
long )
The default behavior of this method is to call setDateHeader(String name, long date) on the wrapped response object. true
true
Servlet:JAVADOC:327voidjakarta.servlet.http.HttpServletResponseWrapper.addDateHeader
( String ,
long )
The default behavior of this method is to call addDateHeader(String name, long date) on the wrapped response object. true
true
Servlet:JAVADOC:328voidjakarta.servlet.http.HttpServletResponseWrapper.setHeader
( String ,
String )
The default behavior of this method is to return setHeader(String name, String value) on the wrapped response object. true
true
Servlet:JAVADOC:329voidjakarta.servlet.http.HttpServletResponseWrapper.addHeader
( String ,
String )
The default behavior of this method is to return addHeader(String name, String value) on the wrapped response object. true
true
Servlet:JAVADOC:330voidjakarta.servlet.http.HttpServletResponseWrapper.setIntHeader
( String ,
int )
The default behavior of this method is to call setIntHeader(String name, int value) on the wrapped response object. true
true
Servlet:JAVADOC:331voidjakarta.servlet.http.HttpServletResponseWrapper.addIntHeader
( String ,
int )
The default behavior of this method is to call addIntHeader(String name, int value) on the wrapped response object. true
true
Servlet:JAVADOC:332voidjakarta.servlet.http.HttpServletResponseWrapper.setStatus
( int )
The default behavior of this method is to call setStatus(int sc) on the wrapped response object. true
true
Servlet:JAVADOC:333voidjakarta.servlet.http.HttpServletResponseWrapper.setStatus
( int ,
String )
The default behavior of this method is to call setStatus(int sc, String sm) on the wrapped response object. truetruetrue
Servlet:JAVADOC:334ServletResponsejakarta.servlet.http.HttpServletResponseWrapper.{jakarta.servlet.ServletResponseWrapper}.getResponse
Return the wrapped ServletResponse object.true
true
Servlet:JAVADOC:335voidjakarta.servlet.http.HttpServletResponseWrapper.{jakarta.servlet.ServletResponseWrapper}.setResponse
( ServletResponse )
Sets the response being wrapped.true
true
Servlet:JAVADOC:336voidjakarta.servlet.http.HttpServletResponseWrapper.setResponse
( ServletResponse )
throws IllegalArgumentException
if the response is null.true
true
Servlet:JAVADOC:337voidjakarta.servlet.http.HttpServletResponseWrapper.{jakarta.servlet.ServletResponseWrapper}.setCharacterEncoding
( String )
The default behavior of this method is to call setCharacterEncoding(String charset) on the wrapped response object.true
true
Servlet:JAVADOC:338Stringjakarta.servlet.http.HttpServletResponseWrapper.{jakarta.servlet.ServletResponseWrapper}.getCharacterEncoding
The default behavior of this method is to return getCharacterEncoding() on the wrapped response object.true
true
Servlet:JAVADOC:339ServletOutputStreamjakarta.servlet.http.HttpServletResponseWrapper.{jakarta.servlet.ServletResponseWrapper}.getOutputStream
The default behavior of this method is to return getOutputStream() on the wrapped response object.true
true
Servlet:JAVADOC:340ServletOutputStreamjakarta.servlet.http.HttpServletResponseWrapper.{jakarta.servlet.ServletResponseWrapper}.getOutputStream

throws IOException
if an input or output exception occurred.true
false
Servlet:JAVADOC:341PrintWriterjakarta.servlet.http.HttpServletResponseWrapper.{jakarta.servlet.ServletResponseWrapper}.getWriter
The default behavior of this method is to return getWriter() on the wrapped response object.true
true
Servlet:JAVADOC:342PrintWriterjakarta.servlet.http.HttpServletResponseWrapper.getWriter

throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:343voidjakarta.servlet.http.HttpServletResponseWrapper.{jakarta.servlet.ServletResponseWrapper}.setContentLength
( int )
The default behavior of this method is to call setContentLength(int len) on the wrapped response object.true
true
Servlet:JAVADOC:344voidjakarta.servlet.http.HttpServletResponseWrapper.{jakarta.servlet.ServletResponseWrapper}.setContentType
( String )
The default behavior of this method is to call setContentType(String type) on the wrapped response object.true
true
Servlet:JAVADOC:345Stringjakarta.servlet.http.HttpServletResponseWrapper.{jakarta.servlet.ServletResponseWrapper}.getContentType
The default behavior of this method is to return getContentType() on the wrapped response object.true
true
Servlet:JAVADOC:346voidjakarta.servlet.http.HttpServletResponseWrapper.{jakarta.servlet.ServletResponseWrapper}.setBufferSize
( int )
The default behavior of this method is to call setBufferSize(int size) on the wrapped response object.true
true
Servlet:JAVADOC:347intjakarta.servlet.http.HttpServletResponseWrapper.{jakarta.servlet.ServletResponseWrapper}.getBufferSize
The default behavior of this method is to return getBufferSize() on the wrapped response object.true
true
Servlet:JAVADOC:348voidjakarta.servlet.http.HttpServletResponseWrapper.{jakarta.servlet.ServletResponseWrapper}.flushBuffer
The default behavior of this method is to call flushBuffer() on the wrapped response object.true
true
Servlet:JAVADOC:349voidjakarta.servlet.http.HttpServletResponseWrapper.flushBuffer

throws IOException

true
false
Servlet:JAVADOC:350booleanjakarta.servlet.http.HttpServletResponseWrapper.{jakarta.servlet.ServletResponseWrapper}.isCommitted
The default behavior of this method is to return isCommitted() on the wrapped response object.true
true
Servlet:JAVADOC:351voidjakarta.servlet.http.HttpServletResponseWrapper.{jakarta.servlet.ServletResponseWrapper}.reset
The default behavior of this method is to call reset() on the wrapped response object.true
true
Servlet:JAVADOC:352voidjakarta.servlet.http.HttpServletResponseWrapper.{jakarta.servlet.ServletResponseWrapper}.resetBuffer
The default behavior of this method is to call resetBuffer() on the wrapped response object.true
true
Servlet:JAVADOC:353voidjakarta.servlet.http.HttpServletResponseWrapper.{jakarta.servlet.ServletResponseWrapper}.setLocale
( Locale )
The default behavior of this method is to call setLocale(Locale loc) on the wrapped response object.true
true
Servlet:JAVADOC:354Localejakarta.servlet.http.HttpServletResponseWrapper.{jakarta.servlet.ServletResponseWrapper}.getLocale
The default behavior of this method is to return getLocale() on the wrapped response object.true
true
Servlet:JAVADOC:355HttpServletRequestWrapperjakarta.servlet.http.HttpServletRequestWrapper.HttpServletRequestWrapper
( HttpServletRequest )
Constructs a request object wrapping the given request. true
true
Servlet:JAVADOC:356Stringjakarta.servlet.http.HttpServletRequestWrapper.getAuthType
The default behavior of this method is to return getAuthType() on the wrapped request object. true
true
Servlet:JAVADOC:357Cookie[]jakarta.servlet.http.HttpServletRequestWrapper.getCookies
The default behavior of this method is to return getCookies() on the wrapped request object. true
true
Servlet:JAVADOC:358longjakarta.servlet.http.HttpServletRequestWrapper.getDateHeader
( String )
The default behavior of this method is to return getDateHeader(String name) on the wrapped request object. true
true
Servlet:JAVADOC:359Stringjakarta.servlet.http.HttpServletRequestWrapper.getHeader
( String )
The default behavior of this method is to return getHeader(String name) on the wrapped request object. true
true
Servlet:JAVADOC:360Enumerationjakarta.servlet.http.HttpServletRequestWrapper.getHeaders
( String )
The default behavior of this method is to return getHeaders(String name) on the wrapped request object. true
true
Servlet:JAVADOC:361Enumerationjakarta.servlet.http.HttpServletRequestWrapper.getHeaderNames
The default behavior of this method is to return getHeaderNames() on the wrapped request object. true
true
Servlet:JAVADOC:362intjakarta.servlet.http.HttpServletRequestWrapper.getIntHeader
( String )
The default behavior of this method is to return getIntHeader(String name) on the wrapped request object. true
true
Servlet:JAVADOC:363Stringjakarta.servlet.http.HttpServletRequestWrapper.getMethod
The default behavior of this method is to return getMethod() on the wrapped request object. true
true
Servlet:JAVADOC:364Stringjakarta.servlet.http.HttpServletRequestWrapper.getPathInfo
The default behavior of this method is to return getPathInfo() on the wrapped request object. true
true
Servlet:JAVADOC:365Stringjakarta.servlet.http.HttpServletRequestWrapper.getPathTranslated
The default behavior of this method is to return getPathTranslated() on the wrapped request object. true
true
Servlet:JAVADOC:366Stringjakarta.servlet.http.HttpServletRequestWrapper.getContextPath
The default behavior of this method is to return getContextPath() on the wrapped request object. true
true
Servlet:JAVADOC:367Stringjakarta.servlet.http.HttpServletRequestWrapper.getQueryString
The default behavior of this method is to return getQueryString() on the wrapped request object. true
true
Servlet:JAVADOC:368Stringjakarta.servlet.http.HttpServletRequestWrapper.getRemoteUser
The default behavior of this method is to return getRemoteUser() on the wrapped request object. true
true
Servlet:JAVADOC:369booleanjakarta.servlet.http.HttpServletRequestWrapper.isUserInRole
( String )
The default behavior of this method is to return isUserInRole(String role) on the wrapped request object. true
true
Servlet:JAVADOC:370Principaljakarta.servlet.http.HttpServletRequestWrapper.getUserPrincipal
The default behavior of this method is to return getUserPrincipal() on the wrapped request object. true
true
Servlet:JAVADOC:371Stringjakarta.servlet.http.HttpServletRequestWrapper.getRequestedSessionId
The default behavior of this method is to return getRequestedSessionId() on the wrapped request object. true
true
Servlet:JAVADOC:372Stringjakarta.servlet.http.HttpServletRequestWrapper.getRequestURI
The default behavior of this method is to return getRequestURI() on the wrapped request object. true
true
Servlet:JAVADOC:373StringBufferjakarta.servlet.http.HttpServletRequestWrapper.getRequestURL
The default behavior of this method is to return getRequestURL() on the wrapped request object. true
true
Servlet:JAVADOC:374Stringjakarta.servlet.http.HttpServletRequestWrapper.getServletPath
The default behavior of this method is to return getServletPath() on the wrapped request object. true
true
Servlet:JAVADOC:375HttpSessionjakarta.servlet.http.HttpServletRequestWrapper.getSession
( boolean )
The default behavior of this method is to return getSession(boolean create) on the wrapped request object.true
true
Servlet:JAVADOC:376HttpSessionjakarta.servlet.http.HttpServletRequestWrapper.getSession
The default behavior of this method is to return getSession() on the wrapped request object.true
true
Servlet:JAVADOC:377booleanjakarta.servlet.http.HttpServletRequestWrapper.isRequestedSessionIdValid
The default behavior of this method is to return isRequestedSessionIdValid() on the wrapped request object. true
true
Servlet:JAVADOC:378booleanjakarta.servlet.http.HttpServletRequestWrapper.isRequestedSessionIdFromCookie
The default behavior of this method is to return isRequestedSessionIdFromCookie() on the wrapped request object. true
true
Servlet:JAVADOC:379booleanjakarta.servlet.http.HttpServletRequestWrapper.isRequestedSessionIdFromURL
The default behavior of this method is to return isRequestedSessionIdFromURL() on the wrapped request object. true
true
Servlet:JAVADOC:380booleanjakarta.servlet.http.HttpServletRequestWrapper.isRequestedSessionIdFromUrl
The default behavior of this method is to return isRequestedSessionIdFromUrl() on the wrapped request object. truetruetrue
Servlet:JAVADOC:381ServletRequestjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getRequest
Return the wrapped request object.true
true
Servlet:JAVADOC:382voidjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.setRequest
( ServletRequest )
Sets the request object being wrapped.true
true
Servlet:JAVADOC:383voidjakarta.servlet.http.HttpServletRequestWrapper.setRequest
( ServletRequest )
throws IllegalArgumentException
if the request is null.true
true
Servlet:JAVADOC:384Objectjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getAttribute
( String )
The default behavior of this method is to call getAttribute(String name) on the wrapped request object.true
true
Servlet:JAVADOC:385Enumerationjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getAttributeNames
The default behavior of this method is to return getAttributeNames() on the wrapped request object.true
true
Servlet:JAVADOC:386Stringjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getCharacterEncoding
The default behavior of this method is to return getCharacterEncoding() on the wrapped request object.true
true
Servlet:JAVADOC:387voidjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.setCharacterEncoding
( String )
Overrides the name of the character encoding used in the body of the wrapped request. This method must be called prior to reading request parameters or reading input using getReader(). Otherwise, it has no effect. true
true
Servlet:JAVADOC:388voidjakarta.servlet.http.HttpServletRequestWrapper.setCharacterEncoding
( String )
throws UnsupportedEncodingException
if this ServletRequest is still in a state where a character encoding may be set, but the specified encoding is invalidtrue
true
Servlet:JAVADOC:389intjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getContentLength
The default behavior of this method is to return getContentLength() on the wrapped request object.true
true
Servlet:JAVADOC:390Stringjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getContentType
The default behavior of this method is to return getContentType() on the wrapped request object.true
true
Servlet:JAVADOC:391ServletInputStreamjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getInputStream
The default behavior of this method is to return getInputStream() on the wrapped request object.true
true
Servlet:JAVADOC:392ServletInputStreamjakarta.servlet.http.HttpServletRequestWrapper.getInputStream

throws IOException

true
false
Servlet:JAVADOC:393Stringjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getParameter
( String )
The default behavior of this method is to return getParameter(String name) on the wrapped request object.true
true
Servlet:JAVADOC:394Mapjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getParameterMap
The default behavior of this method is to return getParameterMap() on the wrapped request object.true
true
Servlet:JAVADOC:395Enumerationjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getParameterNames
The default behavior of this method is to return getParameterNames() on the wrapped request object.true
true
Servlet:JAVADOC:396String[]jakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getParameterValues
( String )
The default behavior of this method is to return getParameterValues(String name) on the wrapped request object.true
true
Servlet:JAVADOC:397Stringjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getProtocol
The default behavior of this method is to return getProtocol() on the wrapped request object.true
true
Servlet:JAVADOC:398Stringjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getScheme
The default behavior of this method is to return getScheme() on the wrapped request object.true
true
Servlet:JAVADOC:399Stringjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getServerName
The default behavior of this method is to return getServerName() on the wrapped request object.true
true
Servlet:JAVADOC:400intjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getServerPort
The default behavior of this method is to return getServerPort() on the wrapped request object.true
true
Servlet:JAVADOC:401BufferedReaderjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getReader
The default behavior of this method is to return getReader() on the wrapped request object.true
true
Servlet:JAVADOC:402BufferedReaderjakarta.servlet.http.HttpServletRequestWrapper.getReader

throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:403Stringjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getRemoteAddr
The default behavior of this method is to return getRemoteAddr() on the wrapped request object.true
true
Servlet:JAVADOC:404Stringjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getRemoteHost
The default behavior of this method is to return getRemoteHost() on the wrapped request object.true
true
Servlet:JAVADOC:405voidjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.setAttribute
( String ,
Object )
The default behavior of this method is to return setAttribute(String name, Object o) on the wrapped request object.true
true
Servlet:JAVADOC:406voidjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.removeAttribute
( String )
The default behavior of this method is to call removeAttribute(String name) on the wrapped request object.true
true
Servlet:JAVADOC:407Localejakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getLocale
The default behavior of this method is to return getLocale() on the wrapped request object.true
true
Servlet:JAVADOC:408Enumerationjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getLocales
The default behavior of this method is to return getLocales() on the wrapped request object.true
true
Servlet:JAVADOC:409booleanjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.isSecure
The default behavior of this method is to return isSecure() on the wrapped request object.true
true
Servlet:JAVADOC:410RequestDispatcherjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getRequestDispatcher
( String )
The default behavior of this method is to return getRequestDispatcher(String path) on the wrapped request object.true
true
Servlet:JAVADOC:411Stringjakarta.servlet.http.HttpServletRequestWrapper.{jakarta.servlet.ServletRequestWrapper}.getRealPath
( String )
The default behavior of this method is to return getRealPath(String path) on the wrapped request object.truetruetrue
Servlet:JAVADOC:412HttpServletjakarta.servlet.http.HttpServlet.HttpServlet
Does nothing, because this is an abstract class. true
false
Servlet:JAVADOC:413voidjakarta.servlet.http.HttpServlet.service
( ServletRequest ,
ServletResponse )
Dispatches client requests to the protected service method. There's no need to override this method. true
false
Servlet:JAVADOC:414voidjakarta.servlet.http.HttpServlet.service
( ServletRequest ,
ServletResponse )
throws ServletException
if the request for the TRACE cannot be handledtrue
false
Servlet:JAVADOC:415voidjakarta.servlet.http.HttpServlet.service
( ServletRequest ,
ServletResponse )
throws IOException
if an input or output error occurs while the servlet is handling the TRACE requesttrue
false
Servlet:JAVADOC:416voidjakarta.servlet.http.HttpServlet.{jakarta.servlet.GenericServlet}.destroy
Called by the servlet container to indicate to a servlet that the servlet is being taken out of service.true
false
Servlet:JAVADOC:417Stringjakarta.servlet.http.HttpServlet.{jakarta.servlet.GenericServlet}.getInitParameter
( String )
Returns a String containing the value of the named initialization parameter.true
true
Servlet:JAVADOC:418Stringjakarta.servlet.http.HttpServlet.{jakarta.servlet.GenericServlet}.getInitParameter
( String )
Returns null if the parameter does not exist.true
true
Servlet:JAVADOC:419Enumerationjakarta.servlet.http.HttpServlet.{jakarta.servlet.GenericServlet}.getInitParameterNames
Returns the names of the servlet's initialization parameters as an Enumeration of String objects.true
true
Servlet:JAVADOC:420Enumerationjakarta.servlet.http.HttpServlet.{jakarta.servlet.GenericServlet}.getInitParameterNames
Returns an empty Enumeration if the servlet has no initialization parameters.true
false
Servlet:JAVADOC:421ServletConfigjakarta.servlet.http.HttpServlet.{jakarta.servlet.GenericServlet}.getServletConfig
Returns this servlet's ServletConfig object.true
true
Servlet:JAVADOC:422ServletContextjakarta.servlet.http.HttpServlet.{jakarta.servlet.GenericServlet}.getServletContext
Returns a reference to the ServletContext in which this servlet is running.true
true
Servlet:JAVADOC:423Stringjakarta.servlet.http.HttpServlet.{jakarta.servlet.GenericServlet}.getServletInfo
Returns information about the servlet, such as author, version, and copyright. By default, this method returns an empty string.true
true
Servlet:JAVADOC:424voidjakarta.servlet.http.HttpServlet.{jakarta.servlet.GenericServlet}.init
( ServletConfig )
Called by the servlet container to indicate to a servlet that the servlet is being placed into service.true
true
Servlet:JAVADOC:425voidjakarta.servlet.http.HttpServlet.init
( ServletConfig )
throws ServletException
if an exception occurs that interrupts the servlet's normal operationtrue
false
Servlet:JAVADOC:426voidjakarta.servlet.http.HttpServlet.{jakarta.servlet.GenericServlet}.init
A convenience method which can be overridden so that there's no need to call super.init(config). Instead of overriding init(ServletConfig(, simply override this method and it will be called by GenericServlet.init(ServletConfig config). The ServletConfig object can still be retrieved via getServletConfig.true
true
Servlet:JAVADOC:427voidjakarta.servlet.http.HttpServlet.init

throws ServletException
if an exception occurs that interrupts the servlet's normal operationtrue
false
Servlet:JAVADOC:428voidjakarta.servlet.http.HttpServlet.{jakarta.servlet.GenericServlet}.log
( String )
Writes the specified message to a servlet log file, prepended by the servlet's name. See ServletContext.log(String).true
false
Servlet:JAVADOC:429voidjakarta.servlet.http.HttpServlet.{jakarta.servlet.GenericServlet}.log
( String ,
Throwable )
Writes an explanatory message and a stack trace for a given Throwable exception to the servlet log file, prepended by the servlet's name. See ServletContext.log(String, Throwable). true
false
Servlet:JAVADOC:430voidjakarta.servlet.http.HttpServlet.{jakarta.servlet.GenericServlet}.service
( ServletRequest ,
ServletResponse )
Called by the servlet container to allow the servlet to respond to a request.true
true
Servlet:JAVADOC:431voidjakarta.servlet.http.HttpServlet.service
( ServletRequest ,
ServletResponse )
throws ServletException
if an exception occurs that interferes with the servlet's normal operation occurredtrue
false
Servlet:JAVADOC:432voidjakarta.servlet.http.HttpServlet.service
( ServletRequest ,
ServletResponse )
throws IOException
if an input or output exception occurstrue
false
Servlet:JAVADOC:433Stringjakarta.servlet.http.HttpServlet.{jakarta.servlet.GenericServlet}.getServletName
Returns the name of this servlet instance.true
true
Servlet:JAVADOC:434Cookiejakarta.servlet.http.Cookie.Cookie
( String ,
String )
Constructs a cookie with a specified name and value. The name must conform to RFC 2109. That means it can contain only ASCII alphanumeric characters and cannot contain commas, semicolons, or white space or begin with a $ character. The cookie's name cannot be changed after creation. The value can be anything the server chooses to send. Its value is probably of interest only to the server. The cookie's value can be changed after creation with the setValue method. By default, cookies are created according to the Netscape cookie specification. The version can be changed with the setVersion method. true
true
Servlet:JAVADOC:435voidjakarta.servlet.http.Cookie.setComment
( String )
Specifies a comment that describes a cookie's purpose. The comment is useful if the browser presents the cookie to the user. Comments are not supported by Netscape Version 0 cookies. true
true
Servlet:JAVADOC:436Stringjakarta.servlet.http.Cookie.getComment
Returns the comment describing the purpose of this cookie. true
true
Servlet:JAVADOC:437Stringjakarta.servlet.http.Cookie.getComment
Returns null if the cookie has no comment. true
true
Servlet:JAVADOC:438voidjakarta.servlet.http.Cookie.setDomain
( String )
Specifies the domain within which this cookie should be presented. The form of the domain name is specified by RFC 2109. A domain name begins with a dot (.foo.com) and means that the cookie is visible to servers in a specified Domain Name System (DNS) zone (for example, www.foo.com, but not a.b.foo.com). By default, cookies are only returned to the server that sent them. true
true
Servlet:JAVADOC:439Stringjakarta.servlet.http.Cookie.getDomain
Returns the domain name set for this cookie. The form of the domain name is set by RFC 2109. true
true
Servlet:JAVADOC:440voidjakarta.servlet.http.Cookie.setMaxAge
( int )
Sets the maximum age of the cookie in seconds. A positive value indicates that the cookie will expire after that many seconds have passed. Note that the value is the maximum age when the cookie will expire, not the cookie's current age. true
true
Servlet:JAVADOC:441voidjakarta.servlet.http.Cookie.setMaxAge
( int )
Sets the maximum age of the cookie in seconds. A negative value means that the cookie is not stored persistently and will be deleted when the Web browser exits. true
true
Servlet:JAVADOC:442voidjakarta.servlet.http.Cookie.setMaxAge
( int )
Sets the maximum age of the cookie in seconds. A zero value causes the cookie to be deleted. true
true
Servlet:JAVADOC:443intjakarta.servlet.http.Cookie.getMaxAge
Returns the maximum age of the cookie, specified in seconds, By default, -1 indicating the cookie will persist until browser shutdown. true
true
Servlet:JAVADOC:444voidjakarta.servlet.http.Cookie.setPath
( String )
Specifies a path for the cookie to which the client should return the cookie. The cookie is visible to all the pages in the directory you specify, and all the pages in that directory's subdirectories. A cookie's path must include the servlet that set the cookie, for example, /catalog, which makes the cookie visible to all directories on the server under /catalog. Consult RFC 2109 (available on the Internet) for more information on setting path names for cookies. true
true
Servlet:JAVADOC:445Stringjakarta.servlet.http.Cookie.getPath
Returns the path on the server to which the browser returns this cookie. The cookie is visible to all subpaths on the server. true
true
Servlet:JAVADOC:446voidjakarta.servlet.http.Cookie.setSecure
( boolean )
Indicates to the browser whether the cookie should only be sent using a secure protocol, such as HTTPS or SSL. The default value is false. true
true
Servlet:JAVADOC:447booleanjakarta.servlet.http.Cookie.getSecure
Returns true if the browser is sending cookies only over a secure protocol, or false if the browser can send cookies using any protocol. true
true
Servlet:JAVADOC:448Stringjakarta.servlet.http.Cookie.getName
Returns the name of the cookie. The name cannot be changed after creation. true
true
Servlet:JAVADOC:449voidjakarta.servlet.http.Cookie.setValue
( String )
Assigns a new value to a cookie after the cookie is created. If you use a binary value, you may want to use BASE64 encoding. With Version 0 cookies, values should not contain white space, brackets, parentheses, equals signs, commas, double quotes, slashes, question marks, at signs, colons, and semicolons. Empty values may not behave the same way on all browsers. true
true
Servlet:JAVADOC:450Stringjakarta.servlet.http.Cookie.getValue
Returns the value of the cookie. true
true
Servlet:JAVADOC:451intjakarta.servlet.http.Cookie.getVersion
Returns the version of the protocol this cookie complies with. Version 1 complies with RFC 2109, and version 0 complies with the original cookie specification drafted by Netscape. Cookies provided by a browser use and identify the browser's cookie version. true
true
Servlet:JAVADOC:452voidjakarta.servlet.http.Cookie.setVersion
( int )
Sets the version of the cookie protocol this cookie complies with. Version 0 complies with the original Netscape cookie specification. Version 1 complies with RFC 2109. Since RFC 2109 is still somewhat new, consider version 1 as experimental; do not use it yet on production sites. true
true
Servlet:JAVADOC:453Objectjakarta.servlet.http.Cookie.clone
Overrides the standard java.lang.Object.clone method to return a copy of this cookie. true
true
Servlet:JAVADOC:454voidjakarta.servlet.http.HttpSessionListener.sessionCreated
( HttpSessionEvent )
Notification that a session was created. true
true
Servlet:JAVADOC:455voidjakarta.servlet.http.HttpSessionListener.sessionDestroyed
( HttpSessionEvent )
Notification that a session was invalidated. true
true
Servlet:JAVADOC:456HttpSessionjakarta.servlet.http.HttpSessionContext.getSession
( String )

truetruetrue
Servlet:JAVADOC:457Enumerationjakarta.servlet.http.HttpSessionContext.getIds

truetruetrue
Servlet:JAVADOC:458voidjakarta.servlet.http.HttpSessionBindingListener.valueBound
( HttpSessionBindingEvent )
Notifies the object that it is being bound to a session and identifies the session. true
true
Servlet:JAVADOC:459voidjakarta.servlet.http.HttpSessionBindingListener.valueUnbound
( HttpSessionBindingEvent )
Notifies the object that it is being unbound from a session and identifies the session. true
true
Servlet:JAVADOC:460voidjakarta.servlet.http.HttpSessionAttributeListener.attributeAdded
( HttpSessionBindingEvent )
Notification that an attribute has been added to a session. Called after the attribute is added. true
true
Servlet:JAVADOC:461voidjakarta.servlet.http.HttpSessionAttributeListener.attributeRemoved
( HttpSessionBindingEvent )
Notification that an attribute has been removed from a session. Called after the attribute is removed. true
true
Servlet:JAVADOC:462voidjakarta.servlet.http.HttpSessionAttributeListener.attributeReplaced
( HttpSessionBindingEvent )
Notification that an attribute has been replaced in a session. Called after the attribute is replaced. true
true
Servlet:JAVADOC:463voidjakarta.servlet.http.HttpSessionActivationListener.sessionWillPassivate
( HttpSessionEvent )
Notification that the session is about to be passivated. true
false
Servlet:JAVADOC:464voidjakarta.servlet.http.HttpSessionActivationListener.sessionDidActivate
( HttpSessionEvent )
Notification that the session has just been activated. true
false
Servlet:JAVADOC:465longjakarta.servlet.http.HttpSession.getCreationTime
Returns the time when this session was created, measured in milliseconds since midnight January 1, 1970 GMT. true
true
Servlet:JAVADOC:466longjakarta.servlet.http.HttpSession.getCreationTime

throws IllegalStateException
if this method is called on an invalidated sessiontrue
true
Servlet:JAVADOC:467Stringjakarta.servlet.http.HttpSession.getId
Returns a string containing the unique identifier assigned to this session. The identifier is assigned by the servlet container and is implementation dependent. true
true
Servlet:JAVADOC:469longjakarta.servlet.http.HttpSession.getLastAccessedTime
Returns the last time the client sent a request associated with this session, as the number of milliseconds since midnight January 1, 1970 GMT, and marked by the time the container recieved the request. true
true
Servlet:JAVADOC:470longjakarta.servlet.http.HttpSession.getLastAccessedTime
Actions such as getting or setting a value associated with the session, do not affect the access time. true
true
Servlet:JAVADOC:471longjakarta.servlet.http.HttpSession.getLastAccessedTime

throws IllegalStateException
if this method is called on an invalidated sessiontrue
true
Servlet:JAVADOC:472ServletContextjakarta.servlet.http.HttpSession.getServletContext
Returns the ServletContext to which this session belongs. true
true
Servlet:JAVADOC:473voidjakarta.servlet.http.HttpSession.setMaxInactiveInterval
( int )
Specifies the time, in seconds, between client requests before the servlet container will invalidate this session. A negative time indicates the session should never timeout. true
true
Servlet:JAVADOC:474intjakarta.servlet.http.HttpSession.getMaxInactiveInterval
Returns the maximum time interval, in seconds, that the servlet container will keep this session open between client accesses. After this interval, the servlet container will invalidate the session. The maximum time interval can be set with the setMaxInactiveInterval method. A negative time indicates the session should never timeout. true
true
Servlet:JAVADOC:475HttpSessionContextjakarta.servlet.http.HttpSession.getSessionContext

truetruetrue
Servlet:JAVADOC:476Objectjakarta.servlet.http.HttpSession.getAttribute
( String )
Returns the object bound with the specified name in this session, or null if no object is bound under the name. true
true
Servlet:JAVADOC:477Objectjakarta.servlet.http.HttpSession.getAttribute
( String )
throws IllegalStateException
if this method is called on an invalidated sessiontrue
true
Servlet:JAVADOC:478Objectjakarta.servlet.http.HttpSession.getValue
( String )

truetruetrue
Servlet:JAVADOC:479Objectjakarta.servlet.http.HttpSession.getValue
( String )
throws IllegalStateException
if this method is called on an invalidated sessiontruetruetrue
Servlet:JAVADOC:480Enumerationjakarta.servlet.http.HttpSession.getAttributeNames
Returns an Enumeration of String objects containing the names of all the objects bound to this session. true
true
Servlet:JAVADOC:481Enumerationjakarta.servlet.http.HttpSession.getAttributeNames

throws IllegalStateException
if this method is called on an invalidated sessiontrue
true
Servlet:JAVADOC:482String[]jakarta.servlet.http.HttpSession.getValueNames

truetruetrue
Servlet:JAVADOC:483String[]jakarta.servlet.http.HttpSession.getValueNames

throws IllegalStateException
if this method is called on an invalidated sessiontruetruetrue
Servlet:JAVADOC:484voidjakarta.servlet.http.HttpSession.setAttribute
( String ,
Object )
Binds an object to this session, using the name specified. If an object of the same name is already bound to the session, the object is replaced. true
true
Servlet:JAVADOC:485voidjakarta.servlet.http.HttpSession.setAttribute
( String ,
Object )
Binds an object to this session, using the name specified. After this method executes, and if the new object implements HttpSessionBindingListener, the container calls HttpSessionBindingListener.valueBound. The container then notifies any HttpSessionAttributeListeners in the web application. true
true
Servlet:JAVADOC:486voidjakarta.servlet.http.HttpSession.setAttribute
( String ,
Object )
Binds an object to this session, using the name specified. If an object was already bound to this session of this name that implements HttpSessionBindingListener, its HttpSessionBindingListener.valueUnbound method is called. true
true
Servlet:JAVADOC:487voidjakarta.servlet.http.HttpSession.setAttribute
( String ,
Object )
Binds an object to this session, using the name specified. If the value passed in is null, this has the same effect as calling removeAttribute(). true
true
Servlet:JAVADOC:488voidjakarta.servlet.http.HttpSession.setAttribute
( String ,
Object )
throws IllegalStateException
if this method is called on an invalidated sessiontrue
true
Servlet:JAVADOC:489voidjakarta.servlet.http.HttpSession.putValue
( String ,
Object )

truetruetrue
Servlet:JAVADOC:490voidjakarta.servlet.http.HttpSession.putValue
( String ,
Object )
throws IllegalStateException
if this method is called on an invalidated sessiontruetruetrue
Servlet:JAVADOC:491voidjakarta.servlet.http.HttpSession.removeAttribute
( String )
Removes the object bound with the specified name from this session. After this method executes, and if the object implements HttpSessionBindingListener, the container calls HttpSessionBindingListener.valueUnbound. The container then notifies any HttpSessionAttributeListeners in the web application. true
true
Servlet:JAVADOC:492voidjakarta.servlet.http.HttpSession.removeAttribute
( String )
If the session does not have an object bound with the specified name, this method does nothing. true
true
Servlet:JAVADOC:493voidjakarta.servlet.http.HttpSession.removeAttribute
( String )
throws IllegalStateException
if this method is called on an invalidated sessiontrue
true
Servlet:JAVADOC:494voidjakarta.servlet.http.HttpSession.removeValue
( String )

truetruetrue
Servlet:JAVADOC:495voidjakarta.servlet.http.HttpSession.removeValue
( String )
throws IllegalStateException
if this method is called on an invalidated sessiontruetruetrue
Servlet:JAVADOC:496voidjakarta.servlet.http.HttpSession.invalidate
Invalidates this session then unbinds any objects bound to it. true
true
Servlet:JAVADOC:497voidjakarta.servlet.http.HttpSession.invalidate

throws IllegalStateException
if this method is called on an already invalidated sessiontrue
true
Servlet:JAVADOC:498booleanjakarta.servlet.http.HttpSession.isNew
Returns true if the client does not yet know about the session or if the client chooses not to join the session. For example, if the server used only cookie-based sessions, and the client had disabled the use of cookies, then a session would be new on each request. true
true
Servlet:JAVADOC:499booleanjakarta.servlet.http.HttpSession.isNew

throws IllegalStateException
if this method is called on an already invalidated sessiontrue
true
Servlet:JAVADOC:502voidjakarta.servlet.http.HttpServletResponse.addCookie
( Cookie )
Adds the specified cookie to the response. This method can be called multiple times to set more than one cookie. true
true
Servlet:JAVADOC:503booleanjakarta.servlet.http.HttpServletResponse.containsHeader
( String )
Returns a boolean indicating whether the named response header has already been set. true
true
Servlet:JAVADOC:504Stringjakarta.servlet.http.HttpServletResponse.encodeURL
( String )
Encodes the specified URL by including the session ID in it, or, if encoding is not needed, returns the URL unchanged. The implementation of this method includes the logic to determine whether the session ID needs to be encoded in the URL. For example, if the browser supports cookies, or session tracking is turned off, URL encoding is unnecessary. For robust session tracking, all URLs emitted by a servlet should be run through this method. Otherwise, URL rewriting cannot be used with browsers which do not support cookies. true
true
Servlet:JAVADOC:505Stringjakarta.servlet.http.HttpServletResponse.encodeRedirectURL
( String )
Encodes the specified URL for use in the sendRedirect method or, if encoding is not needed, returns the URL unchanged. The implementation of this method includes the logic to determine whether the session ID needs to be encoded in the URL. Because the rules for making this determination can differ from those used to decide whether to encode a normal link, this method is seperate from the encodeURL method. All URLs sent to the HttpServletResponse.sendRedirect method should be run through this method. Otherwise, URL rewriting cannot be used with browsers which do not support cookies. true
true
Servlet:JAVADOC:506Stringjakarta.servlet.http.HttpServletResponse.encodeUrl
( String )

truetruetrue
Servlet:JAVADOC:507Stringjakarta.servlet.http.HttpServletResponse.encodeRedirectUrl
( String )

truetruetrue
Servlet:JAVADOC:508voidjakarta.servlet.http.HttpServletResponse.sendError
( int ,
String )
Sends an error response to the client using the specified status clearing the buffer. The server defaults to creating the response to look like an HTML-formatted server error page containing the specified message, setting the content type to "text/html", leaving cookies and other headers unmodified. true
true
Servlet:JAVADOC:509voidjakarta.servlet.http.HttpServletResponse.sendError
( int ,
String )
Sends an error response to the client using the specified status clearing the buffer. If an error-page declaration has been made for the web application corresponding to the status code passed in, it will be served back in preference to the suggested msg parameter. If the response has already been committed, this method throws an IllegalStateException. After using this method, the response should be considered to be committed and should not be written to. true
true
Servlet:JAVADOC:510voidjakarta.servlet.http.HttpServletResponse.sendError
( int ,
String )
throws IOException
If an input or output exception occurstrue
false
Servlet:JAVADOC:511voidjakarta.servlet.http.HttpServletResponse.sendError
( int ,
String )
throws IllegalStateException
If the response was committedtrue
true
Servlet:JAVADOC:512voidjakarta.servlet.http.HttpServletResponse.sendError
( int )
Sends an error response to the client using the specified status code and clearing the buffer. true
true
Servlet:JAVADOC:513voidjakarta.servlet.http.HttpServletResponse.sendError
( int )
throws IOException
If an input or output exception occurstrue
false
Servlet:JAVADOC:514voidjakarta.servlet.http.HttpServletResponse.sendError
( int )
throws IllegalStateException
If the response was committed before this method calltrue
true
Servlet:JAVADOC:515voidjakarta.servlet.http.HttpServletResponse.sendRedirect
( String )
Sends a temporary redirect response to the client using the specified redirect location URL. This method can accept relative URLs; the servlet container must convert the relative URL to an absolute URL before sending the response to the client. If the location is relative without a leading '/' the container interprets it as relative to the current request URI. true
true
Servlet:JAVADOC:516voidjakarta.servlet.http.HttpServletResponse.sendRedirect
( String )
Sends a temporary redirect response to the client using the specified redirect location URL. If the location is relative with a leading '/' the container interprets it as relative to the servlet container root. true
true
Servlet:JAVADOC:518voidjakarta.servlet.http.HttpServletResponse.sendRedirect
( String )
throws IOException
If an input or output exception occurstrue
false
Servlet:JAVADOC:519voidjakarta.servlet.http.HttpServletResponse.sendRedirect
( String )
throws IllegalStateException
If the response was committed or if a partial URL is given and cannot be converted into a valid URLtrue
true
Servlet:JAVADOC:520voidjakarta.servlet.http.HttpServletResponse.setDateHeader
( String ,
long )
Sets a response header with the given name and date-value. The date is specified in terms of milliseconds since the epoch. true
true
Servlet:JAVADOC:521voidjakarta.servlet.http.HttpServletResponse.setDateHeader
( String ,
long )
Sets a response header with the given name and date-value. If the header had already been set, the new value overwrites the previous one. true
true
Servlet:JAVADOC:522voidjakarta.servlet.http.HttpServletResponse.addDateHeader
( String ,
long )
Adds a response header with the given name and date-value. The date is specified in terms of milliseconds since the epoch. This method allows response headers to have multiple values. true
true
Servlet:JAVADOC:523voidjakarta.servlet.http.HttpServletResponse.setHeader
( String ,
String )
Sets a response header with the given name and value.true
true
Servlet:JAVADOC:524voidjakarta.servlet.http.HttpServletResponse.setHeader
( String ,
String )
Sets a response header with the given name and value. If the header had already been set, the new value overwrites the previous one. true
true
Servlet:JAVADOC:525voidjakarta.servlet.http.HttpServletResponse.addHeader
( String ,
String )
Adds a response header with the given name and value. This method allows response headers to have multiple values. true
true
Servlet:JAVADOC:526voidjakarta.servlet.http.HttpServletResponse.setIntHeader
( String ,
int )
Sets a response header with the given name and integer value. If the header had already been set, the new value overwrites the previous one. The containsHeader method can be used to test for the presence of a header before setting its value. true
true
Servlet:JAVADOC:527voidjakarta.servlet.http.HttpServletResponse.addIntHeader
( String ,
int )
Adds a response header with the given name and integer value. This method allows response headers to have multiple values. true
true
Servlet:JAVADOC:528voidjakarta.servlet.http.HttpServletResponse.setStatus
( int )
Sets the status code for this response. This method is used to set the return status code when there is no error (for example, for the status codes SC_OK or SC_MOVED_TEMPORARILY). The container clears the buffer and sets the Location header, preserving cookies and other headers. true
true
Servlet:JAVADOC:529voidjakarta.servlet.http.HttpServletResponse.setStatus
( int ,
String )

truetruetrue
Servlet:JAVADOC:530Stringjakarta.servlet.http.HttpServletRequest.getAuthType
Returns the name of the authentication scheme used to protect the servlet. All servlet containers support basic, form and client certificate authentication, and may additionally support digest authentication. If the servlet is not authenticated null is returned. Same as the value of the CGI variable AUTH_TYPE. XXX true
true
Servlet:JAVADOC:531Cookie[]jakarta.servlet.http.HttpServletRequest.getCookies
Returns an array containing all of the Cookie objects the client sent with this request. true
true
Servlet:JAVADOC:532Cookie[]jakarta.servlet.http.HttpServletRequest.getCookies
This method returns null if no cookies were sent. true
true
Servlet:JAVADOC:533longjakarta.servlet.http.HttpServletRequest.getDateHeader
( String )
Returns the value of the specified request header as a long value that represents a Date object. The date is returned as the number of milliseconds since January 1, 1970 GMT. The header name is case insensitive. true
true
Servlet:JAVADOC:534longjakarta.servlet.http.HttpServletRequest.getDateHeader
( String )
Returns the value of the specified request header as a long value that represents a Date object. if the request did not have a header of the specified name, this method returns -1. true
true
Servlet:JAVADOC:535longjakarta.servlet.http.HttpServletRequest.getDateHeader
( String )
throws IllegalArgumentException
If the header value can't be converted to a datetrue
true
Servlet:JAVADOC:536Stringjakarta.servlet.http.HttpServletRequest.getHeader
( String )
Returns the value of the specified request header as a String. The header name is case insensitive. true
true
Servlet:JAVADOC:537Stringjakarta.servlet.http.HttpServletRequest.getHeader
( String )
If the request does not include a header of the specified name, this method returns null. true
true
Servlet:JAVADOC:538Enumerationjakarta.servlet.http.HttpServletRequest.getHeaders
( String )
Returns all the values of the specified request header as an Enumeration of String objects. Some headers, such as Accept-Language can be sent by clients as several headers each with a different value rather than sending the header as a comma separated list. The header name is case insensitive. true
true
Servlet:JAVADOC:539Enumerationjakarta.servlet.http.HttpServletRequest.getHeaders
( String )
If the request did not include any headers of the specified name, this method returns an empty Enumeration. true
true
Servlet:JAVADOC:540Enumerationjakarta.servlet.http.HttpServletRequest.getHeaderNames
Returns an enumeration of all the header names this request contains. Some servlet containers do not allow do not allow servlets to access headers using this method, in which case this method returns null true
true
Servlet:JAVADOC:541Enumerationjakarta.servlet.http.HttpServletRequest.getHeaderNames
If the request has no headers, this method returns an empty enumeration. Some servlet containers do not allow do not allow servlets to access headers using this method, in which case this method returns null true
false
Servlet:JAVADOC:542intjakarta.servlet.http.HttpServletRequest.getIntHeader
( String )
Returns the value of the specified request header as an int. The header name is case insensitive. true
true
Servlet:JAVADOC:543intjakarta.servlet.http.HttpServletRequest.getIntHeader
( String )
If the request does not have a header of the specified name, this method returns -1. true
true
Servlet:JAVADOC:544intjakarta.servlet.http.HttpServletRequest.getIntHeader
( String )
throws NumberFormatException
If the header value can't be converted to an inttrue
true
Servlet:JAVADOC:545Stringjakarta.servlet.http.HttpServletRequest.getMethod
Returns the name of the HTTP method with which this request was made, for example, GET, POST, or PUT. Same as the value of the CGI variable REQUEST_METHOD. true
true
Servlet:JAVADOC:546Stringjakarta.servlet.http.HttpServletRequest.getPathInfo
Returns any extra path information associated with the URL the client sent when it made this request. The extra path information follows the servlet path but precedes the query string and will start with a "/" character. This method returns null if there was no extra path information. Same as the value of the CGI variable PATH_INFO. true
true
Servlet:JAVADOC:547Stringjakarta.servlet.http.HttpServletRequest.getPathInfo
This method returns null if there was no extra path information. true
true
Servlet:JAVADOC:548Stringjakarta.servlet.http.HttpServletRequest.getPathTranslated
Returns any extra path information after the servlet name but before the query string, and translates it to a real path. Same as the value of the CGI variable PATH_TRANSLATED. The web container does not decode this string. true
true
Servlet:JAVADOC:549Stringjakarta.servlet.http.HttpServletRequest.getPathTranslated
If the URL does not have any extra path information, this method returns null or the servlet container cannot translate the virtual path to a real path for any reason (such as when the web application is executed from an archive). true
true
Servlet:JAVADOC:550Stringjakarta.servlet.http.HttpServletRequest.getContextPath
Returns the portion of the request URI that indicates the context of the request. The context path always comes first in a request URI. The path starts with a "/" character but does not end with a "/" character. It is possible that a servlet container may match a context by more than one context path. In such cases this method will return the actual context path used by the request and it may differ from the path returned by the ServletContext.getContextPath() method. The context path returned by ServletContext.getContextPath() should be considered as the prime or preferred context path of the application. true
true
Servlet:JAVADOC:551Stringjakarta.servlet.http.HttpServletRequest.getContextPath
For servlets in the default (root) context, this method returns "". The container does not decode this string. true
false
Servlet:JAVADOC:552Stringjakarta.servlet.http.HttpServletRequest.getQueryString
Returns the query string that is contained in the request URL after the path. Same as the value of the CGI variable QUERY_STRING. true
true
Servlet:JAVADOC:553Stringjakarta.servlet.http.HttpServletRequest.getQueryString
This method returns null if the URL does not have a query string. true
true
Servlet:JAVADOC:554Stringjakarta.servlet.http.HttpServletRequest.getRemoteUser
Returns the login of the user making this request, if the user has been authenticated, or null if the user has not been authenticated. Whether the user name is sent with each subsequent request depends on the browser and type of authentication. Same as the value of the CGI variable REMOTE_USER. true
true
Servlet:JAVADOC:555booleanjakarta.servlet.http.HttpServletRequest.isUserInRole
( String )
Returns a boolean indicating whether the authenticated user is included in the specified logical "role". Roles and role membership can be defined using deployment descriptors. true
true
Servlet:JAVADOC:556booleanjakarta.servlet.http.HttpServletRequest.isUserInRole
( String )
If the user has not been authenticated, the method returns false. true
true
Servlet:JAVADOC:947booleanjakarta.servlet.http.HttpServletRequest.isUserInRole
( String )
If the role-name of the security-role to be tested is “**”, and the application has NOT declared an application security-role with role-name “**”, isUserInRole must only return true if the user has been authenticated; that is, only when #getRemoteUser and #getUserPrincipal would both return a non-null value. Otherwise, the container must check the user for membership in the application role. true
true
Servlet:JAVADOC:557Principaljakarta.servlet.http.HttpServletRequest.getUserPrincipal
Returns a java.security.Principal object containing the name of the current authenticated user. true
true
Servlet:JAVADOC:558Principaljakarta.servlet.http.HttpServletRequest.getUserPrincipal
If the user has not been authenticated, the method returns null. true
true
Servlet:JAVADOC:559Stringjakarta.servlet.http.HttpServletRequest.getRequestedSessionId
Returns the session ID specified by the client. This may not be the same as the ID of the actual session in use. For example, if the request specified an old (expired) session ID and the server has started a new session, this method gets a new session with a new ID. If the request did not specify a session ID, this method returns null. true
true
Servlet:JAVADOC:560Stringjakarta.servlet.http.HttpServletRequest.getRequestedSessionId
If the request did not specify a session ID, this method returns null. true
true
Servlet:JAVADOC:561Stringjakarta.servlet.http.HttpServletRequest.getRequestURI
Returns the part of this request's URL from the protocol name up to the query string in the first line of the HTTP request. The web container does not decode this String. true
true
Servlet:JAVADOC:562StringBufferjakarta.servlet.http.HttpServletRequest.getRequestURL
Reconstructs the URL the client used to make the request. The returned URL contains a protocol, server name, port number, and server path, but it does not include query string parameters. If this request has been forwarded using RequestDispatcher.forward(ServletRequest, ServletResponse) , the server path in the reconstructed URL must reflect the path used to obtain the RequestDispatcher, and not the server path specified by the client. Because this method returns a StringBuffer , not a string, you can modify the URL easily, for example, to append query parameters. true
true
Servlet:JAVADOC:563Stringjakarta.servlet.http.HttpServletRequest.getServletPath
Returns the part of this request's URL that calls the servlet. This path starts with a "/" character and includes either the servlet name or a path to the servlet, but does not include any extra path information or a query string. Same as the value of the CGI variable SCRIPT_NAME. This method will return an empty string ("") if the servlet used to process this request was matched using the "/*" pattern. true
true
Servlet:JAVADOC:564Stringjakarta.servlet.http.HttpServletRequest.getServletPath
This method will return an empty string ("") if the servlet used to process this request was matched using the "/*" pattern. true
true
Servlet:JAVADOC:565HttpSessionjakarta.servlet.http.HttpServletRequest.getSession
( boolean )
Returns the current HttpSession associated with this request or, if if there is no current session and create is true, returns a new session. true
true
Servlet:JAVADOC:566HttpSessionjakarta.servlet.http.HttpServletRequest.getSession
( boolean )
If create is false and the request has no valid HttpSession, this method returns null. true
true
Servlet:JAVADOC:567HttpSessionjakarta.servlet.http.HttpServletRequest.getSession
Returns the current session associated with this request, or if the request does not have a session, creates one. true
true
Servlet:JAVADOC:568booleanjakarta.servlet.http.HttpServletRequest.isRequestedSessionIdValid
Checks whether the requested session ID is still valid. If the client did not specify any session ID, this method returns false. Returns: true if this request has an id for a valid session in the current session context; false otherwise true
true
Servlet:JAVADOC:569booleanjakarta.servlet.http.HttpServletRequest.isRequestedSessionIdFromCookie
Checks whether the requested session ID came in as a cookie. true
true
Servlet:JAVADOC:570booleanjakarta.servlet.http.HttpServletRequest.isRequestedSessionIdFromURL
Checks whether the requested session ID came in as part of the request URL. true
true
Servlet:JAVADOC:571booleanjakarta.servlet.http.HttpServletRequest.isRequestedSessionIdFromUrl

truetruetrue
Servlet:JAVADOC:572Objectjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getAttribute
( String )
Returns the value of the named attribute as an Object, or null if no attribute of the given name exists. Attributes can be set two ways. The servlet container may set attributes to make available custom information about a request. For example, for requests made using HTTPS, the attribute jakarta.servlet.request.X509Certificate can be used to retrieve information on the certificate of the client. Attributes can also be set programatically using setAttribute(java.lang.String, java.lang.Object). This allows information to be embedded into a request before a RequestDispatcher call. Attribute names should follow the same conventions as package names. This specification reserves names matching java.*, jakarta.*, and sun.*. true
true
Servlet:JAVADOC:573Enumerationjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getAttributeNames
Returns an Enumeration containing the names of the attributes available to this request. This method returns an empty Enumeration if the request has no attributes available to it. true
true
Servlet:JAVADOC:574Stringjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getCharacterEncoding
Returns the name of the character encoding used in the body of this request. This method returns null if the request does not specify a character encoding true
true
Servlet:JAVADOC:575intjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getContentLength
Returns the length, in bytes, of the request body and made available by the input stream, or -1 if the length is not known. For HTTP servlets, same as the value of the CGI variable CONTENT_LENGTH. true
true
Servlet:JAVADOC:576Stringjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getContentType
Returns the MIME type of the body of the request, or null if the type is not known. For HTTP servlets, same as the value of the CGI variable CONTENT_TYPE. true
true
Servlet:JAVADOC:577ServletInputStreamjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getInputStream
Retrieves the body of the request as binary data using a ServletInputStream. Either this method or getReader() may be called to read the body, not both. true
true
Servlet:JAVADOC:578ServletInputStreamjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getInputStream

throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:579ServletInputStreamjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getInputStream

throws IllegalStateException
if the getReader method has already been called for this requesttrue
true
Servlet:JAVADOC:580Localejakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getLocale
Returns the preferred Locale that the client will accept content in, based on the Accept-Language header. If the client request doesn't provide an Accept-Language header, this method returns the default locale for the server. true
true
Servlet:JAVADOC:581Enumerationjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getLocales
Returns an Enumeration of Locale objects indicating, in decreasing order starting with the preferred locale, the locales that are acceptable to the client based on the Accept-Language header. If the client request doesn't provide an Accept-Language header, this method returns an Enumeration containing one Locale, the default locale for the server. true
true
Servlet:JAVADOC:582Stringjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getParameter
( String )
Returns the value of a request parameter as a String, or null if the parameter does not exist. Request parameters are extra information sent with the request. For HTTP servlets, parameters are contained in the query string or posted form data. You should only use this method when you are sure the parameter has only one value. If the parameter might have more than one value, use getParameterValues(java.lang.String). If you use this method with a multivalued parameter, the value returned is equal to the first value in the array returned by getParameterValues. If the parameter data was sent in the request body, such as occurs with an HTTP POST request, then reading the body directly via getInputStream() or getReader() can interfere with the execution of this method. true
true
Servlet:JAVADOC:583Mapjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getParameterMap
Returns a java.util.Map of the parameters of this request. Request parameters are extra information sent with the request. For HTTP servlets, parameters are contained in the query string or posted form data. true
true
Servlet:JAVADOC:584Enumerationjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getParameterNames
Returns an Enumeration of String objects containing the names of the parameters contained in this request. If the request has no parameters, the method returns an empty Enumeration. true
true
Servlet:JAVADOC:585String[]jakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getParameterValues
( String )
Returns an array of String objects containing all of the values the given request parameter has, or null if the parameter does not exist. If the parameter has a single value, the array has a length of 1. true
true
Servlet:JAVADOC:586Stringjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getProtocol
Returns the name and version of the protocol the request uses in the form protocol/majorVersion.minorVersion, for example, HTTP/1.1. For HTTP servlets, the value returned is the same as the value of the CGI variable SERVER_PROTOCOL. true
true
Servlet:JAVADOC:587BufferedReaderjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getReader
Retrieves the body of the request as character data using a BufferedReader. The reader translates the character data according to the character encoding used on the body. Either this method or getInputStream() may be called to read the body, not both. true
true
Servlet:JAVADOC:588BufferedReaderjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getReader

throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:589BufferedReaderjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getReader

throws UnsupportedEncodingException
if the character set encoding used is not supported and the text cannot be decodedtrue
true
Servlet:JAVADOC:590BufferedReaderjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getReader

throws IllegalStateException
if getInputStream method has been called on this requesttrue
true
Servlet:JAVADOC:591Stringjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getRealPath
( String )

truetruetrue
Servlet:JAVADOC:592Stringjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getRemoteAddr
Returns the Internet Protocol (IP) address of the client that sent the request. For HTTP servlets, same as the value of the CGI variable REMOTE_ADDR. true
true
Servlet:JAVADOC:593Stringjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getRemoteHost
Returns the fully qualified name of the client that sent the request. If the engine cannot or chooses not to resolve the hostname (to improve performance), this method returns the dotted-string form of the IP address. For HTTP servlets, same as the value of the CGI variable REMOTE_HOST. true
true
Servlet:JAVADOC:594RequestDispatcherjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getRequestDispatcher
( String )
Returns a object that acts as a wrapper for the resource located at the given path. A RequestDispatcher object can be used to forward a request to the resource or to include the resource in a response. The resource can be dynamic or static. The pathname specified may be relative, although it cannot extend outside the current servlet context. If the path begins with a "/" it is interpreted as relative to the current context root. This method returns null if the servlet container cannot return a RequestDispatcher. The difference between this method and is that this method can take a relative path. true
true
Servlet:JAVADOC:595Stringjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getScheme
Returns the name of the scheme used to make this request, for example, http, https, or ftp. Different schemes have different rules for constructing URLs, as noted in RFC 1738. true
true
Servlet:JAVADOC:596Stringjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getServerName
Returns the host name of the server that received the request. For HTTP servlets, same as the value of the CGI variable SERVER_NAME. true
true
Servlet:JAVADOC:597intjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.getServerPort
Returns the port number on which this request was received. For HTTP servlets, same as the value of the CGI variable SERVER_PORT. true
true
Servlet:JAVADOC:598booleanjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.isSecure
Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS.true
true
Servlet:JAVADOC:599voidjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.removeAttribute
( String )
Removes an attribute from this request. This method is not generally needed as attributes only persist as long as the request is being handled. Attribute names should follow the same conventions as package names. Names beginning with java.*, jakarta.*, and com.sun.*, are reserved for use by Sun Microsystems. true
true
Servlet:JAVADOC:600voidjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.setAttribute
( String ,
Object )
Stores an attribute in this request. Attributes are reset between requests. This method is most often used in conjunction with RequestDispatcher. Attribute names should follow the same conventions as package names. Names beginning with java.*, jakarta.*, and com.sun.*, are reserved for use by the Eclipse Foundation. If the value passed in is null, the effect is the same as calling removeAttribute(java.lang.String). It is warned that when the request is dispatched from the servlet resides in a different web application by RequestDispatcher, the object set by this method may not be correctly retrieved in the caller servlet. true
true
Servlet:JAVADOC:601voidjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.setCharacterEncoding
( String )
Overrides the name of the character encoding used in the body of this request. This method must be called prior to reading request parameters or reading input using getReader(). Otherwise, it has no effect. true
true
Servlet:JAVADOC:602voidjakarta.servlet.http.HttpServletRequest.{jakarta.servlet.ServletRequest}.setCharacterEncoding
( String )
throws UnsupportedEncodingException
if this ServletRequest is still in a state where a character encoding may be set, but the specified encoding is invalidtrue
true
Servlet:JAVADOC:603voidjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.flushBuffer
Forces any content in the buffer to be written to the client. A call to this method automatically commits the response, meaning the status code and headers will be written. true
true
Servlet:JAVADOC:604voidjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.flushBuffer

throws IOException

true
false
Servlet:JAVADOC:605intjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.getBufferSize
Returns the actual buffer size used for the response. If no buffering is used, this method returns 0. true
true
Servlet:JAVADOC:606Stringjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.getCharacterEncoding
Returns the name of the charset used for the MIME body sent in this response. If no charset has been assigned, it is implicitly set to ISO-8859-1 (Latin-1). See RFC 2047 (http://ds.internic.net/rfc/rfc2045.txt) for more information about character encoding and MIME. true
true
Servlet:JAVADOC:607Stringjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.getContentType
Returns the MIME type of the body of the request, or null if the type is not known. For HTTP servlets, same as the value of the CGI variable CONTENT_TYPE. true
true
Servlet:JAVADOC:608Localejakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.getLocale
Returns the locale assigned to the response.true
true
Servlet:JAVADOC:609ServletOutputStreamjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.getOutputStream
Returns a suitable for writing binary data in the response. The servlet container does not encode the binary data. Calling flush() on the ServletOutputStream commits the response. Either this method or getWriter() may be called to write the body, not both. true
true
Servlet:JAVADOC:610ServletOutputStreamjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.getOutputStream

throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:611ServletOutputStreamjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.getOutputStream

throws IllegalStateException
if the getWriter method has been called on this responsetrue
true
Servlet:JAVADOC:612PrintWriterjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.getWriter
Returns a PrintWriter object that can send character text to the client. The PrintWriter uses the character encoding returned by getCharacterEncoding(). If the response's character encoding has not been specified as described in getCharacterEncoding (i.e., the method just returns the default value ISO-8859-1), getWriter updates it to ISO-8859-1. Calling flush() on the PrintWriter commits the response. Either this method or getOutputStream() may be called to write the body, not both, except when reset() has been called. true
true
Servlet:JAVADOC:613PrintWriterjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.getWriter

throws IOException
if an input or output exception occurredtrue
false
Servlet:JAVADOC:614PrintWriterjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.getWriter

throws UnsupportedEncodingException
if the character encoding returned by getCharacterEncoding cannot be usedtrue
false
Servlet:JAVADOC:615PrintWriterjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.getWriter

throws IllegalStateException
if the getOutputStream method has already been called for this response objecttrue
true
Servlet:JAVADOC:616booleanjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.isCommitted
Returns a boolean indicating if the response has been committed. A commited response has already had its status code and headers written. true
true
Servlet:JAVADOC:617voidjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.reset
Clears any data that exists in the buffer as well as the status code and headers. If the response has been committed, this method throws an IllegalStateException. true
true
Servlet:JAVADOC:618voidjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.reset

throws IllegalStateException
if the response has already been committedtrue
true
Servlet:JAVADOC:619voidjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.resetBuffer
Clears the content of the underlying buffer in the response without clearing headers or status code. If the response has been committed, this method throws an IllegalStateException. true
true
Servlet:JAVADOC:620voidjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.setBufferSize
( int )
Sets the preferred buffer size for the body of the response. The servlet container will use a buffer at least as large as the size requested. The actual buffer size used can be found using getBufferSize. A larger buffer allows more content to be written before anything is actually sent, thus providing the servlet with more time to set appropriate status codes and headers. A smaller buffer decreases server memory load and allows the client to start receiving data more quickly. This method must be called before any response body content is written; if content has been written, this method throws an IllegalStateException. true
true
Servlet:JAVADOC:621voidjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.setBufferSize
( int )
throws IllegalStateException
if this method is called after content has been writtentrue
true
Servlet:JAVADOC:622voidjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.setCharacterEncoding
( String )
Overrides the name of the character encoding used in the body of the request. This method must be called prior to reading request parameters or reading input using getReader(). true
true
Servlet:JAVADOC:623voidjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.setContentLength
( int )
Sets the length of the content body in the response. In HTTP servlets, this method sets the HTTP Content-Length header. true
true
Servlet:JAVADOC:624voidjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.setContentType
( String )
Sets the content type of the response being sent to the client. The content type may include the type of character encoding used, for example, text/html; charset=ISO-8859-4. If obtaining a PrintWriter, this method should be called first. true
true
Servlet:JAVADOC:625voidjakarta.servlet.http.HttpServletResponse.{jakarta.servlet.ServletResponse}.setLocale
( Locale )
Sets the locale of the response, if the response has not been committed yet. It also sets the response's character encoding appropriately for the locale, if the character encoding has not been explicitly set using setContentType(java.lang.String) or setCharacterEncoding(java.lang.String), getWriter hasn't been called yet, and the response hasn't been committed yet. If the deployment descriptor contains a locale-encoding-mapping-list element, and that element provides a mapping for the given locale, that mapping is used. Otherwise, the mapping from locale to character encoding is container dependent. This method may be called repeatedly to change locale and character encoding. The method has no effect if called after the response has been committed. It does not set the response's character encoding if it is called after setContentType(java.lang.String) has been called with a charset specification, after setCharacterEncoding(java.lang.String) has been called, after getWriter has been called, or after the response has been committed. Containers must communicate the locale and the character encoding used for the servlet response's writer to the client if the protocol provides a way for doing so. In the case of HTTP, the locale is communicated via the Content-Language header, the character encoding as part of the Content-Type header for text media types. Note that the character encoding cannot be communicated via HTTP headers if the servlet does not specify a content type; however, it is still used to encode text written via the servlet response's writer. true
true
Servlet:JAVADOC:626HttpServletRequestWrapperjakarta.servlet.http.HttpServletRequestWrapper.HttpServletRequestWrapper
( HttpServletRequest )
throws IllegalStateException
If the request is null.true
true
Servlet:JAVADOC:627intjakarta.servlet.ServletInputStream.readLine
( byte[] ,
int ,
int )
Reads the input stream, one line at a time. This method returns -1 if it reaches the end of the input stream before reading the maximum number of bytes. true
false
Servlet:JAVADOC:628Cookiejakarta.servlet.http.Cookie.Cookie
( String ,
String )
throws IllegalArgumentException
if the cookie name contains illegal characters (for example, a comma, space, or semicolon) or it is one of the tokens reserved for use by the cookie protocol true
true
Servlet:JAVADOC:629Stringjakarta.servlet.http.HttpServletRequest.getLocalName
Returns the host name of the Internet Protocol (IP) interface on which the request was received. true
true
Servlet:JAVADOC:630intjakarta.servlet.http.HttpServletRequest.getLocalPort
Returns the Internet Protocol (IP) port number of the interface on which the request was received. true
true
Servlet:JAVADOC:631intjakarta.servlet.http.HttpServletRequestWrapper.getLocalPort
The default behavior of this method is to return getLocalPort() on the wrapped request object. true
true
Servlet:JAVADOC:632Stringjakarta.servlet.ServletRequest.getLocalName
Returns the host name of the Internet Protocol (IP) interface on which the request was received. true
true
Servlet:JAVADOC:633Stringjakarta.servlet.ServletRequestWrapper.getLocalName
The default behavior of this method is to return getLocalName() on the wrapped request object. true
true
Servlet:JAVADOC:634Stringjakarta.servlet.http.HttpServletRequestWrapper.getLocalName
The default behavior of this method is to return getLocalName() on the wrapped request object. true
true
Servlet:JAVADOC:635intjakarta.servlet.ServletRequest.getLocalPort
Returns the Internet Protocol (IP) port number of the interface on which the request was received. true
true
Servlet:JAVADOC:636intjakarta.servlet.ServletRequestWrapper.getLocalPort
The default behavior of this method is to return getLocalPort() on the wrapped request object. true
true
Servlet:JAVADOC:637Stringjakarta.servlet.ServletContext.getContextPath
Returns the context path of the web application. The context path is the portion of the request URI that is used to select the context of the request. The context path always comes first in a request URI. If this context is the "default" context rooted at the base of the Web server's URL name space, this path will be an empty string. Otherwise, if the context is not rooted at the root of the server's URL name space, the path starts with a / character but does not end with a / character. It is possible that a servlet container may match a context by more than one context path. In such cases the jakarta.servlet.http.HttpServletRequest#getContextPath() will return the actual context path used by the request and it may differ from the path returned by this method. The context path returned by this method should be considered as the prime or preferred context path of the application. true
true
Servlet:JAVADOC:638voidjakarta.servlet.AsyncContext.complete
Completes the asynchronous operation that was started on the request that was used to initialze this AsyncContext, closing the response that was used to initialize this AsyncContext. Any listeners of type AsyncListener that were added to the request that was used to initialize this AsyncContext will have their AsyncListener#onComplete(AsyncEvent) method invoked. It is legal to call this method any time after a call to ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest, ServletResponse), and before a call to one of the dispatch methods of this class. If this method is called before the container-initiated dispatch that called startAsync has returned to the container, then the call will not take effect (and any invocations of AsyncListener#onComplete(AsyncEvent) will be delayed) until after the container-initiated dispatch has returned to the container.true
true
Servlet:JAVADOC:638.1voidjakarta.servlet.AsyncContext.complete
Any listeners of type AsyncListener that were added to the request that was used to initialize this AsyncContext will have their AsyncListener#onComplete(AsyncEvent) method invoked.true
true
Servlet:JAVADOC:638.2voidjakarta.servlet.AsyncContext.complete
It is legal to call this method any time after a call to ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest, ServletResponse), and before a call to one of the dispatch methods of this class. If this method is called before the container-initiated dispatch that called startAsync has returned to the container, then the call will not take effect (and any invocations of AsyncListener#onComplete(AsyncEvent) will be delayed) until after the container-initiated dispatch has returned to the container.true
true
Servlet:JAVADOC:639voidjakarta.servlet.AsyncContext.dispatch
Dispatches the request and response objects of this AsyncContext to the servlet container. If the asynchronous cycle was started with ServletRequest#startAsync(ServletRequest, ServletResponse) then the dispatch is to the URI of the request passed to startAsync. If the asynchronous cycle was started with ServletRequest#startAsync(), then the dispatch is to the URI of the request when it was last dispatched by the container. The following sequence illustrates how this will work: // REQUEST dispatch to /url/A AsyncContext ac = request.startAsync(); ... ac.dispatch(); // ASYNC dispatch to /url/A // FORWARD dispatch to /url/B getRequestDispatcher("/url/B").forward(request,response); // Start async operation from within the target of the FORWARD // dispatch ac = request.startAsync(); ... ac.dispatch(); // ASYNC dispatch to /url/A // FORWARD dispatch to /url/B getRequestDispatcher("/url/B").forward(request,response); // Start async operation from within the target of the FORWARD // dispatch ac = request.startAsync(request,response); ... ac.dispatch(); // ASYNC dispatch to /url/B This method returns immediately after passing the request and response objects to a container managed thread, on which the dispatch operation will be performed. The dispatcher type of the request is set to DispatcherType.ASYNC. Unlike RequestDispatcher#forward(ServletRequest, ServletResponse) forward dispatches, the response buffer and headers will not be reset, and it is legal to dispatch even if the response has already been committed. Control over the request and response is delegated to the dispatch target, and the response will be closed when the dispatch target has completed execution, unless ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest, ServletResponse) are called.true
true
Servlet:JAVADOC:639.1voidjakarta.servlet.AsyncContext.dispatch
If the asynchronous cycle was started with ServletRequest.startAsync(ServletRequest, ServletResponse), and the request passed is an instance of HttpServletRequest, then the dispatch is to the URI returned by HttpServletRequest.getRequestURI().true
true
Servlet:JAVADOC:639.2voidjakarta.servlet.AsyncContext.dispatch
Otherwise, the dispatch is to the URI of the request when it was last dispatched by the container. true
true
Servlet:JAVADOC:639.3voidjakarta.servlet.AsyncContext.dispatch
This method returns immediately after passing the request and response objects to a container managed thread, on which the dispatch operation will be performed. true
true
Servlet:JAVADOC:639.4voidjakarta.servlet.AsyncContext.dispatch
The dispatcher type of the request is set to DispatcherType.ASYNC. Unlike forward dispatches, the response buffer and headers will not be reset, and it is legal to dispatch even if the response has already been committed.true
true
Servlet:JAVADOC:639.5voidjakarta.servlet.AsyncContext.dispatch
Control over the request and response is delegated to the dispatch target, and the response will be closed when the dispatch target has completed execution, unless ServletRequest.startAsync() or ServletRequest.startAsync(ServletRequest, ServletResponse) are called.true
true
Servlet:JAVADOC:639.6voidjakarta.servlet.AsyncContext.dispatch
Any errors or exceptions that may occur during the execution of this method must be caught and handled by the container, as follows: 1. Invoke, at their onError method, all AsyncListener instances registered with the ServletRequest for which this AsyncContext was created, and make the caught Throwable available via AsyncEvent.getThrowable().true
true
Servlet:JAVADOC:639.7voidjakarta.servlet.AsyncContext.dispatch
2. If none of the listeners called complete() or any of the dispatch() methods, perform an error dispatch with a status code equal to HttpServletResponse.SC_INTERNAL_SERVER_ERROR, and make the above Throwable available as the value of the RequestDispatcher.ERROR_EXCEPTION request attribute.true
true
Servlet:JAVADOC:639.8voidjakarta.servlet.AsyncContext.dispatch
3. If no matching error page was found, or the error page did not call complete() or any of the dispatch() methods, call complete().true
true
Servlet:JAVADOC:639.9voidjakarta.servlet.AsyncContext.dispatch
There can be at most one asynchronous dispatch operation per asynchronous cycle, which is started by a call to one of the ServletRequest.startAsync() methods. Any attempt to perform an additional asynchronous dispatch operation within the same asynchronous cycle will result in an IllegalStateException. true
true
Servlet:JAVADOC:639.10voidjakarta.servlet.AsyncContext.dispatch
If startAsync is subsequently called on the dispatched request, then any of the dispatch or complete() methods may be called. true
true
Servlet:JAVADOC:639.11voidjakarta.servlet.AsyncContext.dispatch

throws IllegalStateException
if one of the dispatch methods has been called and the startAsync method has not been called during the resulting dispatch, or if complete() was calledtrue
true
Servlet:JAVADOC:639.12voidjakarta.servlet.AsyncContext.dispatch
Unlike forward dispatches, the response buffer and headers will not be reset, and it is legal to dispatch even if the response has already been committed. true
true
Servlet:JAVADOC:640voidjakarta.servlet.AsyncContext.dispatch
( String )
Dispatches the request and response objects of this AsyncContext to the given path. The path parameter is interpreted in the same way as in ServletRequest#getRequestDispatcher(String), within the scope of the ServletContext from which this AsyncContext was initialized. All path related query methods of the request must reflect the dispatch target, while the original request URI, context path, path info, servlet path, and query string may be recovered from the #ASYNC_REQUEST_URI, #ASYNC_CONTEXT_PATH, #ASYNC_PATH_INFO, #ASYNC_SERVLET_PATH, and #ASYNC_QUERY_STRING attributes of the request. These attributes will always reflect the original path elements, even under repeated dispatches. See #dispatch() for additional details.true
true
Servlet:JAVADOC:640.1voidjakarta.servlet.AsyncContext.dispatch
( String )
The path parameter is interpreted in the same way as in ServletRequest.getRequestDispatcher(String), within the scope of the ServletContext from which this AsyncContext was initialized. true
true
Servlet:JAVADOC:640.2voidjakarta.servlet.AsyncContext.dispatch
( String )
All path related query methods of the request must reflect the dispatch target, while the original request URI, context path, path info, servlet path, and query string may be recovered from the ASYNC_REQUEST_URI, ASYNC_CONTEXT_PATH, ASYNC_PATH_INFO, ASYNC_SERVLET_PATH, and ASYNC_QUERY_STRING attributes of the request. These attributes will always reflect the original path elements, even under repeated dispatches. true
true
Servlet:JAVADOC:640.3voidjakarta.servlet.AsyncContext.dispatch
( String )
There can be at most one asynchronous dispatch operation per asynchronous cycle, which is started by a call to one of the ServletRequest.startAsync() methods. Any attempt to perform an additional asynchronous dispatch operation within the same asynchronous cycle will result in an IllegalStateException.true
true
Servlet:JAVADOC:640.4voidjakarta.servlet.AsyncContext.dispatch
( String )
If startAsync is subsequently called on the dispatched request, then any of the dispatch or complete() methods may be called. true
true
Servlet:JAVADOC:640.5voidjakarta.servlet.AsyncContext.dispatch
( String )
Any errors or exceptions that may occur during the execution of this method must be caught and handled by the container, as follows: 1. Invoke, at their onError method, all AsyncListener instances registered with the ServletRequest for which this AsyncContext was created, and make the caught Throwable available via AsyncEvent.getThrowable().true
true
Servlet:JAVADOC:640.6voidjakarta.servlet.AsyncContext.dispatch
( String )
2. If none of the listeners called complete() or any of the dispatch() methods, perform an error dispatch with a status code equal to HttpServletResponse.SC_INTERNAL_SERVER_ERROR, and make the above Throwable available as the value of the RequestDispatcher.ERROR_EXCEPTION request attribute.true
true
Servlet:JAVADOC:640.7voidjakarta.servlet.AsyncContext.dispatch
( String )
3. If no matching error page was found, or the error page did not call complete() or any of the dispatch() methods, call complete().true
true
Servlet:JAVADOC:640.8voidjakarta.servlet.AsyncContext.dispatch
( String )
throws IllegalStateException
if one of the dispatch methods has been called and the startAsync method has not been called during the resulting dispatch, or if complete() was calledtrue
true
Servlet:JAVADOC:641voidjakarta.servlet.AsyncContext.dispatch
( ServletContext ,
String )
Dispatches the request and response objects of this AsyncContext to the given path scoped to the given context. The path parameter is interpreted in the same way as in ServletRequest#getRequestDispatcher(String), except that it is scoped to the given context. All path related query methods of the request must reflect the dispatch target, while the original request URI, context path, path info, servlet path, and query string may be recovered from the #ASYNC_REQUEST_URI, #ASYNC_CONTEXT_PATH, #ASYNC_PATH_INFO, #ASYNC_SERVLET_PATH, and #ASYNC_QUERY_STRING attributes of the request. These attributes will always reflect the original path elements, even under repeated dispatches. See #dispatch() for additional details.true
true
Servlet:JAVADOC:641.1voidjakarta.servlet.AsyncContext.dispatch
( ServletContext ,
String )
The path parameter is interpreted in the same way as in ServletRequest.getRequestDispatcher(String), except that it is scoped to the given context.true
true
Servlet:JAVADOC:641.2voidjakarta.servlet.AsyncContext.dispatch
( ServletContext ,
String )
All path related query methods of the request must reflect the dispatch target, while the original request URI, context path, path info, servlet path, and query string may be recovered from the ASYNC_REQUEST_URI, ASYNC_CONTEXT_PATH, ASYNC_PATH_INFO, ASYNC_SERVLET_PATH, and ASYNC_QUERY_STRING attributes of the request. These attributes will always reflect the original path elements, even under repeated dispatches.true
true
Servlet:JAVADOC:641.3voidjakarta.servlet.AsyncContext.dispatch
( ServletContext ,
String )
There can be at most one asynchronous dispatch operation per asynchronous cycle, which is started by a call to one of the ServletRequest.startAsync() methods. Any attempt to perform an additional asynchronous dispatch operation within the same asynchronous cycle will result in an IllegalStateException.true
true
Servlet:JAVADOC:641.4voidjakarta.servlet.AsyncContext.dispatch
( ServletContext ,
String )
If startAsync is subsequently called on the dispatched request, then any of the dispatch or complete() methods may be called.true
true
Servlet:JAVADOC:641.5voidjakarta.servlet.AsyncContext.dispatch
( ServletContext ,
String )
Any errors or exceptions that may occur during the execution of this method must be caught and handled by the container, as follows: 1. Invoke, at their onError method, all AsyncListener instances registered with the ServletRequest for which this AsyncContext was created, and make the caught Throwable available via AsyncEvent.getThrowable().true
true
Servlet:JAVADOC:641.6voidjakarta.servlet.AsyncContext.dispatch
( ServletContext ,
String )
2. If none of the listeners called complete() or any of the dispatch() methods, perform an error dispatch with a status code equal to HttpServletResponse.SC_INTERNAL_SERVER_ERROR, and make the above Throwable available as the value of the RequestDispatcher.ERROR_EXCEPTION request attribute.true
true
Servlet:JAVADOC:641.7voidjakarta.servlet.AsyncContext.dispatch
( ServletContext ,
String )
3. If no matching error page was found, or the error page did not call complete() or any of the dispatch() methods, call complete().true
true
Servlet:JAVADOC:641.8voidjakarta.servlet.AsyncContext.dispatch
( ServletContext ,
String )
throws IllegalStateException
if one of the dispatch methods has been called and the startAsync method has not been called during the resulting dispatch, or if complete() was calledtrue
true
Servlet:JAVADOC:642ServletRequestjakarta.servlet.AsyncContext.getRequest
Gets the request that was used to initialize this AsyncContext by calling ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest, ServletResponse). true
true
Servlet:JAVADOC:927ServletRequestjakarta.servlet.AsyncContext.getRequest

throws IllegalStateException
if complete() or any of the dispatch() methods has been called in the asynchronous cycle true
true
Servlet:JAVADOC:643ServletResponsejakarta.servlet.AsyncContext.getResponse
Gets the response that was used to initialize this AsyncContext by calling ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest, ServletResponse). true
true
Servlet:JAVADOC:928ServletResponsejakarta.servlet.AsyncContext.getResponse

throws IllegalStateException
if complete() or any of the dispatch() methods has been called in the asynchronous cycle true
true
Servlet:JAVADOC:644booleanjakarta.servlet.AsyncContext.hasOriginalRequestAndResponse
Checks if this AsyncContext was initialized with the original request and response objects by calling ServletRequest#startAsync(), or if it was initialized with wrapped request and/or response objects using ServletRequest#startAsync(ServletRequest, ServletResponse). This information may be used by filters invoked in the outbound direction, after a request was put into asynchronous mode, to determine whether any request and/or response wrappers that they added during their inbound invocation need to be preserved for the duration of the asynchronous operation, or may be released.true
true
Servlet:JAVADOC:645voidjakarta.servlet.AsyncContext.start
( Runnable )
Causes the container to dispatch a thread to run the specified Runnable in the ServletContext that initialized this AsyncContext.true
true
Servlet:JAVADOC:649voidjakarta.servlet.AsyncListener.onComplete
( AsyncEvent )
Notifies this AsyncListener that an asynchronous operation has been completed.true
true
Servlet:JAVADOC:649.1voidjakarta.servlet.AsyncListener.onComplete
( AsyncEvent )
The AsyncContext corresponding to the asynchronous operation that has been completed may be obtained by calling AsyncEvent#getAsyncContext getAsyncContext on the given event.true
true
Servlet:JAVADOC:649.2voidjakarta.servlet.AsyncListener.onComplete
( AsyncEvent )
In addition, if this AsyncListener had been registered via a call to AsyncContext#addListener(AsyncListener, ServletRequest, ServletResponse), the supplied ServletRequest and ServletResponse objects may be retrieved by calling AsyncEvent#getSuppliedRequest getSuppliedRequest and AsyncEvent#getSuppliedResponse getSuppliedResponse, respectively, on the given event.true
true
Servlet:JAVADOC:650voidjakarta.servlet.AsyncListener.onComplete
( AsyncEvent )
throws IOException
if an I/O related error has occurred during the processing of the given AsyncEventtrue
true
Servlet:JAVADOC:651voidjakarta.servlet.AsyncListener.onTimeout
( AsyncEvent )
Notifies this AsyncListener that an asynchronous operation has timed out.true
true
Servlet:JAVADOC:651.1voidjakarta.servlet.AsyncListener.onTimeout
( AsyncEvent )
The AsyncContext corresponding to the asynchronous operation that has timed out may be obtained by calling AsyncEvent#getAsyncContext getAsyncContext on the given event.true
true
Servlet:JAVADOC:651.2voidjakarta.servlet.AsyncListener.onTimeout
( AsyncEvent )
In addition, if this AsyncListener had been registered via a call to AsyncContext#addListener(AsyncListener, ServletRequest, ServletResponse), the supplied ServletRequest and ServletResponse objects may be retrieved by calling AsyncEvent#getSuppliedRequest getSuppliedRequest and AsyncEvent#getSuppliedResponse getSuppliedResponse, respectively, on the given event.true
true
Servlet:JAVADOC:652voidjakarta.servlet.AsyncListener.onTimeout
( AsyncEvent )
throws IOException
if an I/O related error has occurred during the processing of the given AsyncEventtrue
true
Servlet:JAVADOC:653DispatcherTypejakarta.servlet.DispatcherType.valueOf
( String )

true
true
Servlet:JAVADOC:654DispatcherType[]jakarta.servlet.DispatcherType.values

true
true
Servlet:JAVADOC:655voidjakarta.servlet.FilterRegistration.addMappingForServletNames
( EnumSet ,
boolean ,
String[] )
Adds a filter mapping with the given servlet names and dispatcher types for the Filter represented by this FilterRegistration.true
true
Servlet:JAVADOC:655.1voidjakarta.servlet.FilterRegistration.addMappingForServletNames
( EnumSet ,
boolean ,
String[] )
Filter mappings are matched in the order in which they were added.true
true
Servlet:JAVADOC:655.2voidjakarta.servlet.FilterRegistration.addMappingForServletNames
( EnumSet ,
boolean ,
String[] )
Depending on the value of the isMatchAfter parameter, the given filter mapping will be considered after or before any declared filter mappings of the ServletContext from which this FilterRegistration was obtained.true
true
Servlet:JAVADOC:655.3voidjakarta.servlet.FilterRegistration.addMappingForServletNames
( EnumSet ,
boolean ,
String[] )
If this method is called multiple times, each successive call adds to the effects of the former.true
true
Servlet:JAVADOC:655.4voidjakarta.servlet.FilterRegistration.addMappingForServletNames
( EnumSet ,
boolean ,
String[] )
throws IllegalArgumentException
if servletNames is null or emptytrue
true
Servlet:JAVADOC:655.4voidjakarta.servlet.FilterRegistration.addMappingForServletNames
( EnumSet ,
boolean ,
String[] )
throws IllegalStateException
if the ServletContext from which this FilterRegistration was obtained has already been initializedtrue
true
Servlet:JAVADOC:656voidjakarta.servlet.FilterRegistration.addMappingForUrlPatterns
( EnumSet ,
boolean ,
String[] )
Adds a filter mapping with the given url patterns and dispatcher types for the Filter represented by this FilterRegistration.true
true
Servlet:JAVADOC:656.1voidjakarta.servlet.FilterRegistration.addMappingForUrlPatterns
( EnumSet ,
boolean ,
String[] )
Filter mappings are matched in the order in which they were added.true
true
Servlet:JAVADOC:656.2voidjakarta.servlet.FilterRegistration.addMappingForUrlPatterns
( EnumSet ,
boolean ,
String[] )
Depending on the value of the isMatchAfter parameter, the given filter mapping will be considered after or before any declared filter mappings of the ServletContext from which this FilterRegistration was obtained.true
true
Servlet:JAVADOC:656.3voidjakarta.servlet.FilterRegistration.addMappingForUrlPatterns
( EnumSet ,
boolean ,
String[] )
If this method is called multiple times, each successive call adds to the effects of the former.true
true
Servlet:JAVADOC:656.4voidjakarta.servlet.FilterRegistration.addMappingForUrlPatterns
( EnumSet ,
boolean ,
String[] )
throws IllegalArgumentException
if urlPatterns is null or emptytrue
true
Servlet:JAVADOC:656.5voidjakarta.servlet.FilterRegistration.addMappingForUrlPatterns
( EnumSet ,
boolean ,
String[] )
throws IllegalStateException
if the ServletContext from which this FilterRegistration was obtained has already been initializedtrue
true
Servlet:JAVADOC:657Collectionjakarta.servlet.FilterRegistration.getServletNameMappings
Gets the currently available servlet name mappings of the Filter represented by this FilterRegistration. Any changes to the returned Collection must not affect this FilterRegistration.true
true
Servlet:JAVADOC:658Collectionjakarta.servlet.FilterRegistration.getUrlPatternMappings
Gets the currently available URL pattern mappings of the Filter represented by this FilterRegistration. Any changes to the returned Collection must not affect this FilterRegistration.true
true
Servlet:JAVADOC:659Stringjakarta.servlet.Registration.getClassName
Gets the fully qualified class name of the Servlet or Filter that is represented by this Registration.true
true
Servlet:JAVADOC:660Stringjakarta.servlet.Registration.getInitParameter
( String )
Gets the value of the initialization parameter with the given name that will be used to initialize the Servlet or Filter represented by this Registration object.true
true
Servlet:JAVADOC:661Mapjakarta.servlet.Registration.getInitParameters
Gets an immutable (and possibly empty) Map containing the currently available initialization parameters that will be used to initialize the Servlet or Filter represented by this Registration object.true
true
Servlet:JAVADOC:662Stringjakarta.servlet.Registration.getName
Gets the name of the Servlet or Filter that is represented by this Registration.true
true
Servlet:JAVADOC:663booleanjakarta.servlet.Registration.setInitParameter
( String ,
String )
Sets the initialization parameter with the given name and value on the Servlet or Filter that is represented by this Registration.true
true
Servlet:JAVADOC:663.1booleanjakarta.servlet.Registration.setInitParameter
( String ,
String )
throws IllegalStateException
if the ServletContext from which this Registration was obtained has already been initialized true
true
Servlet:JAVADOC:663.2booleanjakarta.servlet.Registration.setInitParameter
( String ,
String )
throws IllegalArgumentException
if the given name or value is nulltrue
true
Servlet:JAVADOC:664Setjakarta.servlet.Registration.setInitParameters
( Map )
Sets the given initialization parameters on the Servlet or Filter that is represented by this Registration. The given map of initialization parameters is processed by-value, i.e., for each initialization parameter contained in the map, this method calls #setInitParameter(String,String). If that method would return false for any of the initialization parameters in the given map, no updates will be performed, and false will be returned. Likewise, if the map contains an initialization parameter with a null name or value, no updates will be performed, and an IllegalArgumentException will be thrown.true
true
Servlet:JAVADOC:664.1Setjakarta.servlet.Registration.setInitParameters
( Map )
throws IllegalStateException
if the ServletContext from which this Registration was obtained has already been initialized true
true
Servlet:JAVADOC:664.2Setjakarta.servlet.Registration.setInitParameters
( Map )
throws IllegalArgumentException
if the given map contains an initialization parameter with a null name or valuetrue
true
Servlet:JAVADOC:665voidjakarta.servlet.Registration.Dynamic.setAsyncSupported
( boolean )
Configures the Servlet or Filter represented by this dynamic Registration as supporting asynchronous operations or not. By default, servlet and filters do not support asynchronous operations. A call to this method overrides any previous setting.true
true
Servlet:JAVADOC:665.1voidjakarta.servlet.Registration.Dynamic.setAsyncSupported
( boolean )
throws IllegalStateException
if the ServletContext from which this dynamic Registration was obtained has already been initializedtrue
true
Servlet:JAVADOC:666voidjakarta.servlet.ServletContainerInitializer.onStartup
( Set ,
ServletContext )
Notifies this ServletContainerInitializer of the startup of the application represented by the given ServletContext.true
true
Servlet:JAVADOC:666.1voidjakarta.servlet.ServletContainerInitializer.onStartup
( Set ,
ServletContext )
If this ServletContainerInitializer is bundled in a JAR file inside the WEB-INF/lib directory of an application, its onStartup method will be invoked only once during the startup of the bundling application. true
true
Servlet:JAVADOC:666.2voidjakarta.servlet.ServletContainerInitializer.onStartup
( Set ,
ServletContext )
If this ServletContainerInitializer is bundled inside a JAR file outside of any WEB-INF/lib directory, but still discoverable by the runtime's service provider lookup mechanism, its onStartup method will be invoked every time an application is started.true
true
Servlet:JAVADOC:667voidjakarta.servlet.ServletContainerInitializer.onStartup
( Set ,
ServletContext )
throws ServletException
if an error has occurredtrue
true
Servlet:JAVADOC:668Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
String )
Adds the filter with the given name and class name to this servlet context. The registered filter may be further configured via the returned FilterRegistration object. The specified className will be loaded using the classloader associated with the application represented by this ServletContext.true
true
Servlet:JAVADOC:668.1Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
String )
If this ServletContext already contains a preliminary FilterRegistration for a filter with the given filterName, it will be completed (by assigning the name of the given filterClass to it) and returned. true
false
Servlet:JAVADOC:668.2Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
String )
This method supports resource injection if the given filterClass represents a Managed Bean. See the Jakarta EE platform and JSR 299 specifications for additional details about Managed Beans and resource injection. true
true
Servlet:JAVADOC:668.3Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
String )
Returns: a FilterRegistration object that may be used to further configure the registered filter,true
true
Servlet:JAVADOC:668.4Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
String )
Returns: or null if this ServletContext already contains a complete FilterRegistration for a filter with the given filterName.true
true
Servlet:JAVADOC:668.5Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
String )
throws IllegalStateException
if this ServletContext has already been initialized.true
true
Servlet:JAVADOC:951Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
String )
throws IllegalArgumentException
if filterName is null or an empty Stringtrue
true
Servlet:JAVADOC:668.6Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
String )
throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:669Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
Filter )
Registers the given filter instance with this ServletContext under the given filterName. The registered filter may be further configured via the returned FilterRegistration object.true
true
Servlet:JAVADOC:669.1Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
Filter )
If this ServletContext already contains a preliminary FilterRegistration for a filter with the given filterName, it will be completed (by assigning the name of the given filterClass to it) and returned. true
false
Servlet:JAVADOC:669.2Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
Filter )
This method supports resource injection if the given filterClass represents a Managed Bean. See the Jakarta EE platform and JSR 299 specifications for additional details about Managed Beans and resource injection. true
true
Servlet:JAVADOC:669.3Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
Filter )
Returns: a FilterRegistration object that may be used to further configure the registered filter.true
true
Servlet:JAVADOC:669.4Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
Filter )
Returns: or null if this ServletContext already contains a complete FilterRegistration for a filter with the given filterNametrue
true
Servlet:JAVADOC:669.5Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
Filter )
Returns: null if the same filter instance has already been registered with this or another ServletContext in the same container true
true
Servlet:JAVADOC:669.6Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
Filter )
throws IllegalStateException
if this ServletContext has already been initialized.true
true
Servlet:JAVADOC:952Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
Filter )
throws IllegalArgumentException
if filterName is null or an empty Stringtrue
true
Servlet:JAVADOC:669.7Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
Filter )
throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:670Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
Class )
Adds the filter with the given name and class type to this servlet context. The registered filter may be further configured via the returned FilterRegistration object.true
true
Servlet:JAVADOC:670.1Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
Class )
If this ServletContext already contains a preliminary FilterRegistration for a filter with the given filterName, it will be completed (by assigning the name of the given filterClass to it) and returned. true
false
Servlet:JAVADOC:670.2Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
Class )
This method supports resource injection if the given filterClass represents a Managed Bean. See the Jakarta EE platform and JSR 299 specifications for additional details about Managed Beans and resource injection. true
true
Servlet:JAVADOC:670.3Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
Class )
Returns: a FilterRegistration object that may be used to further configure the registered filter.true
true
Servlet:JAVADOC:670.4Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
Class )
Returns: or null if this ServletContext already contains a complete FilterRegistration for a filter with the given filterNametrue
true
Servlet:JAVADOC:670.5Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
Class )
throws IllegalStateException
if this ServletContext has already been initialized.true
true
Servlet:JAVADOC:953Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
Class )
throws IllegalArgumentException
if filterName is null or an empty Stringtrue
true
Servlet:JAVADOC:670.6Dynamicjakarta.servlet.ServletContext.addFilter
( String ,
Class )
throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:671voidjakarta.servlet.ServletContext.addListener
( String )
Adds the listener with the given class name to this ServletContext. The class with the given name will be loaded using the classloader associated with the application represented by this ServletContext, and must implement one or more of the following interfaces: ServletContextAttributeListenerServletRequestListenerServletRequestAttributeListenerjakarta.servlet.http.HttpSessionListenerjakarta.servlet.http.HttpSessionAttributeListener If this ServletContext was passed to ServletContainerInitializer#onStartup, then the class with the given name may also implement ServletContextListener, in addition to the interfaces listed above. As part of this method call, the container must load the class with the specified class name to ensure that it implements one of the required interfaces. If the class with the given name implements a listener interface whose invocation order corresponds to the declaration order (i.e., if it implements ServletRequestListener, ServletContextListener, or jakarta.servlet.http.HttpSessionListener), then the new listener will be added to the end of the ordered list of listeners of that interface.truetruetrue
Servlet:JAVADOC:671.1voidjakarta.servlet.ServletContext.addListener
( String )
Adds the listener with the given class name to this ServletContext. The class with the given name will be loaded using the classloader associated with the application represented by this ServletContext, and must implement one or more of the following interfaces: ServletContextAttributeListenertrue
true
Servlet:JAVADOC:671.2voidjakarta.servlet.ServletContext.addListener
( String )
Adds the listener with the given class name to this ServletContext. The class with the given name will be loaded using the classloader associated with the application represented by this ServletContext, and must implement one or more of the following interfaces: ServletRequestListenertrue
true
Servlet:JAVADOC:671.3voidjakarta.servlet.ServletContext.addListener
( String )
Adds the listener with the given class name to this ServletContext. The class with the given name will be loaded using the classloader associated with the application represented by this ServletContext, and must implement one or more of the following interfaces: ServletRequestAttributeListenertrue
true
Servlet:JAVADOC:671.4voidjakarta.servlet.ServletContext.addListener
( String )
Adds the listener with the given class name to this ServletContext. The class with the given name will be loaded using the classloader associated with the application represented by this ServletContext, and must implement one or more of the following interfaces: jakarta.servlet.http.HttpSessionListenertrue
true
Servlet:JAVADOC:671.5voidjakarta.servlet.ServletContext.addListener
( String )
Adds the listener with the given class name to this ServletContext. The class with the given name will be loaded using the classloader associated with the application represented by this ServletContext, and must implement one or more of the following interfaces: jakarta.servlet.http.HttpSessionAttributeListenertrue
true
Servlet:JAVADOC:671.6voidjakarta.servlet.ServletContext.addListener
( String )
Adds the listener with the given class name to this ServletContext. ... If this ServletContext was passed to ServletContainerInitializer#onStartup, then the class with the given name may also implement ServletContextListener, in addition to the interfaces listed above. true
true
Servlet:JAVADOC:671.7voidjakarta.servlet.ServletContext.addListener
( String )
If the class with the given name implements a listener interface whose invocation order corresponds to the declaration order (i.e., if it is an instance of ServletRequestListener, ServletContextListener, or jakarta.servlet.http.HttpSessionListener), then the listener will be added to the end of the ordered list of listeners of that interface.true
true
Servlet:JAVADOC:671.8voidjakarta.servlet.ServletContext.addListener
( String )
This method supports resource injection if the class with the given className represents a Managed Bean. See the Jakarta EE platform and JSR 299 specifications for additional details about Managed Beans and resource injection. true
true
Servlet:JAVADOC:671.9voidjakarta.servlet.ServletContext.addListener
( String )
throws IllegalArgumentException
if the class with the given name does not implement any of the above interfacestrue
true
Servlet:JAVADOC:671.10voidjakarta.servlet.ServletContext.addListener
( String )
throws IllegalArgumentException
or if it implements ServletContextListener and this ServletContext was not passed to ServletContainerInitializer.onStartup(java.util.Set>, jakarta.servlet.ServletContext)true
true
Servlet:JAVADOC:671.11voidjakarta.servlet.ServletContext.addListener
( String )
throws IllegalStateException
if this ServletContext has already been initializedtrue
true
Servlet:JAVADOC:671.12voidjakarta.servlet.ServletContext.addListener
( String )
throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:672voidjakarta.servlet.ServletContext.addListener
( EventListener )
Adds the given listener to this ServletContext. The given listener must be an instance of one or more of the following interfaces: ServletContextAttributeListenerServletRequestListenerServletRequestAttributeListenerjakarta.servlet.http.HttpSessionListenerjakarta.servlet.http.HttpSessionAttributeListener If this ServletContext was passed to ServletContainerInitializer#onStartup, then the given listener may also be an instance of ServletContextListener, in addition to the interfaces listed above. If the given listener is an instance of a listener interface whose invocation order corresponds to the declaration order (i.e., if it is an instance of ServletRequestListener, ServletContextListener, or jakarta.servlet.http.HttpSessionListener), then the listener will be added to the end of the ordered list of listeners of that interface.truetruetrue
Servlet:JAVADOC:672.1voidjakarta.servlet.ServletContext.addListener
( EventListener )
Adds the given listener to this ServletContext. The given listener must be an instance of one or more of the following interfaces: ServletContextAttributeListenertrue
true
Servlet:JAVADOC:672.2voidjakarta.servlet.ServletContext.addListener
( EventListener )
Adds the given listener to this ServletContext. The given listener must be an instance of one or more of the following interfaces: ServletRequestListenertrue
true
Servlet:JAVADOC:672.3voidjakarta.servlet.ServletContext.addListener
( EventListener )
Adds the given listener to this ServletContext. The given listener must be an instance of one or more of the following interfaces: ServletRequestAttributeListenertrue
true
Servlet:JAVADOC:672.4voidjakarta.servlet.ServletContext.addListener
( EventListener )
Adds the given listener to this ServletContext. The given listener must be an instance of one or more of the following interfaces: jakarta.servlet.http.HttpSessionListenertrue
true
Servlet:JAVADOC:672.5voidjakarta.servlet.ServletContext.addListener
( EventListener )
Adds the given listener to this ServletContext. The given listener must be an instance of one or more of the following interfaces: jakarta.servlet.http.HttpSessionAttributeListenertrue
true
Servlet:JAVADOC:672.6voidjakarta.servlet.ServletContext.addListener
( EventListener )
Adds the given listener to this ServletContext. ... If this ServletContext was passed to ServletContainerInitializer#onStartup, then the given listener may also be an instance of ServletContextListener, in addition to the interfaces listed above. true
true
Servlet:JAVADOC:672.7voidjakarta.servlet.ServletContext.addListener
( EventListener )
If the given listener is an instance of a listener interface whose invocation order corresponds to the declaration order (i.e., if it is an instance of ServletRequestListener, ServletContextListener, or jakarta.servlet.http.HttpSessionListener), then the listener will be added to the end of the ordered list of listeners of that interface.true
true
Servlet:JAVADOC:672.8voidjakarta.servlet.ServletContext.addListener
( EventListener )
This method supports resource injection if the given listenerClass represents a Managed Bean. See the Jakarta EE platform and JSR 299 specifications for additional details about Managed Beans and resource injection. true
true
Servlet:JAVADOC:672.9voidjakarta.servlet.ServletContext.addListener
( EventListener )
throws IllegalArgumentException
if the given listenerClass does not implement any of the above interfacestrue
true
Servlet:JAVADOC:672.10voidjakarta.servlet.ServletContext.addListener
( EventListener )
throws IllegalArgumentException
or if it implements ServletContextListener and this ServletContext was not passed to ServletContainerInitializer.onStartup(java.util.Set>, jakarta.servlet.ServletContext)true
true
Servlet:JAVADOC:672.11voidjakarta.servlet.ServletContext.addListener
( EventListener )
throws IllegalStateException
if this ServletContext has already been initializedtrue
true
Servlet:JAVADOC:672.12voidjakarta.servlet.ServletContext.addListener
( EventListener )
throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:673voidjakarta.servlet.ServletContext.addListener
( Class )
Adds a listener of the given class type to this ServletContext. The given listenerClass must implement one or more of the following interfaces: ServletContextAttributeListenerServletRequestListenerServletRequestAttributeListenerjakarta.servlet.http.HttpSessionListenerjakarta.servlet.http.HttpSessionAttributeListener If this ServletContext was passed to ServletContainerInitializer#onStartup, then the given listenerClass may also implement ServletContextListener, in addition to the interfaces listed above. If the given listenerClass</tt implements a listener interface whose invocation order corresponds to the declaration order (i.e., if it implements ServletRequestListener, ServletContextListener, or jakarta.servlet.http.HttpSessionListener), then the new listener will be added to the end of the ordered list of listeners of that interface.truetruetrue
Servlet:JAVADOC:673.1voidjakarta.servlet.ServletContext.addListener
( Class )
Adds a listener of the given class type to this ServletContext. The given listenerClass must implement one or more of the following interfaces: ServletContextAttributeListenertrue
true
Servlet:JAVADOC:673.2voidjakarta.servlet.ServletContext.addListener
( Class )
Adds a listener of the given class type to this ServletContext. The given listenerClass must implement one or more of the following interfaces: ServletRequestListenertrue
true
Servlet:JAVADOC:673.3voidjakarta.servlet.ServletContext.addListener
( Class )
Adds a listener of the given class type to this ServletContext. The given listenerClass must implement one or more of the following interfaces: ServletRequestAttributeListenertrue
true
Servlet:JAVADOC:673.4voidjakarta.servlet.ServletContext.addListener
( Class )
Adds a listener of the given class type to this ServletContext. The given listenerClass must implement one or more of the following interfaces: jakarta.servlet.http.HttpSessionListenertrue
true
Servlet:JAVADOC:673.5voidjakarta.servlet.ServletContext.addListener
( Class )
Adds a listener of the given class type to this ServletContext. The given listenerClass must implement one or more of the following interfaces: jakarta.servlet.http.HttpSessionAttributeListenertrue
true
Servlet:JAVADOC:673.6voidjakarta.servlet.ServletContext.addListener
( Class )
Adds a listener of the given class type to this ServletContext. ... If this ServletContext was passed to ServletContainerInitializer#onStartup, then the given listenerClass may also be implement ServletContextListener, in addition to the interfaces listed above. true
true
Servlet:JAVADOC:673.7voidjakarta.servlet.ServletContext.addListener
( Class )
If the given listenerClass<> implements a listener interface whose invocation order corresponds to the declaration order (i.e., if it is an instance of ServletRequestListener, ServletContextListener, or jakarta.servlet.http.HttpSessionListener), then the listener will be added to the end of the ordered list of listeners of that interface.true
true
Servlet:JAVADOC:673.8voidjakarta.servlet.ServletContext.addListener
( Class )
This method supports resource injection if the given listenerClass represents a Managed Bean. See the Jakarta EE platform and JSR 299 specifications for additional details about Managed Beans and resource injection. true
true
Servlet:JAVADOC:673.9voidjakarta.servlet.ServletContext.addListener
( Class )
throws IllegalArgumentException
if the given listenerClass does not implement any of the above interfacestrue
true
Servlet:JAVADOC:673.10voidjakarta.servlet.ServletContext.addListener
( Class )
throws IllegalArgumentException
or if it implements ServletContextListener and this ServletContext was not passed to ServletContainerInitializer.onStartup(java.util.Set>, jakarta.servlet.ServletContext)true
true
Servlet:JAVADOC:673.11voidjakarta.servlet.ServletContext.addListener
( Class )
throws IllegalStateException
if this ServletContext has already been initializedtrue
true
Servlet:JAVADOC:673.12voidjakarta.servlet.ServletContext.addListener
( Class )
throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:674Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
String )
Adds the servlet with the given name and class name to this servlet context. The registered servlet may be further configured via the returned ServletRegistration object. The specified className will be loaded using the classloader associated with the application represented by this ServletContext.true
true
Servlet:JAVADOC:674.1Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
String )
If this ServletContext already contains a preliminary ServletRegistration for a servlet with the given servletName, it will be completed (by assigning the given className to it) and returned. true
false
Servlet:JAVADOC:674.2Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
String )
This method introspects the class with the given className for the ServletSecurity, MultipartConfig, jakarta.annotation.security.RunAs, and jakarta.annotation.security.DeclareRoles annotations. true
true
Servlet:JAVADOC:674.3Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
String )
In addition, this method supports resource injection if the class with the given className represents a Managed Bean. See the Jakarta EE platform and JSR 299 specifications for additional details about Managed Beans and resource injection. true
true
Servlet:JAVADOC:674.4Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
String )
Returns: a ServletRegistration object that may be used to further configure the registered servlet, true
true
Servlet:JAVADOC:674.5Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
String )
Returns: null if this ServletContext already contains a complete ServletRegistration for a servlet with the given servletName true
true
Servlet:JAVADOC:674.6Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
String )
throws IllegalStateException
if this ServletContext has already been initialized true
true
Servlet:JAVADOC:674.7Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
String )
throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:675Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
Servlet )
Registers the given servlet instance with this ServletContext under the given servletName. The registered servlet may be further configured via the returned ServletRegistration object.true
true
Servlet:JAVADOC:675.1Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
Servlet )
If this ServletContext already contains a preliminary ServletRegistration for a servlet with the given servletName, it will be completed (by assigning the given className to it) and returned. true
false
Servlet:JAVADOC:675.2Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
Servlet )
This method introspects the class with the given className for the ServletSecurity, MultipartConfig, jakarta.annotation.security.RunAs, and jakarta.annotation.security.DeclareRoles annotations. true
true
Servlet:JAVADOC:675.3Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
Servlet )
In addition, this method supports resource injection if the class with the given className represents a Managed Bean. See the Jakarta EE platform and JSR 299 specifications for additional details about Managed Beans and resource injection. true
true
Servlet:JAVADOC:675.4Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
Servlet )
Returns: a ServletRegistration object that may be used to further configure the registered servlet, true
true
Servlet:JAVADOC:675.5Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
Servlet )
Returns: null if this ServletContext already contains a complete ServletRegistration for a servlet with the given servletName true
true
Servlet:JAVADOC:675.6Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
Servlet )
Returns: null or if the same servlet instance has already been registered with this or another ServletContext in the same container true
true
Servlet:JAVADOC:675.7Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
Servlet )
throws IllegalStateException
if this ServletContext has already been initialized true
true
Servlet:JAVADOC:949Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
Servlet )
throws IllegalStateException
if servletName is null or an empty Stringtrue
true
Servlet:JAVADOC:675.8Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
Servlet )
throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:675.9Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
Servlet )
throws IllegalArgumentException
if the given servletName is null or an empty Stringtrue
true
Servlet:JAVADOC:676Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
Class )
Adds the servlet with the given name and class type to this servlet context. The registered servlet may be further configured via the returned ServletRegistration object.true
true
Servlet:JAVADOC:676.1Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
Class )
If this ServletContext already contains a preliminary ServletRegistration for a servlet with the given servletName, it will be completed (by assigning the given className to it) and returned. true
false
Servlet:JAVADOC:676.2Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
Class )
This method introspects the class with the given className for the ServletSecurity, MultipartConfig, jakarta.annotation.security.RunAs, and jakarta.annotation.security.DeclareRoles annotations. true
true
Servlet:JAVADOC:676.3Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
Class )
In addition, this method supports resource injection if the class with the given className represents a Managed Bean. See the Jakarta EE platform and JSR 299 specifications for additional details about Managed Beans and resource injection. true
true
Servlet:JAVADOC:676.4Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
Class )
Returns: a ServletRegistration object that may be used to further configure the registered servlet, true
true
Servlet:JAVADOC:676.5Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
Class )
Returns: null if this ServletContext already contains a complete ServletRegistration for a servlet with the given servletName true
true
Servlet:JAVADOC:676.6Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
Class )
throws IllegalStateException
if this ServletContext has already been initialized true
true
Servlet:JAVADOC:950Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
Class )
throws IllegalArgumentException
if servletName is null or an empty Stringtrue
true
Servlet:JAVADOC:676.7Dynamicjakarta.servlet.ServletContext.addServlet
( String ,
Class )
throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:677Filterjakarta.servlet.ServletContext.createFilter
( Class )
Instantiates the given Filter class and performs any required resource injection into the new Filter instance before returning it. The returned Filter instance may be further customized before it is registered with this ServletContext via a call to #addFilter(String,Filter).true
true
Servlet:JAVADOC:677.1Filterjakarta.servlet.ServletContext.createFilter
( Class )
The given Filter class must define a zero argument constructor, which is used to instantiate it. true
true
Servlet:JAVADOC:677.2Filterjakarta.servlet.ServletContext.createFilter
( Class )
This method supports resource injection if the given clazz represents a Managed Bean. See the Jakarta EE platform and JSR 299 specifications for additional details about Managed Beans and resource injection. true
true
Servlet:JAVADOC:677.3Filterjakarta.servlet.ServletContext.createFilter
( Class )
throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:678Filterjakarta.servlet.ServletContext.createFilter
( Class )
throws ServletException
if an error occurs during the instantiation of, or resource injection into the new Filtertrue
true
Servlet:JAVADOC:679EventListenerjakarta.servlet.ServletContext.createListener
( Class )
Instantiates the given EventListener class and performs any required resource injection into the new EventListener instance before returning it. The specified EventListener class must implement at least one of the ServletContextListener, ServletContextAttributeListener, ServletRequestListener, ServletRequestAttributeListener, jakarta.servlet.http.HttpSessionListener, or jakarta.servlet.http.HttpSessionAttributeListener interfaces. The returned EventListener instance may be further customized before it is registered with this ServletContext via a call to #addListener(EventListener).truetruetrue
Servlet:JAVADOC:679.1EventListenerjakarta.servlet.ServletContext.createListener
( Class )
The given EventListener class must define a zero argument constructor, which is used to instantiate it. true
true
Servlet:JAVADOC:679.2EventListenerjakarta.servlet.ServletContext.createListener
( Class )
This method supports resource injection if the given clazz represents a Managed Bean. See the Jakarta EE platform and JSR 299 specifications for additional details about Managed Beans and resource injection. true
true
Servlet:JAVADOC:679.3EventListenerjakarta.servlet.ServletContext.createListener
( Class )
throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:679.4EventListenerjakarta.servlet.ServletContext.createListener
( Class )
throws IllegalArgumentException
if the specified EventListener class does not implement any of the ServletContextListener, ServletContextAttributeListener, ServletRequestListener, ServletRequestAttributeListener, HttpSessionListener, or HttpSessionAttributeListener interfaces.true
true
Servlet:JAVADOC:680EventListenerjakarta.servlet.ServletContext.createListener
( Class )
throws ServletException
if the given class fails to be instantiatedtrue
true
Servlet:JAVADOC:681Servletjakarta.servlet.ServletContext.createServlet
( Class )
Instantiates the given Servlet class. The returned Servlet instance may be further customized before it is registered with this ServletContext via a call to #addServlet(String,Servlet). The given Servlet class must define a zero argument constructor, which is used to instantiate it.true
true
Servlet:JAVADOC:681.1Servletjakarta.servlet.ServletContext.createServlet
( Class )
This method introspects the given clazz for the following annotations: ServletSecurity, MultipartConfig, jakarta.annotation.security.RunAs, and jakarta.annotation.security.DeclareRoles. true
true
Servlet:JAVADOC:681.2Servletjakarta.servlet.ServletContext.createServlet
( Class )
In addition, this method supports resource injection if the given clazz represents a Managed Bean. See the Jakarta EE platform and JSR 299 specifications for additional details about Managed Beans and resource injection. true
true
Servlet:JAVADOC:681.3Servletjakarta.servlet.ServletContext.createServlet
( Class )
throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:682Servletjakarta.servlet.ServletContext.createServlet
( Class )
throws ServletException
if the given class fails to be instantiatedtrue
true
Servlet:JAVADOC:683ClassLoaderjakarta.servlet.ServletContext.getClassLoader
Gets the class loader of the web application represented by this ServletContext.true
true
Servlet:JAVADOC:683.1ClassLoaderjakarta.servlet.ServletContext.getClassLoader
If a security manager exists, and the caller's class loader is not the same as, or an ancestor of the requested class loader, then the security manager's checkPermission method is called with a RuntimePermission("getClassLoader") permission to check whether access to the requested class loader should be granted.true
true
Servlet:JAVADOC:683.2ClassLoaderjakarta.servlet.ServletContext.getClassLoader

throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:683.3ClassLoaderjakarta.servlet.ServletContext.getClassLoader

throws SecurityException
if a security manager denies access to the requested class loadertrue
true
Servlet:JAVADOC:684Setjakarta.servlet.ServletContext.getDefaultSessionTrackingModes
Gets the session tracking modes that are supported by default for this ServletContext.true
true
Servlet:JAVADOC:684.1Setjakarta.servlet.ServletContext.getDefaultSessionTrackingModes

throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:685intjakarta.servlet.ServletContext.getEffectiveMajorVersion
Gets the major version of the Servlet specification that the application represented by this ServletContext is based on. The value returned may be different from #getMajorVersion, which returns the major version of the Servlet specification supported by the Servlet container.true
true
Servlet:JAVADOC:685.1intjakarta.servlet.ServletContext.getEffectiveMajorVersion

throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:686intjakarta.servlet.ServletContext.getEffectiveMinorVersion
Gets the minor version of the Servlet specification that the application represented by this ServletContext is based on. The value returned may be different from #getMinorVersion, which returns the minor version of the Servlet specification supported by the Servlet container.true
true
Servlet:JAVADOC:686.1intjakarta.servlet.ServletContext.getEffectiveMinorVersion

throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:687Setjakarta.servlet.ServletContext.getEffectiveSessionTrackingModes
Gets the session tracking modes that are in effect for this ServletContext. The session tracking modes in effect are those provided to #setSessionTrackingModes setSessionTrackingModes. By default, the session tracking modes returned by #getDefaultSessionTrackingModes getDefaultSessionTrackingModes are in effect.true
true
Servlet:JAVADOC:687.1Setjakarta.servlet.ServletContext.getEffectiveSessionTrackingModes

throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:688FilterRegistrationjakarta.servlet.ServletContext.getFilterRegistration
( String )
Gets the FilterRegistration corresponding to the filter with the given filterName.true
true
Servlet:JAVADOC:688.1FilterRegistrationjakarta.servlet.ServletContext.getFilterRegistration
( String )
throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:689Mapjakarta.servlet.ServletContext.getFilterRegistrations
Gets a (possibly empty) Map of the FilterRegistration objects (keyed by filter name) corresponding to all filters registered with this ServletContext. The returned Map includes the FilterRegistration objects corresponding to all declared and annotated filters, as well as the FilterRegistration objects corresponding to all filters that have been added via one of the addFilter methods.true
true
Servlet:JAVADOC:689.1Mapjakarta.servlet.ServletContext.getFilterRegistrations
Any changes to the returned Map must not affect this ServletContext.true
true
Servlet:JAVADOC:689.2Mapjakarta.servlet.ServletContext.getFilterRegistrations

throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:690JspConfigDescriptorjakarta.servlet.ServletContext.getJspConfigDescriptor
Gets the related configuration that was aggregated from the web.xml and web-fragment.xml descriptor files of the web application represented by this ServletContext.true
true
Servlet:JAVADOC:690.1JspConfigDescriptorjakarta.servlet.ServletContext.getJspConfigDescriptor

throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:691ServletRegistrationjakarta.servlet.ServletContext.getServletRegistration
( String )
Gets the ServletRegistration corresponding to the servlet with the given servletName.true
true
Servlet:JAVADOC:691.1ServletRegistrationjakarta.servlet.ServletContext.getServletRegistration
( String )
throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:692Mapjakarta.servlet.ServletContext.getServletRegistrations
Gets a (possibly empty) Map of the ServletRegistration objects (keyed by servlet name) corresponding to all servlets registered with this ServletContext. The returned Map includes the ServletRegistration objects corresponding to all declared and annotated servlets, as well as the ServletRegistration objects corresponding to all servlets that have been added via one of the addServlet methods.true
true
Servlet:JAVADOC:692.1Mapjakarta.servlet.ServletContext.getServletRegistrations
Any changes to the returned Map must not affect this ServletContext.true
true
Servlet:JAVADOC:692.2Mapjakarta.servlet.ServletContext.getServletRegistrations

throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:693SessionCookieConfigjakarta.servlet.ServletContext.getSessionCookieConfig
Gets the SessionCookieConfig object through which various properties of the session tracking cookies created on behalf of this ServletContext may be configured.true
true
Servlet:JAVADOC:693.1SessionCookieConfigjakarta.servlet.ServletContext.getSessionCookieConfig
Repeated invocations of this method will return the same SessionCookieConfig instance.true
true
Servlet:JAVADOC:693.2SessionCookieConfigjakarta.servlet.ServletContext.getSessionCookieConfig

throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:694booleanjakarta.servlet.ServletContext.setInitParameter
( String ,
String )
Sets the context initialization parameter with the given name and value on this ServletContext.true
true
Servlet:JAVADOC:694.1booleanjakarta.servlet.ServletContext.setInitParameter
( String ,
String )
throws IllegalStateException
if this ServletContext has already been initialized true
true
Servlet:JAVADOC:694.2booleanjakarta.servlet.ServletContext.setInitParameter
( String ,
String )
throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:695voidjakarta.servlet.ServletContext.setSessionTrackingModes
( Set )
Sets the session tracking modes that are to become effective for this ServletContext. The given sessionTrackingModes replaces any session tracking modes set by a previous invocation of this method on this ServletContext.true
true
Servlet:JAVADOC:695.1voidjakarta.servlet.ServletContext.setSessionTrackingModes
( Set )
throws UnsupportedOperationException
if this ServletContext was passed to the ServletContextListener.contextInitialized(jakarta.servlet.ServletContextEvent) method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with WebListenertrue
true
Servlet:JAVADOC:695.2voidjakarta.servlet.ServletContext.setSessionTrackingModes
( Set )
throws IllegalStateException
if this ServletContext has already been initializedtrue
true
Servlet:JAVADOC:695.3voidjakarta.servlet.ServletContext.setSessionTrackingModes
( Set )
throws IllegalArgumentException
if sessionTrackingModes specifies a combination of SessionTrackingMode.SSL with a session tracking mode other than SessionTrackingMode.SSL, or if sessionTrackingModes specifies a session tracking mode that is not supported by the servlet containertrue
true
Servlet:JAVADOC:696Setjakarta.servlet.ServletRegistration.addMapping
( String[] )
Adds a servlet mapping with the given URL patterns for the Servlet represented by this ServletRegistration..true
true
Servlet:JAVADOC:696.1Setjakarta.servlet.ServletRegistration.addMapping
( String[] )
If any of the specified URL patterns are already mapped to a different Servlet, no updates will be performed.true
true
Servlet:JAVADOC:696.2Setjakarta.servlet.ServletRegistration.addMapping
( String[] )
If this method is called multiple times, each successive call adds to the effects of the former. true
true
Servlet:JAVADOC:696.3Setjakarta.servlet.ServletRegistration.addMapping
( String[] )
throws IllegalArgumentException
if urlPatterns is null or emptytrue
true
Servlet:JAVADOC:696.4Setjakarta.servlet.ServletRegistration.addMapping
( String[] )
throws IllegalStateException
if the ServletContext from which this ServletRegistration was obtained has already been initializedtrue
true
Servlet:JAVADOC:697Collectionjakarta.servlet.ServletRegistration.getMappings
Gets the currently available mappings of the Servlet represented by this ServletRegistration. Any changes to the returned Collection must not affect this ServletRegistration.true
true
Servlet:JAVADOC:698voidjakarta.servlet.ServletRegistration.Dynamic.setLoadOnStartup
( int )
Sets the loadOnStartup priority on the Servlet represented by this dynamic ServletRegistration. A loadOnStartup value of greater than or equal to zero indicates to the container the initialization priority of the Servlet. In this case, the container must instantiate and initialize the Servlet during the initialization phase of the ServletContext, that is, after it has invoked all of the ServletContextListener objects configured for the ServletContext at their ServletContextListener#contextInitialized method.true
true
Servlet:JAVADOC:698.1voidjakarta.servlet.ServletRegistration.Dynamic.setLoadOnStartup
( int )
If loadOnStartup is a negative integer, the container is free to instantiate and initialize the Servlet lazily.true
true
Servlet:JAVADOC:698.2voidjakarta.servlet.ServletRegistration.Dynamic.setLoadOnStartup
( int )
The default value for loadOnStartup is -1.true
true
Servlet:JAVADOC:698.3voidjakarta.servlet.ServletRegistration.Dynamic.setLoadOnStartup
( int )
A call to this method overrides any previous setting.true
true
Servlet:JAVADOC:698.4voidjakarta.servlet.ServletRegistration.Dynamic.setLoadOnStartup
( int )
throws IllegalStateException
if the ServletContext from which this ServletRegistration was obtained has already been initializedtrue
true
Servlet:JAVADOC:701AsyncContextjakarta.servlet.ServletRequest.getAsyncContext
Gets the AsyncContext that was created or reinitialized by the most recent invocation of #startAsync or #startAsync(ServletRequest,ServletResponse) on this request.true
true
Servlet:JAVADOC:701.1AsyncContextjakarta.servlet.ServletRequest.getAsyncContext

throws IllegalStateException
if this request has not been put into asynchronous mode, i.e., if neither startAsync() nor startAsync(ServletRequest,ServletResponse) has been calledtrue
true
Servlet:JAVADOC:703DispatcherTypejakarta.servlet.ServletRequest.getDispatcherType
Gets the dispatcher type of this request. The dispatcher type of a request is used by the container to select the filters that need to be applied to the request: Only filters with matching dispatcher type and url patterns will be applied. Allowing a filter that has been configured for multiple dispatcher types to query a request for its dispatcher type allows the filter to process the request differently depending on its dispatcher type. The initial dispatcher type of a request is defined as DispatcherType.REQUEST. The dispatcher type of a request dispatched via RequestDispatcher#forward(ServletRequest, ServletResponse) or RequestDispatcher#include(ServletRequest, ServletResponse) is given as DispatcherType.FORWARD or DispatcherType.INCLUDE, respectively, while the dispatcher type of an asynchronous request dispatched via one of the AsyncContext#dispatch methods is given as DispatcherType.ASYNC. Finally, the dispatcher type of a request dispatched to an error page by the container's error handling mechanism is given as DispatcherType.ERROR.true
true
Servlet:JAVADOC:704Stringjakarta.servlet.ServletRequest.getLocalAddr
Returns the Internet Protocol (IP) address of the interface on which the request was received.true
true
Servlet:JAVADOC:705intjakarta.servlet.ServletRequest.getRemotePort
Returns the Internet Protocol (IP) source port of the client or last proxy that sent the request.true
true
Servlet:JAVADOC:706ServletContextjakarta.servlet.ServletRequest.getServletContext
Gets the servlet context to which this ServletRequest was last dispatched.true
true
Servlet:JAVADOC:707booleanjakarta.servlet.ServletRequest.isAsyncStarted
Checks if this request has been put into asynchronous mode. A ServletRequest is put into asynchronous mode by calling #startAsync or #startAsync(ServletRequest,ServletResponse) on it. This method returns false if this request was put into asynchronous mode, but has since been dispatched using one of the AsyncContext#dispatch methods or released from asynchronous mode via a call to AsyncContext#complete.true
true
Servlet:JAVADOC:708booleanjakarta.servlet.ServletRequest.isAsyncSupported
Checks if this request supports asynchronous operation. Asynchronous operation is disabled for this request if this request is within the scope of a filter or servlet that has not been annotated or flagged in the deployment descriptor as being able to support asynchronous handling.true
true
Servlet:JAVADOC:710AsyncContextjakarta.servlet.ServletRequest.startAsync
Puts this request into asynchronous mode, and initializes its AsyncContext with the original (unwrapped) ServletRequest and ServletResponse objects and the timeout as returned by #getAsyncTimeout.true
true
Servlet:JAVADOC:710.1AsyncContextjakarta.servlet.ServletRequest.startAsync
This will delay committal of the associated response until AsyncContext#complete is called on the returned AsyncContext, or the AsyncContext times out.true
true
Servlet:JAVADOC:710.2AsyncContextjakarta.servlet.ServletRequest.startAsync
Calling AsyncContext#hasOriginalRequestAndResponse() on the returned AsyncContext will return true.true
true
Servlet:JAVADOC:710.3AsyncContextjakarta.servlet.ServletRequest.startAsync
Any filters invoked in the outbound direction after this request was put into asynchronous mode may use this as an indication that any request and/or response wrappers that they added during their inbound invocation need not stay around for the duration of the asynchronous operation, and therefore any of their associated resources may be released.true
true
Servlet:JAVADOC:710.4AsyncContextjakarta.servlet.ServletRequest.startAsync
This method clears the list of AsyncListener instances (if any) that were registered with the AsyncContext returned by the previous call to one of the startAsync methods, after calling each AsyncListener at its onStartAsync method. true
true
Servlet:JAVADOC:710.5AsyncContextjakarta.servlet.ServletRequest.startAsync
Subsequent invocations of this method, or its overloaded variant, will return the same AsyncContext instance, reinitialized as appropriate.true
true
Servlet:JAVADOC:710.6AsyncContextjakarta.servlet.ServletRequest.startAsync
The timer for async timeouts will not start until the container-initiated dispatch that called startAsync has returned to the container. If a timeout occurs and none of the AsyncListener#onTimeout(AsyncEvent) handlers call AsyncContext#complete or one of the AsyncContext#dispatch methods, the container must call AsyncContext#complete. true
true
Servlet:JAVADOC:711AsyncContextjakarta.servlet.ServletRequest.startAsync

throws IllegalStateException
if this request is within the scope of a filter or servlet that does not support asynchronous operation, that is, if #isAsyncSupported returns false, or if this method is called again outside the scope of a dispatch resulting from an AsyncContext#dispatch, or if the response has already been closedtrue
true
Servlet:JAVADOC:712AsyncContextjakarta.servlet.ServletRequest.startAsync
( ServletRequest ,
ServletResponse )
Puts this request into asynchronous mode, and initializes its AsyncContext with the given request and response objects.true
true
Servlet:JAVADOC:712.1AsyncContextjakarta.servlet.ServletRequest.startAsync
( ServletRequest ,
ServletResponse )
The ServletRequest and ServletResponse arguments must be the same instances, or instances of ServletRequestWrapper and ServletResponseWrapper that wrap them, that were passed to the service method of the Servlet or the doFilter method of the Filter, respectively, in whose scope this method is being called.true
true
Servlet:JAVADOC:712.2AsyncContextjakarta.servlet.ServletRequest.startAsync
( ServletRequest ,
ServletResponse )
Calling this method will cause committal of the associated response to be delayed until AsyncContext.complete() is called on the returned AsyncContext, or the asynchronous operation has timed out.true
true
Servlet:JAVADOC:712.3AsyncContextjakarta.servlet.ServletRequest.startAsync
( ServletRequest ,
ServletResponse )
Calling AsyncContext.hasOriginalRequestAndResponse() on the returned AsyncContext will return false, unless the passed in ServletRequest and ServletResponse arguments are the original ones or do not carry any application-provided wrappers.true
true
Servlet:JAVADOC:712.4AsyncContextjakarta.servlet.ServletRequest.startAsync
( ServletRequest ,
ServletResponse )
Any filters invoked in the outbound direction after this request was put into asynchronous mode may use this as an indication that some of the request and/or response wrappers that they added during their inbound invocation may need to stay in place for the duration of the asynchronous operation, and their associated resources may not be released. A ServletRequestWrapper applied during the inbound invocation of a filter may be released by the outbound invocation of the filter only if the given servletRequest, which is used to initialize the AsyncContext and will be returned by a call to AsyncContext.getRequest(), does not contain said ServletRequestWrapper. The same holds true for ServletResponseWrapper instances.true
true
Servlet:JAVADOC:712.5AsyncContextjakarta.servlet.ServletRequest.startAsync
( ServletRequest ,
ServletResponse )
This method clears the list of AsyncListener instances (if any) that were registered with the AsyncContext returned by the previous call to one of the startAsync methods, after calling each AsyncListener at its onStartAsync method.true
true
Servlet:JAVADOC:712.6AsyncContextjakarta.servlet.ServletRequest.startAsync
( ServletRequest ,
ServletResponse )
Subsequent invocations of this method, or its zero-argument variant, will return the same AsyncContext instance, reinitialized as appropriate.true
true
Servlet:JAVADOC:712.7AsyncContextjakarta.servlet.ServletRequest.startAsync
( ServletRequest ,
ServletResponse )
If a call to this method is followed by a call to its zero-argument variant, the specified (and possibly wrapped) request and response objects will remain locked in on the returned AsyncContext. true
true
Servlet:JAVADOC:713AsyncContextjakarta.servlet.ServletRequest.startAsync
( ServletRequest ,
ServletResponse )
throws IllegalStateException
if this request is within the scope of a filter or servlet that does not support asynchronous operation, that is, if #isAsyncSupported returns false, or if this method is called again outside the scope of a dispatch resulting from an AsyncContext#dispatch, or if the response has already been closedtrue
true
Servlet:JAVADOC:716AsyncContextjakarta.servlet.ServletRequestWrapper.getAsyncContext
Gets the AsyncContext that was created or reinitialized by the most recent invocation of #startAsync or #startAsync(ServletRequest,ServletResponse) on the wrapped request.true
true
Servlet:JAVADOC:716.1AsyncContextjakarta.servlet.ServletRequestWrapper.getAsyncContext

throws IllegalStateException
if this request has not been put into asynchronous mode, i.e., if neither startAsync() nor startAsync(ServletRequest,ServletResponse) has been calledtrue
true
Servlet:JAVADOC:718DispatcherTypejakarta.servlet.ServletRequestWrapper.getDispatcherType
Gets the dispatcher type of the wrapped request.true
true
Servlet:JAVADOC:719Stringjakarta.servlet.ServletRequestWrapper.getLocalAddr
The default behavior of this method is to return getLocalAddr() on the wrapped request object.true
true
Servlet:JAVADOC:720intjakarta.servlet.ServletRequestWrapper.getRemotePort
The default behavior of this method is to return getRemotePort() on the wrapped request object.true
true
Servlet:JAVADOC:721ServletContextjakarta.servlet.ServletRequestWrapper.getServletContext
Gets the servlet context to which the wrapped servlet request was last dispatched.true
true
Servlet:JAVADOC:722booleanjakarta.servlet.ServletRequestWrapper.isAsyncStarted
Checks if the wrapped request has been put into asynchronous mode.true
true
Servlet:JAVADOC:723booleanjakarta.servlet.ServletRequestWrapper.isAsyncSupported
Checks if the wrapped request supports asynchronous operation.true
true
Servlet:JAVADOC:724booleanjakarta.servlet.ServletRequestWrapper.isWrapperFor
( ServletRequest )
Checks (recursively) if this ServletRequestWrapper wraps the given ServletRequest instance.true
true
Servlet:JAVADOC:725booleanjakarta.servlet.ServletRequestWrapper.isWrapperFor
( Class )
Checks (recursively) if this ServletRequestWrapper wraps a ServletRequest of the given class type.true
true
Servlet:JAVADOC:725.1booleanjakarta.servlet.ServletRequestWrapper.isWrapperFor
( Class )
throws IllegalArgumentException
if the given class does not implement ServletRequesttrue
true
Servlet:JAVADOC:727AsyncContextjakarta.servlet.ServletRequestWrapper.startAsync
Puts the wrapped request into asynchronous mode, and initializes its AsyncContext with the original ServletRequest and ServletResponse objects and the timeout derived according to the rules laid out in #setAsyncTimeout.true
true
Servlet:JAVADOC:728AsyncContextjakarta.servlet.ServletRequestWrapper.startAsync

throws IllegalStateException
if this request is within the scope of a filter or servlet that does not support asynchronous operation, that is, if #isAsyncSupported returns false, or if this method is called again outside the scope of a dispatch resulting from an AsyncContext#dispatch, or if the response has already been closedtrue
true
Servlet:JAVADOC:729AsyncContextjakarta.servlet.ServletRequestWrapper.startAsync
( ServletRequest ,
ServletResponse )
Puts the wrapped request into asynchronous mode, and initializes its AsyncContext with the given request and response objects and the timeout derived according to the rules laid out in #setAsyncTimeout.true
true
Servlet:JAVADOC:730AsyncContextjakarta.servlet.ServletRequestWrapper.startAsync
( ServletRequest ,
ServletResponse )
throws IllegalStateException
if this request is within the scope of a filter or servlet that does not support asynchronous operation, that is, if #isAsyncSupported returns false, or if this method is called again outside the scope of a dispatch resulting from an AsyncContext#dispatch, or if the response has already been closedtrue
true
Servlet:JAVADOC:731booleanjakarta.servlet.ServletResponseWrapper.isWrapperFor
( ServletResponse )
Checks (recursively) if this ServletResponseWrapper wraps the given ServletResponse instance.true
true
Servlet:JAVADOC:732booleanjakarta.servlet.ServletResponseWrapper.isWrapperFor
( Class )
Checks (recursively) if this ServletResponseWrapper wraps a ServletResponse of the given class type.true
true
Servlet:JAVADOC:733Stringjakarta.servlet.SessionCookieConfig.getComment
Gets the comment that will be assigned to any session tracking cookies created on behalf of the ServletContext from which this SessionCookieConfig was acquired.true
true
Servlet:JAVADOC:734Stringjakarta.servlet.SessionCookieConfig.getDomain
Gets the domain name that will be assigned to any session tracking cookies created on behalf of the ServletContext from which this SessionCookieConfig was acquired.true
true
Servlet:JAVADOC:735intjakarta.servlet.SessionCookieConfig.getMaxAge
Gets the lifetime (in seconds) of the session tracking cookies created on behalf of the ServletContext from which this SessionCookieConfig was acquired. By default, -1 is returned.true
true
Servlet:JAVADOC:736Stringjakarta.servlet.SessionCookieConfig.getName
Gets the name that will be assigned to any session tracking cookies created on behalf of the ServletContext from which this SessionCookieConfig was acquired. By default, JSESSIONID will be used as the cookie name.true
true
Servlet:JAVADOC:737Stringjakarta.servlet.SessionCookieConfig.getPath
Gets the path that will be assigned to any session tracking cookies created on behalf of the ServletContext from which this SessionCookieConfig was acquired. By default, the context path of the ServletContext from which this SessionCookieConfig was acquired will be used.true
true
Servlet:JAVADOC:738booleanjakarta.servlet.SessionCookieConfig.isHttpOnly
Checks if the session tracking cookies created on behalf of the ServletContext from which this SessionCookieConfig was acquired will be marked as HttpOnly.true
true
Servlet:JAVADOC:739booleanjakarta.servlet.SessionCookieConfig.isSecure
Checks if the session tracking cookies created on behalf of the ServletContext from which this SessionCookieConfig was acquired will be marked as secure even if the request that initiated the corresponding session is using plain HTTP instead of HTTPS.true
true
Servlet:JAVADOC:740voidjakarta.servlet.SessionCookieConfig.setComment
( String )
Sets the comment that will be assigned to any session tracking cookies created on behalf of the ServletContext from which this SessionCookieConfig was acquired.true
true
Servlet:JAVADOC:741voidjakarta.servlet.SessionCookieConfig.setDomain
( String )
Sets the domain name that will be assigned to any session tracking cookies created on behalf of the ServletContext from which this SessionCookieConfig was acquired.true
true
Servlet:JAVADOC:742voidjakarta.servlet.SessionCookieConfig.setHttpOnly
( boolean )
Marks or unmarks the session tracking cookies created on behalf of the ServletContext from which this SessionCookieConfig was acquired as HttpOnly. A cookie is marked as HttpOnly by adding the HttpOnly attribute to it. HttpOnly cookies are not supposed to be exposed to client-side scripting code, and may therefore help mitigate certain kinds of cross-site scripting attacks.true
true
Servlet:JAVADOC:743voidjakarta.servlet.SessionCookieConfig.setMaxAge
( int )
Sets the lifetime (in seconds) for the session tracking cookies created on behalf of the ServletContext from which this SessionCookieConfig was acquired.true
true
Servlet:JAVADOC:744voidjakarta.servlet.SessionCookieConfig.setName
( String )
Sets the name that will be assigned to any session tracking cookies created on behalf of the ServletContext from which this SessionCookieConfig was acquired. NOTE: Changing the name of session tracking cookies may break other tiers (for example, a load balancing frontend) that assume the cookie name to be equal to the default JSESSIONID, and therefore should only be done cautiously.true
true
Servlet:JAVADOC:745voidjakarta.servlet.SessionCookieConfig.setPath
( String )
Sets the path that will be assigned to any session tracking cookies created on behalf of the ServletContext from which this SessionCookieConfig was acquired.true
true
Servlet:JAVADOC:746voidjakarta.servlet.SessionCookieConfig.setSecure
( boolean )
Marks or unmarks the session tracking cookies created on behalf of the ServletContext from which this SessionCookieConfig was acquired as secure. One use case for marking a session tracking cookie as secure, even though the request that initiated the session came over HTTP, is to support a topology where the web container is front-ended by an SSL offloading load balancer. In this case, the traffic between the client and the load balancer will be over HTTPS, whereas the traffic between the load balancer and the web container will be over HTTP.true
true
Servlet:JAVADOC:747SessionTrackingModejakarta.servlet.SessionTrackingMode.valueOf
( String )

true
true
Servlet:JAVADOC:748SessionTrackingMode[]jakarta.servlet.SessionTrackingMode.values

true
true
Servlet:JAVADOC:749booleanjakarta.servlet.http.Cookie.isHttpOnly
Checks whether this cookie has been marked as HttpOnly.true
true
Servlet:JAVADOC:750voidjakarta.servlet.http.Cookie.setHttpOnly
( boolean )
Marks or unmarks this cookie as HttpOnly. If isHttpOnly is set to true, this cookie is marked as HttpOnly, by adding the HttpOnly attribute to it. HttpOnly cookies are not supposed to be exposed to client-side scripting code, and may therefore help mitigate certain kinds of cross-site scripting attacks.true
true
Servlet:JAVADOC:751booleanjakarta.servlet.http.HttpServletRequest.authenticate
( HttpServletResponse )
Use the container login mechanism configured for the ServletContext to authenticate the user making this request. This method may modify and commit the argument HttpServletResponse.true
true
Servlet:JAVADOC:752booleanjakarta.servlet.http.HttpServletRequest.authenticate
( HttpServletResponse )
throws IOException
if an error occurs while writing the response.true
true
Servlet:JAVADOC:753booleanjakarta.servlet.http.HttpServletRequest.authenticate
( HttpServletResponse )
throws ServletException
if the authentication failed and the caller is responsible for handling the error (i.e., the underlying login mechanism did NOT establish the message and HTTP status code to be returned to the user).true
true
Servlet:JAVADOC:754Partjakarta.servlet.http.HttpServletRequest.getPart
( String )
Gets the Part with the given name.true
true
Servlet:JAVADOC:755Partjakarta.servlet.http.HttpServletRequest.getPart
( String )
throws IOException
if an I/O error occurred during the retrieval of the requested Parttrue
true
Servlet:JAVADOC:756Partjakarta.servlet.http.HttpServletRequest.getPart
( String )
throws ServletException
if this request is not of type multipart/form-datatrue
true
Servlet:JAVADOC:757Collectionjakarta.servlet.http.HttpServletRequest.getParts
Gets all the Part components of this request, provided that it is of type multipart/form-data. If this request is of type multipart/form-data, but does not contain any Part components, the returned Collection will be empty. Any changes to the returned Collection must not affect this HttpServletRequest.true
true
Servlet:JAVADOC:758Collectionjakarta.servlet.http.HttpServletRequest.getParts

throws IOException
if an I/O error occurred during the retrieval of the Part components of this requesttrue
true
Servlet:JAVADOC:759Collectionjakarta.servlet.http.HttpServletRequest.getParts

throws ServletException
if this request is not of type multipart/form-datatrue
true
Servlet:JAVADOC:760voidjakarta.servlet.http.HttpServletRequest.login
( String ,
String )
Validate the provided username and password in the password validation realm used by the web container login mechanism configured for the ServletContext. This method returns without throwing a ServletException when the login mechanism configured for the ServletContext supports username password validation, and when, at the time of the call to login, the identity of the caller of the request had not been established (i.e, all of getUserPrincipal, getRemoteUser, and getAuthType return null), and when validation of the provided credentials is successful. Otherwise, this method throws a ServletException as described below. When this method returns without throwing an exception, it must have established non-null values as the values returned by getUserPrincipal, getRemoteUser, and getAuthType.true
true
Servlet:JAVADOC:761voidjakarta.servlet.http.HttpServletRequest.login
( String ,
String )
throws ServletException
if the configured login mechanism does not support username password authentication, or if a non-null caller identity had already been established (prior to the call to login), or if validation of the provided username and password fails.true
true
Servlet:JAVADOC:762voidjakarta.servlet.http.HttpServletRequest.logout
Establish null as the value returned when getUserPrincipal, getRemoteUser, and getAuthType is called on the request.true
true
Servlet:JAVADOC:763voidjakarta.servlet.http.HttpServletRequest.logout

throws ServletException
if logout failstrue
true
Servlet:JAVADOC:764booleanjakarta.servlet.http.HttpServletRequestWrapper.authenticate
( HttpServletResponse )
The default behavior of this method is to call authenticate on the wrapped request object.true
true
Servlet:JAVADOC:765booleanjakarta.servlet.http.HttpServletRequestWrapper.authenticate
( HttpServletResponse )
throws IOException

true
true
Servlet:JAVADOC:766booleanjakarta.servlet.http.HttpServletRequestWrapper.authenticate
( HttpServletResponse )
throws ServletException

true
true
Servlet:JAVADOC:767Partjakarta.servlet.http.HttpServletRequestWrapper.getPart
( String )
The default behavior of this method is to call getPart on the wrapped request object.true
true
Servlet:JAVADOC:768Partjakarta.servlet.http.HttpServletRequestWrapper.getPart
( String )
throws IOException

true
true
Servlet:JAVADOC:769Partjakarta.servlet.http.HttpServletRequestWrapper.getPart
( String )
throws ServletException

true
true
Servlet:JAVADOC:770Collectionjakarta.servlet.http.HttpServletRequestWrapper.getParts
The default behavior of this method is to call getParts on the wrapped request object. Any changes to the returned Collection must not affect this HttpServletRequestWrapper.true
true
Servlet:JAVADOC:771Collectionjakarta.servlet.http.HttpServletRequestWrapper.getParts

throws IOException

true
true
Servlet:JAVADOC:772Collectionjakarta.servlet.http.HttpServletRequestWrapper.getParts

throws ServletException

true
true
Servlet:JAVADOC:773voidjakarta.servlet.http.HttpServletRequestWrapper.login
( String ,
String )
The default behavior of this method is to call login on the wrapped request object.true
true
Servlet:JAVADOC:774voidjakarta.servlet.http.HttpServletRequestWrapper.login
( String ,
String )
throws ServletException

true
true
Servlet:JAVADOC:775voidjakarta.servlet.http.HttpServletRequestWrapper.logout
The default behavior of this method is to call login on the wrapped request object.true
true
Servlet:JAVADOC:776voidjakarta.servlet.http.HttpServletRequestWrapper.logout

throws ServletException

true
true
Servlet:JAVADOC:777Stringjakarta.servlet.http.HttpServletResponse.getHeader
( String )
Gets the value of the response header with the given name. If a response header with the given name exists and contains multiple values, the value that was added first will be returned. This method considers only response headers set or added via #setHeader, #addHeader, #setDateHeader, #addDateHeader, #setIntHeader, or #addIntHeader, respectively.true
true
Servlet:JAVADOC:778Collectionjakarta.servlet.http.HttpServletResponse.getHeaderNames
Gets the names of the headers of this response. This method considers only response headers set or added via #setHeader, #addHeader, #setDateHeader, #addDateHeader, #setIntHeader, or #addIntHeader, respectively. Any changes to the returned Collection must not affect this HttpServletResponse.true
true
Servlet:JAVADOC:779Collectionjakarta.servlet.http.HttpServletResponse.getHeaders
( String )
Gets the values of the response header with the given name. This method considers only response headers set or added via #setHeader, #addHeader, #setDateHeader, #addDateHeader, #setIntHeader, or #addIntHeader, respectively. Any changes to the returned Collection must not affect this HttpServletResponse.true
true
Servlet:JAVADOC:780intjakarta.servlet.http.HttpServletResponse.getStatus
Gets the current status code of this response.true
true
Servlet:JAVADOC:781Stringjakarta.servlet.http.HttpServletResponseWrapper.getHeader
( String )
The default behaviour of this method is to call HttpServletResponse#getHeader on the wrapped response object.true
true
Servlet:JAVADOC:782Collectionjakarta.servlet.http.HttpServletResponseWrapper.getHeaderNames
The default behaviour of this method is to call HttpServletResponse#getHeaderNames on the wrapped response object. Any changes to the returned Collection must not affect this HttpServletResponseWrapper.true
true
Servlet:JAVADOC:783Collectionjakarta.servlet.http.HttpServletResponseWrapper.getHeaders
( String )
The default behaviour of this method is to call HttpServletResponse#getHeaders on the wrapped response object. Any changes to the returned Collection must not affect this HttpServletResponseWrapper.true
true
Servlet:JAVADOC:784intjakarta.servlet.http.HttpServletResponseWrapper.getStatus
The default behaviour of this method is to call HttpServletResponse#getStatus on the wrapped response object.true
true
Servlet:JAVADOC:785voidjakarta.servlet.http.Part.delete
Deletes the underlying storage for a file item, including deleting any associated temporary disk file.true
true
Servlet:JAVADOC:786voidjakarta.servlet.http.Part.delete

throws IOException
if an error occurs.true
true
Servlet:JAVADOC:787Stringjakarta.servlet.http.Part.getContentType
Gets the content type of this part.true
true
Servlet:JAVADOC:788Stringjakarta.servlet.http.Part.getHeader
( String )
Returns the value of the specified mime header as a String. If the Part did not include a header of the specified name, this method returns null. If there are multiple headers with the same name, this method returns the first header in the part. The header name is case insensitive. You can use this method with any request header.true
true
Servlet:JAVADOC:789Collectionjakarta.servlet.http.Part.getHeaderNames
Gets the header names of this Part. Some servlet containers do not allow servlets to access headers using this method, in which case this method returns null Any changes to the returned Collection must not affect this Part.true
true
Servlet:JAVADOC:790Collectionjakarta.servlet.http.Part.getHeaders
( String )
Gets the values of the Part header with the given name. Any changes to the returned Collection must not affect this Part. Part header names are case insensitive.true
true
Servlet:JAVADOC:791InputStreamjakarta.servlet.http.Part.getInputStream
Gets the content of this part as an InputStreamtrue
true
Servlet:JAVADOC:792InputStreamjakarta.servlet.http.Part.getInputStream

throws IOException
If an error occurs in retrieving the contet as an InputStreamtrue
true
Servlet:JAVADOC:793Stringjakarta.servlet.http.Part.getName
Gets the name of this parttrue
true
Servlet:JAVADOC:794longjakarta.servlet.http.Part.getSize
Returns the size of this fille.true
true
Servlet:JAVADOC:955Stringjakarta.servlet.http.Part.getSubmittedFileName
Gets the file name specified by the clienttrue
true
Servlet:JAVADOC:795voidjakarta.servlet.http.Part.write
( String )
A convenience method to write this uploaded item to disk. This method is not guaranteed to succeed if called more than once for the same part. This allows a particular implementation to use, for example, file renaming, where possible, rather than copying all of the underlying data, thus gaining a significant performance benefit.true
true
Servlet:JAVADOC:796voidjakarta.servlet.http.Part.write
( String )
throws IOException
if an error occurs.true
true
Servlet:JAVADOC:797Class[]jakarta.servlet.annotation.HandlesTypes.value
The classes in which a jakarta.servlet.ServletContainerInitializer ServletContainerInitializer has expressed interest. If an implementation of ServletContainerInitializer specifies this annotation, the Servlet container must pass the Set of application classes that extend, implement, or have been annotated with the class types listed by this annotation to the jakarta.servlet.ServletContainerInitializer#onStartup method of the ServletContainerInitializer (if no matching classes are found, null must be passed instead)true
true
Servlet:JAVADOC:798intjakarta.servlet.annotation.MultipartConfig.fileSizeThreshold
The size threshold after which the file will be written to disktrue
true
Servlet:JAVADOC:799Stringjakarta.servlet.annotation.MultipartConfig.location
The directory location where files will be storedtrue
true
Servlet:JAVADOC:800longjakarta.servlet.annotation.MultipartConfig.maxFileSize
The maximum size allowed for uploaded files. The default is -1L, which means unlimited.true
true
Servlet:JAVADOC:801longjakarta.servlet.annotation.MultipartConfig.maxRequestSize
The maximum size allowed for multipart/form-data requests The default is -1L, which means unlimited.true
true
Servlet:JAVADOC:802booleanjakarta.servlet.annotation.WebFilter.asyncSupported
Declares whether the filter supports asynchronous operation mode.true
true
Servlet:JAVADOC:803Stringjakarta.servlet.annotation.WebFilter.description
The description of the filtertrue
true
Servlet:JAVADOC:804DispatcherType[]jakarta.servlet.annotation.WebFilter.dispatcherTypes
The dispatcher types to which the filter appliestrue
true
Servlet:JAVADOC:805Stringjakarta.servlet.annotation.WebFilter.displayName
The display name of the filtertrue
true
Servlet:JAVADOC:806Stringjakarta.servlet.annotation.WebFilter.filterName
The name of the filtertrue
true
Servlet:JAVADOC:807WebInitParam[]jakarta.servlet.annotation.WebFilter.initParams
The init parameters of the filtertrue
true
Servlet:JAVADOC:808Stringjakarta.servlet.annotation.WebFilter.largeIcon
The large-icon of the filtertrue
true
Servlet:JAVADOC:809String[]jakarta.servlet.annotation.WebFilter.servletNames
The names of the servlets to which the filter applies.true
true
Servlet:JAVADOC:810Stringjakarta.servlet.annotation.WebFilter.smallIcon
The small-icon of the filtertrue
true
Servlet:JAVADOC:811String[]jakarta.servlet.annotation.WebFilter.urlPatterns
The URL patterns to which the filter appliestrue
true
Servlet:JAVADOC:812String[]jakarta.servlet.annotation.WebFilter.value
The URL patterns to which the filter appliestrue
true
Servlet:JAVADOC:813Stringjakarta.servlet.annotation.WebInitParam.description
Description of the init paramtrue
true
Servlet:JAVADOC:814Stringjakarta.servlet.annotation.WebInitParam.name
Name of the init paramtrue
true
Servlet:JAVADOC:815Stringjakarta.servlet.annotation.WebInitParam.value
Value of the init paramtrue
true
Servlet:JAVADOC:817booleanjakarta.servlet.annotation.WebServlet.asyncSupported
Declares whether the servlet supports asynchronous operation mode.true
true
Servlet:JAVADOC:818Stringjakarta.servlet.annotation.WebServlet.description
The description of the servlettrue
true
Servlet:JAVADOC:819WebInitParam[]jakarta.servlet.annotation.WebServlet.initParams
The init parameters of the servlettrue
true
Servlet:JAVADOC:820Stringjakarta.servlet.annotation.WebServlet.largeIcon
The large-icon of the servlettrue
true
Servlet:JAVADOC:821intjakarta.servlet.annotation.WebServlet.loadOnStartup
The load-on-startup order of the servlettrue
true
Servlet:JAVADOC:822Stringjakarta.servlet.annotation.WebServlet.name
The name of the servlettrue
true
Servlet:JAVADOC:823Stringjakarta.servlet.annotation.WebServlet.smallIcon
The small-icon of the servlettrue
true
Servlet:JAVADOC:824String[]jakarta.servlet.annotation.WebServlet.urlPatterns
The URL patterns of the servlettrue
true
Servlet:JAVADOC:825String[]jakarta.servlet.annotation.WebServlet.value
The URL patterns of the servlettrue
true
Servlet:JAVADOC:826Collectionjakarta.servlet.descriptor.JspConfigDescriptor.getJspPropertyGroups
Gets the child elements of the element represented by this JspConfigDescriptor. Any changes to the returned Collection must not affect this JspConfigDescriptor.true
true
Servlet:JAVADOC:827Collectionjakarta.servlet.descriptor.JspConfigDescriptor.getTaglibs
Gets the child elements of the element represented by this JspConfigDescriptor. Any changes to the returned Collection must not affect this JspConfigDescriptor.true
true
Servlet:JAVADOC:828Stringjakarta.servlet.descriptor.JspPropertyGroupDescriptor.getBuffer
Gets the value of the buffer configuration, which specifies the default size of the response buffer for any JSP pages mapped to the JSP property group represented by this JspPropertyGroupDescriptor.true
true
Servlet:JAVADOC:829Stringjakarta.servlet.descriptor.JspPropertyGroupDescriptor.getDefaultContentType
Gets the value of the default-content-type configuration, which specifies the default response content type for any JSP pages mapped to the JSP property group represented by this JspPropertyGroupDescriptor.true
true
Servlet:JAVADOC:830Stringjakarta.servlet.descriptor.JspPropertyGroupDescriptor.getDeferredSyntaxAllowedAsLiteral
Gets the value of the deferred-syntax-allowed-as-literal configuration, which specifies whether the character sequence "#{", which is normally reserved for Expression Language (EL) expressions, will cause a translation error if it appears as a String literal in any JSP pages mapped to the JSP property group represented by this JspPropertyGroupDescriptor.true
true
Servlet:JAVADOC:831Stringjakarta.servlet.descriptor.JspPropertyGroupDescriptor.getElIgnored
Gets the value of the el-ignored configuration, which specifies whether Expression Language (EL) evaluation is enabled for any JSP pages mapped to the JSP property group represented by this JspPropertyGroupDescriptor.true
true
Servlet:JAVADOC:832Stringjakarta.servlet.descriptor.JspPropertyGroupDescriptor.getErrorOnUndeclaredNamespace
Gets the value of the error-on-undeclared-namespace configuration, which specifies whether an error will be raised at translation time if tag with an undeclared namespace is used in any JSP pages mapped to the JSP property group represented by this JspPropertyGroupDescriptor.true
true
Servlet:JAVADOC:833Collectionjakarta.servlet.descriptor.JspPropertyGroupDescriptor.getIncludeCodas
Gets the include-coda configuration of the JSP property group represented by this JspPropertyGroupDescriptor. Any changes to the returned Collection must not affect this JspPropertyGroupDescriptor.true
true
Servlet:JAVADOC:834Collectionjakarta.servlet.descriptor.JspPropertyGroupDescriptor.getIncludePreludes
Gets the include-prelude configuration of the JSP property group represented by this JspPropertyGroupDescriptor. Any changes to the returned Collection must not affect this JspPropertyGroupDescriptor.true
true
Servlet:JAVADOC:835Stringjakarta.servlet.descriptor.JspPropertyGroupDescriptor.getIsXml
Gets the value of the is-xml configuration, which specifies whether any JSP pages mapped to the JSP property group represented by this JspPropertyGroupDescriptor will be treated as JSP documents (XML syntax).true
true
Servlet:JAVADOC:836Stringjakarta.servlet.descriptor.JspPropertyGroupDescriptor.getPageEncoding
Gets the value of the page-encoding configuration, which specifies the default page encoding for any JSP pages mapped to the JSP property group represented by this JspPropertyGroupDescriptor.true
true
Servlet:JAVADOC:837Stringjakarta.servlet.descriptor.JspPropertyGroupDescriptor.getScriptingInvalid
Gets the value of the scripting-invalid configuration, which specifies whether scripting is enabled for any JSP pages mapped to the JSP property group represented by this JspPropertyGroupDescriptor.true
true
Servlet:JAVADOC:838Stringjakarta.servlet.descriptor.JspPropertyGroupDescriptor.getTrimDirectiveWhitespaces
Gets the value of the trim-directive-whitespaces configuration, which specifies whether template text containing only whitespaces must be removed from the response output of any JSP pages mapped to the JSP property group represented by this JspPropertyGroupDescriptor.true
true
Servlet:JAVADOC:839Collectionjakarta.servlet.descriptor.JspPropertyGroupDescriptor.getUrlPatterns
Gets the URL patterns of the JSP property group represented by this JspPropertyGroupDescriptor. Any changes to the returned Collection must not affect this JspPropertyGroupDescriptor.true
true
Servlet:JAVADOC:840Stringjakarta.servlet.descriptor.TaglibDescriptor.getTaglibLocation
Gets the location of the tag library represented by this TaglibDescriptor.true
true
Servlet:JAVADOC:841Stringjakarta.servlet.descriptor.TaglibDescriptor.getTaglibURI
Gets the unique identifier of the tag library represented by this TaglibDescriptor.true
true
Servlet:JAVADOC:842AsyncEventjakarta.servlet.AsyncEvent.AsyncEvent
( AsyncContext )
Constructs an AsyncEvent from the given AsyncContext.true
true
Servlet:JAVADOC:843AsyncEventjakarta.servlet.AsyncEvent.AsyncEvent
( AsyncContext ,
ServletRequest ,
ServletResponse )
Constructs an AsyncEvent from the given AsyncContext, ServletRequest, and ServletResponse.true
true
Servlet:JAVADOC:844AsyncEventjakarta.servlet.AsyncEvent.AsyncEvent
( AsyncContext ,
Throwable )
Constructs an AsyncEvent from the given AsyncContext and Throwable.true
true
Servlet:JAVADOC:845AsyncEventjakarta.servlet.AsyncEvent.AsyncEvent
( AsyncContext ,
ServletRequest ,
ServletResponse ,
Throwable )
Constructs an AsyncEvent from the given AsyncContext, ServletRequest, ServletResponse, and Throwable.true
true
Servlet:JAVADOC:846AsyncContextjakarta.servlet.AsyncEvent.getAsyncContext
Gets the AsyncContext from this AsyncEvent.true
true
Servlet:JAVADOC:847ServletRequestjakarta.servlet.AsyncEvent.getSuppliedRequest
Gets the ServletRequest from this AsyncEvent. If the AsyncListener to which this AsyncEvent is being delivered was added using ServletRequest#addAsyncListener(AsyncListener, ServletRequest, ServletResponse), the returned ServletRequest will be the same as the one supplied to the above method. If the AsyncListener was added via ServletRequest#addAsyncListener(AsyncListener), this method must return null.true
true
Servlet:JAVADOC:848ServletResponsejakarta.servlet.AsyncEvent.getSuppliedResponse
Gets the ServletResponse from this AsyncEvent. If the AsyncListener to which this AsyncEvent is being delivered was added using ServletRequest#addAsyncListener(AsyncListener, ServletRequest, ServletResponse), the returned ServletResponse will be the same as the one supplied to the above method. If the AsyncListener was added via ServletRequest#addAsyncListener(AsyncListener), this method must return null.true
true
Servlet:JAVADOC:849Throwablejakarta.servlet.AsyncEvent.getThrowable
Gets the Throwable from this AsyncEvent.true
true
Servlet:JAVADOC:850voidjakarta.servlet.AsyncListener.onError
( AsyncEvent )
Notifies this AsyncListener that an asynchronous operation has failed to complete.true
true
Servlet:JAVADOC:850.1voidjakarta.servlet.AsyncListener.onError
( AsyncEvent )
The AsyncContext corresponding to the asynchronous operation that failed to complete may be obtained by calling AsyncEvent#getAsyncContext getAsyncContext on the given event.true
true
Servlet:JAVADOC:850.2voidjakarta.servlet.AsyncListener.onError
( AsyncEvent )
In addition, if this AsyncListener had been registered via a call to ServletRequest#addAsyncListener(AsyncListener, ServletRequest, ServletResponse), the supplied ServletRequest and ServletResponse objects may be retrieved by calling AsyncEvent#getSuppliedRequest getSuppliedRequest and AsyncEvent#getSuppliedResponse getSuppliedResponse, respectively, on the given event.true
true
Servlet:JAVADOC:851voidjakarta.servlet.AsyncListener.onError
( AsyncEvent )
throws IOException
if an I/O related error has occurred during the processing of the given AsyncEventtrue
true
Servlet:JAVADOC:852String[]jakarta.servlet.annotation.HttpConstraint.rolesAllowed
The names of the authorized roles. Duplicate role names appearing in rolesAllowed are insignificant and may be discarded during runtime processing of the annotation. The String "*" has no special meaning as a role name (should it occur in rolesAllowed). true
true
Servlet:JAVADOC:853TransportGuaranteejakarta.servlet.annotation.HttpConstraint.transportGuarantee
The data protection requirements (i.e., whether or not SSL/TLS is required) that must be satisfied by the connections on which requests arrive. true
true
Servlet:JAVADOC:854EmptyRoleSemanticjakarta.servlet.annotation.HttpConstraint.value
The default authorization semantic. This value is insignificant when rolesAllowed returns a non-empty array, and should not be specified when a non-empty array is specified for rolesAllowed. true
true
Servlet:JAVADOC:855EmptyRoleSemanticjakarta.servlet.annotation.HttpMethodConstraint.emptyRoleSemantic
The default authorization semantic. This value is insignificant when rolesAllowed returns a non-empty array, and should not be specified when a non-empty array is specified for rolesAllowed.true
true
Servlet:JAVADOC:856String[]jakarta.servlet.annotation.HttpMethodConstraint.rolesAllowed
The names of the authorized roles. Duplicate role names appearing in rolesAllowed are insignificant and may be discarded during runtime processing of the annotation. The String "*" has no special meaning as a role name (should it occur in rolesAllowed).true
true
Servlet:JAVADOC:857TransportGuaranteejakarta.servlet.annotation.HttpMethodConstraint.transportGuarantee
The data protection requirements (i.e., whether or not SSL/TLS is required) that must be satisfied by the connections on which requests arrive.true
true
Servlet:JAVADOC:858Stringjakarta.servlet.annotation.HttpMethodConstraint.value
Http protocol method nametrue
true
Servlet:JAVADOC:859HttpMethodConstraint[]jakarta.servlet.annotation.ServletSecurity.httpMethodConstraints
Get the HTTP method specific constraints. Each HttpMethodConstraint names an HTTP protocol method and defines the protection to be applied to it.true
true
Servlet:JAVADOC:860HttpConstraintjakarta.servlet.annotation.ServletSecurity.value
Get the HttpConstraint that defines the protection that is to be applied to all HTTP methods that are NOT represented in the array returned by httpMethodConstraints.true
true
Servlet:JAVADOC:861EmptyRoleSemanticjakarta.servlet.annotation.ServletSecurity.EmptyRoleSemantic.valueOf
( String )

true
true
Servlet:JAVADOC:862EmptyRoleSemantic[]jakarta.servlet.annotation.ServletSecurity.EmptyRoleSemantic.values

true
true
Servlet:JAVADOC:863TransportGuaranteejakarta.servlet.annotation.ServletSecurity.TransportGuarantee.valueOf
( String )

true
true
Servlet:JAVADOC:864TransportGuarantee[]jakarta.servlet.annotation.ServletSecurity.TransportGuarantee.values
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows: for (ServletSecurity.TransportGuarantee c : ServletSecurity.TransportGuarantee.values()) System.out.println(c); true
true
Servlet:JAVADOC:865Stringjakarta.servlet.annotation.WebListener.value
Description of the listenertrue
true
Servlet:JAVADOC:866voidjakarta.servlet.AsyncContext.addListener
( AsyncListener )
Registers the given AsyncListener with the most recent asynchronous cycle that was started by a call to one of the ServletRequest#startAsync methods. The given AsyncListener will receive an AsyncEvent when the asynchronous cycle completes successfully, times out, or results in an error. AsyncListener instances will be notified in the order in which they were added.true
true
Servlet:JAVADOC:866.1voidjakarta.servlet.AsyncContext.addListener
( AsyncListener )
The given AsyncListener will receive an AsyncEvent when the asynchronous cycle completes successfully, times out, or results in an error. true
true
Servlet:JAVADOC:866.2voidjakarta.servlet.AsyncContext.addListener
( AsyncListener )
AsyncListener instances will be notified in the order in which they were added. true
true
Servlet:JAVADOC:948voidjakarta.servlet.AsyncContext.addListener
( AsyncListener )
If ServletRequest#startAsync(ServletRequest, ServletResponse) or ServletRequest#startAsync is called, the exact same request and response objects are available from the AsyncEvent when the AsyncListener is notified. true
true
Servlet:JAVADOC:866.3voidjakarta.servlet.AsyncContext.addListener
( AsyncListener )
throws IllegalStateException
if this method is called after the container-initiated dispatch, during which one of the ServletRequest.startAsync() methods was called, has returned to the containertrue
true
Servlet:JAVADOC:867voidjakarta.servlet.AsyncContext.addListener
( AsyncListener ,
ServletRequest ,
ServletResponse )
Registers the given AsyncListener with the most recent asynchronous cycle that was started by a call to one of the ServletRequest#startAsync methods. The given AsyncListener will receive an AsyncEvent when the asynchronous cycle completes successfully, times out, or results in an error. AsyncListener instances will be notified in the order in which they were added. The given ServletRequest and ServletResponse objects will be made available to the given AsyncListener via the AsyncEvent#getSuppliedRequest getSuppliedRequest and AsyncEvent#getSuppliedResponse getSuppliedResponse methods, respectively, of the AsyncEvent delivered to it. These objects should not be read from or written to, respectively, at the time the AsyncEvent is delivered, because additional wrapping may have occurred since the given AsyncListener was registered, but may be used in order to release any resources associated with them.true
true
Servlet:JAVADOC:867.1voidjakarta.servlet.AsyncContext.addListener
( AsyncListener ,
ServletRequest ,
ServletResponse )
The given AsyncListener will receive an AsyncEvent when the asynchronous cycle completes successfully, times out, or results in an error.true
true
Servlet:JAVADOC:867.2voidjakarta.servlet.AsyncContext.addListener
( AsyncListener ,
ServletRequest ,
ServletResponse )
AsyncListener instances will be notified in the order in which they were added. true
true
Servlet:JAVADOC:867.3voidjakarta.servlet.AsyncContext.addListener
( AsyncListener ,
ServletRequest ,
ServletResponse )
The given ServletRequest and ServletResponse objects will be made available to the given AsyncListener via the getSuppliedRequest and getSuppliedResponse methods, respectively, of the AsyncEvent delivered to it. These objects should not be read from or written to, respectively, at the time the AsyncEvent is delivered, because additional wrapping may have occurred since the given AsyncListener was registered, but may be used in order to release any resources associated with them. true
true
Servlet:JAVADOC:867.4voidjakarta.servlet.AsyncContext.addListener
( AsyncListener ,
ServletRequest ,
ServletResponse )
throws IllegalStateException
if this method is called after the container-initiated dispatch, during which one of the ServletRequest.startAsync() methods was called, has returned to the containertrue
true
Servlet:JAVADOC:868longjakarta.servlet.AsyncContext.getTimeout
Gets the timeout (in milliseconds) for this AsyncContext. This method returns the container's default timeout for asynchronous operations, or the timeout value passed to the most recent invocation of #setTimeout. A timeout value of zero or less indicates no timeout.true
true
Servlet:JAVADOC:868.1longjakarta.servlet.AsyncContext.getTimeout
A timeout value of zero or less indicates no timeout.true
true
Servlet:JAVADOC:869voidjakarta.servlet.AsyncContext.setTimeout
( long )
Sets the timeout (in milliseconds) for this AsyncContext. The timeout applies to this AsyncContext once the container-initiated dispatch during which one of the ServletRequest#startAsync methods was called has returned to the container. The timeout will expire if neither the #complete method nor any of the dispatch methods are called. A timeout value of zero or less indicates no timeout. If #setTimeout is not called, then the container's default timeout, which is available via a call to #getTimeout, will apply. true
true
Servlet:JAVADOC:869.1voidjakarta.servlet.AsyncContext.setTimeout
( long )
The timeout applies to this AsyncContext once the container-initiated dispatch during which one of the ServletRequest.startAsync() methods was called has returned to the container. true
true
Servlet:JAVADOC:869.2voidjakarta.servlet.AsyncContext.setTimeout
( long )
The timeout will expire if neither the complete() method nor any of the dispatch methods are called.true
true
Servlet:JAVADOC:869.3voidjakarta.servlet.AsyncContext.setTimeout
( long )
A timeout value of zero or less indicates no timeout. true
true
Servlet:JAVADOC:869.4voidjakarta.servlet.AsyncContext.setTimeout
( long )
If setTimeout(long) is not called, then the container's default timeout, which is available via a call to getTimeout(), will apply.true
true
Servlet:JAVADOC:869.5voidjakarta.servlet.AsyncContext.setTimeout
( long )
throws IllegalStateException
if this method is called after the container-initiated dispatch, during which one of the ServletRequest.startAsync() methods was called, has returned to the container.true
true
Servlet:JAVADOC:870voidjakarta.servlet.AsyncListener.onStartAsync
( AsyncEvent )
Notifies this AsyncListener that a new asynchronous cycle is being initiated via a call to one of the ServletRequest#startAsync methods.true
true
Servlet:JAVADOC:870.1voidjakarta.servlet.AsyncListener.onStartAsync
( AsyncEvent )
The AsyncContext corresponding to the asynchronous operation that is being reinitialized may be obtained by calling AsyncEvent#getAsyncContext getAsyncContext on the given event.true
true
Servlet:JAVADOC:870.2voidjakarta.servlet.AsyncListener.onStartAsync
( AsyncEvent )
In addition, if this AsyncListener had been registered via a call to AsyncContext#addListener(AsyncListener, ServletRequest, ServletResponse), the supplied ServletRequest and ServletResponse objects may be retrieved by calling AsyncEvent#getSuppliedRequest getSuppliedRequest and AsyncEvent#getSuppliedResponse getSuppliedResponse, respectively, on the given event.true
true
Servlet:JAVADOC:870.3voidjakarta.servlet.AsyncListener.onStartAsync
( AsyncEvent )
This AsyncListener will not receive any events related to the new asynchronous cycle unless it registers itself (via a call to AsyncContext#addListener) with the AsyncContext that is delivered as part of the given AsyncEvent.true
true
Servlet:JAVADOC:871voidjakarta.servlet.AsyncListener.onStartAsync
( AsyncEvent )
throws IOException
if an I/O related error has occurred during the processing of the given AsyncEventtrue
true
Servlet:JAVADOC:872AsyncListenerjakarta.servlet.AsyncContext.createListener
( Class )
Instantiates the given AsyncListener class. The returned AsyncListener instance may be further customized before it is registered with this AsyncContext via a call to one of the addListener methods. The given AsyncListener class must define a zero argument constructor, which is used to instantiate it. This method supports any annotations applicable to AsyncListener.true
true
Servlet:JAVADOC:872.1AsyncListenerjakarta.servlet.AsyncContext.createListener
( Class )
The returned AsyncListener instance may be further customized before it is registered with this AsyncContext via a call to one of the addListener methods. true
true
Servlet:JAVADOC:872.2AsyncListenerjakarta.servlet.AsyncContext.createListener
( Class )
The given AsyncListener class must define a zero argument constructor, which is used to instantiate it. true
true
Servlet:JAVADOC:872.3AsyncListenerjakarta.servlet.AsyncContext.createListener
( Class )
This method supports resource injection if the given clazz represents a Managed Bean. See the Jakarta EE platform and JSR 299 specifications for additional details about Managed Beans and resource injection. true
true
Servlet:JAVADOC:872.4AsyncListenerjakarta.servlet.AsyncContext.createListener
( Class )
This method supports any annotations applicable to AsyncListener. true
true
Servlet:JAVADOC:872.5AsyncListenerjakarta.servlet.AsyncContext.createListener
( Class )
throws ServletException
if the given clazz fails to be instantiatedtrue
true
Servlet:JAVADOC:873AsyncListenerjakarta.servlet.AsyncContext.createListener
( Class )
throws ServletException
if the given clazz fails to be instantiatedtrue
true
Servlet:JAVADOC:874EmptyRoleSemanticjakarta.servlet.HttpConstraintElement.getEmptyRoleSemantic
Gets the default authorization semantic. This value is insignificant when getRolesAllowed returns a non-empty array, and should not be specified when a non-empty array is specified for getRolesAllowed.true
true
Servlet:JAVADOC:875String[]jakarta.servlet.HttpConstraintElement.getRolesAllowed
Gets the names of the authorized roles. Duplicate role names appearing in getRolesAllowed are insignificant and may be discarded. The String "*" has no special meaning as a role name (should it occur in getRolesAllowed).true
true
Servlet:JAVADOC:876TransportGuaranteejakarta.servlet.HttpConstraintElement.getTransportGuarantee
Gets the data protection requirement (i.e., whether or not SSL/TLS is required) that must be satisfied by the transport connection.true
true
Servlet:JAVADOC:877HttpConstraintElementjakarta.servlet.HttpConstraintElement.HttpConstraintElement
Constructs a default HTTP constraint elementtrue
true
Servlet:JAVADOC:878HttpConstraintElementjakarta.servlet.HttpConstraintElement.HttpConstraintElement
( EmptyRoleSemantic )
Convenience constructor to establish EmptyRoleSemantic.DENYtrue
true
Servlet:JAVADOC:879HttpConstraintElementjakarta.servlet.HttpConstraintElement.HttpConstraintElement
( TransportGuarantee ,
String[] )
Constructor to establish non-empty getRolesAllowed and/or TransportGuarantee.CONFIDENTIAL.true
true
Servlet:JAVADOC:880HttpConstraintElementjakarta.servlet.HttpConstraintElement.HttpConstraintElement
( EmptyRoleSemantic ,
TransportGuarantee ,
String[] )
Constructor to establish all of getEmptyRoleSemantic, getRolesAllowed, and getTransportGuarantee.true
true
Servlet:JAVADOC:881Stringjakarta.servlet.HttpMethodConstraintElement.getMethodName
Gets the HTTP method name.true
true
Servlet:JAVADOC:882HttpMethodConstraintElementjakarta.servlet.HttpMethodConstraintElement.HttpMethodConstraintElement
( String )
Constructs an instance with default HttpConstraintElement value.true
true
Servlet:JAVADOC:883HttpMethodConstraintElementjakarta.servlet.HttpMethodConstraintElement.HttpMethodConstraintElement
( String ,
HttpConstraintElement )
Constructs an instance with specified HttpConstraintElement value.true
true
Servlet:JAVADOC:884intjakarta.servlet.MultipartConfigElement.getFileSizeThreshold
Gets the size threshold after which files will be written to disk.true
true
Servlet:JAVADOC:885Stringjakarta.servlet.MultipartConfigElement.getLocation
Gets the directory location where files will be stored.true
true
Servlet:JAVADOC:886longjakarta.servlet.MultipartConfigElement.getMaxFileSize
Gets the maximum size allowed for uploaded files.true
true
Servlet:JAVADOC:887longjakarta.servlet.MultipartConfigElement.getMaxRequestSize
Gets the maximum size allowed for multipart/form-data requests.true
true
Servlet:JAVADOC:888MultipartConfigElementjakarta.servlet.MultipartConfigElement.MultipartConfigElement
( String )
Constructs an instance with defaults for all but location.true
true
Servlet:JAVADOC:889MultipartConfigElementjakarta.servlet.MultipartConfigElement.MultipartConfigElement
( String ,
long ,
long ,
int )
Constructs an instance with all values specified.true
true
Servlet:JAVADOC:890MultipartConfigElementjakarta.servlet.MultipartConfigElement.MultipartConfigElement
( MultipartConfig )
Constructs an instance from a MultipartConfig annotation value.true
true
Servlet:JAVADOC:891voidjakarta.servlet.ServletContext.declareRoles
( String[] )
Declares role names that are tested using isUserInRole. Roles that are implicitly declared as a result of their use within the ServletRegistration.Dynamic#setServletSecurity setServletSecurity or ServletRegistration.Dynamic#setRunAsRole setRunAsRole methods of the ServletRegistration interface need not be declared.true
true
Servlet:JAVADOC:892Stringjakarta.servlet.ServletRegistration.getRunAsRole
Gets the name of the runAs role of the Servlet represented by this ServletRegistration.true
true
Servlet:JAVADOC:893voidjakarta.servlet.ServletRegistration.Dynamic.setMultipartConfig
( MultipartConfigElement )
Sets the MultipartConfigElement to be applied to the mappings defined for this ServletRegistration.true
true
Servlet:JAVADOC:893.1voidjakarta.servlet.ServletRegistration.Dynamic.setMultipartConfig
( MultipartConfigElement )
If this method is called multiple times, each successive call overrides the effects of the former.true
true
Servlet:JAVADOC:893.2voidjakarta.servlet.ServletRegistration.Dynamic.setMultipartConfig
( MultipartConfigElement )
throws IllegalArgumentException
if multipartConfig is nulltrue
true
Servlet:JAVADOC:893.3voidjakarta.servlet.ServletRegistration.Dynamic.setMultipartConfig
( MultipartConfigElement )
throws IllegalStateException
if the ServletContext from which this ServletRegistration was obtained has already been initializedtrue
true
Servlet:JAVADOC:894voidjakarta.servlet.ServletRegistration.Dynamic.setRunAsRole
( String )
Sets the name of the runAs role for the ServletRegistration.true
true
Servlet:JAVADOC:894.1voidjakarta.servlet.ServletRegistration.Dynamic.setRunAsRole
( String )
throws IllegalArgumentException
if roleName is nulltrue
true
Servlet:JAVADOC:894.2voidjakarta.servlet.ServletRegistration.Dynamic.setRunAsRole
( String )
throws IllegalStateException
if the ServletContext from which this ServletRegistration was obtained has already been initializedtrue
true
Servlet:JAVADOC:895Setjakarta.servlet.ServletRegistration.Dynamic.setServletSecurity
( ServletSecurityElement )
Sets the ServletSecurityElement to be applied to the mappings currently assigned to this ServletRegistration.true
true
Servlet:JAVADOC:895.1Setjakarta.servlet.ServletRegistration.Dynamic.setServletSecurity
( ServletSecurityElement )
Any mappings added to this ServletRegistration after a call to this method may be secured by a subsequent call to this method.true
true
Servlet:JAVADOC:895.2Setjakarta.servlet.ServletRegistration.Dynamic.setServletSecurity
( ServletSecurityElement )
If a url-pattern of this ServletRegistration is an exact target of a security-constraint that was established via the portable deployment descriptor, then this method does not change the security-constraint for that pattern, and the pattern will be included in the return value.true
true
Servlet:JAVADOC:895.3Setjakarta.servlet.ServletRegistration.Dynamic.setServletSecurity
( ServletSecurityElement )
If a url-pattern of this ServletRegistration is an exact target of a security constraint that was established via the jakarta.servlet.annotation.ServletSecurity annotation or a previous call to this method, then this method replaces the security constraint for that pattern. true
true
Servlet:JAVADOC:895.4Setjakarta.servlet.ServletRegistration.Dynamic.setServletSecurity
( ServletSecurityElement )
If a url-pattern of this ServletRegistration is neither the exact target of a security constraint that was established via the jakarta.servlet.annotation.ServletSecurity annotation or a previous call to this method, nor the exact target of a security-constraint in the portable deployment descriptor, then this method establishes the security constraint for that pattern from the argument ServletSecurityElement.true
true
Servlet:JAVADOC:895.5Setjakarta.servlet.ServletRegistration.Dynamic.setServletSecurity
( ServletSecurityElement )
throws IllegalArgumentException
if constraint is nulltrue
true
Servlet:JAVADOC:895.6Setjakarta.servlet.ServletRegistration.Dynamic.setServletSecurity
( ServletSecurityElement )
throws IllegalStateException
if the ServletContext from which this ServletRegistration was obtained has already been initializedtrue
true
Servlet:JAVADOC:896Collectionjakarta.servlet.ServletSecurityElement.getHttpMethodConstraints
Gets the (possibly empty) collection of HTTP Method specific constraint elements.true
true
Servlet:JAVADOC:897Collectionjakarta.servlet.ServletSecurityElement.getMethodNames
Gets the set of HTTP methid names named by the HttpMethodConstraints.true
true
Servlet:JAVADOC:898ServletSecurityElementjakarta.servlet.ServletSecurityElement.ServletSecurityElement
Constructs an instance using the default HttpConstraintElement value as the default Constraint element and with no HTTP Method specific constraint elements.true
true
Servlet:JAVADOC:899ServletSecurityElementjakarta.servlet.ServletSecurityElement.ServletSecurityElement
( HttpConstraintElement )
Constructs an instance with a default Constraint element and with no HTTP Method specific constraint elements.true
true
Servlet:JAVADOC:900ServletSecurityElementjakarta.servlet.ServletSecurityElement.ServletSecurityElement
( Collection )
Constructs an instance using the default HttpConstraintElement value as the default Constraint element and with a collection of HTTP Method specific constraint elements.true
true
Servlet:JAVADOC:901ServletSecurityElementjakarta.servlet.ServletSecurityElement.ServletSecurityElement
( HttpConstraintElement ,
Collection )
Constructs an instance with a default Constraint element and with a collection of HTTP Method specific constraint elements.true
true
Servlet:JAVADOC:902ServletSecurityElementjakarta.servlet.ServletSecurityElement.ServletSecurityElement
( ServletSecurity )
Constructs an instance from a ServletSecurity annotation value.true
true
Servlet:JAVADOC:903Stringjakarta.servlet.annotation.WebServlet.displayName
The display name of the servlettrue
true
Servlet:JAVADOC:904voidjakarta.servlet.ReadListener.onAllDataRead
Invoked when all data for the current request has been read.true
true
Servlet:JAVADOC:944voidjakarta.servlet.ReadListener.onAllDataRead

throws IOException
if an I/O related error has occurred during processingtrue
true
Servlet:JAVADOC:905voidjakarta.servlet.ReadListener.onDataAvailable
When an instance of the ReadListener is registered with a ServletInputStream, this method will be invoked by the container the first time when it is possible to read data. Subsequently the container will invoke this method if and only if jakarta.servlet.ServletInputStream#isReady() method has been called and has returned false. true
true
Servlet:JAVADOC:945voidjakarta.servlet.ReadListener.onDataAvailable

throws IOException
if an I/O related error has occurred during processingtrue
true
Servlet:JAVADOC:906voidjakarta.servlet.ReadListener.onError
( Throwable )
Invoked when an error occurs processing the request.true
true
Servlet:JAVADOC:907booleanjakarta.servlet.ServletInputStream.isFinished
Returns true when all the data from the stream has been read else it returns false.true
true
Servlet:JAVADOC:908booleanjakarta.servlet.ServletInputStream.isReady
Returns true if data can be read without blocking else returns false.true
true
Servlet:JAVADOC:909voidjakarta.servlet.ServletInputStream.setReadListener
( ReadListener )
Instructs the ServletInputStream to invoke the provided ReadListener when it is possible to readtrue
true
Servlet:JAVADOC:941voidjakarta.servlet.ServletInputStream.setReadListener
( ReadListener )
throws IllegalStateException
the associated request is neither upgraded nor the async startedtrue
true
Servlet:JAVADOC:942voidjakarta.servlet.ServletInputStream.setReadListener
( ReadListener )
throws IllegalStateException
setWriteListener is called more than once within the scope of the same request.true
true
Servlet:JAVADOC:943voidjakarta.servlet.ServletInputStream.setReadListener
( ReadListener )
throws NullPointerException
if readListener is nulltrue
true
Servlet:JAVADOC:910booleanjakarta.servlet.ServletOutputStream.isReady
This method can be used to determine if data can be written without blocking.true
true
Servlet:JAVADOC:911voidjakarta.servlet.ServletOutputStream.setWriteListener
( WriteListener )
Instructs the ServletOutputStream to invoke the provided WriteListener when it is possible to writetrue
true
Servlet:JAVADOC:938voidjakarta.servlet.ServletOutputStream.setWriteListener
( WriteListener )
throws IllegalStateException
the associated request is neither upgraded nor the async startedtrue
true
Servlet:JAVADOC:939voidjakarta.servlet.ServletOutputStream.setWriteListener
( WriteListener )
throws IllegalStateException
setWriteListener is called more than once within the scope of the same request.true
true
Servlet:JAVADOC:940voidjakarta.servlet.ServletOutputStream.setWriteListener
( WriteListener )
throws NullPointerException
if writeListener is nulltrue
true
Servlet:JAVADOC:912longjakarta.servlet.ServletRequest.getContentLengthLong
Returns the length, in bytes, of the request body and made available by the input stream, or -1 if the length is not known. For HTTP servlets, same as the value of the CGI variable CONTENT_LENGTH.true
true
Servlet:JAVADOC:913longjakarta.servlet.ServletRequestWrapper.getContentLengthLong
The default behavior of this method is to return getContentLengthLong() on the wrapped request object.true
true
Servlet:JAVADOC:914voidjakarta.servlet.ServletResponse.setContentLengthLong
( long )
Sets the length of the content body in the response In HTTP servlets, this method sets the HTTP Content-Length header.true
true
Servlet:JAVADOC:915voidjakarta.servlet.ServletResponseWrapper.setContentLengthLong
( long )
The default behavior of this method is to call setContentLengthLong(long len) on the wrapped response object.true
true
Servlet:JAVADOC:916voidjakarta.servlet.WriteListener.onError
( Throwable )
Invoked when an error occurs writing data using the non-blocking APIs.true
true
Servlet:JAVADOC:917voidjakarta.servlet.WriteListener.onWritePossible
When an instance of the WriteListener is registered with s ServletOutputStream, this method will be invoked by the container the first time when it is possible to write data. Subsequently the container will invoke this method if and only if jakarta.servlet.ServletOutputStream#isReady() method has been called and has returned false. true
true
Servlet:JAVADOC:946voidjakarta.servlet.WriteListener.onWritePossible

throws IOException
if an I/O related error has occurred during processingtrue
true
Servlet:JAVADOC:922voidjakarta.servlet.http.ProtocolHandler.init
( WebConnection )
It is called once the HTTP Upgrade process has been completed and the upgraded connection is ready to start using the new protocol.true
true
Servlet:JAVADOC:923ServletInputStreamjakarta.servlet.http.WebConnection.getInputStream
Returns an input stream for this web connection.true
true
Servlet:JAVADOC:924ServletInputStreamjakarta.servlet.http.WebConnection.getInputStream

throws IOException
if an I/O error occurstrue
true
Servlet:JAVADOC:925ServletOutputStreamjakarta.servlet.http.WebConnection.getOutputStream
Returns an output stream for this web connection.true
true
Servlet:JAVADOC:926ServletOutputStreamjakarta.servlet.http.WebConnection.getOutputStream

throws IOException
if an I/O error occurstrue
true
Servlet:JAVADOC:929Stringjakarta.servlet.http.HttpServletRequest.changeSessionId
Change the session id of the current session associated with this request and return the new session id.true
true
Servlet:JAVADOC:929.1Stringjakarta.servlet.http.HttpServletRequest.changeSessionId

throws IllegalStateException
If there is no session associated with the requesttrue
true
Servlet:JAVADOC:930HttpUpgradeHandlerjakarta.servlet.http.HttpServletRequest.upgrade
( Class )
Create an instance of HttpUpgradeHandler for an given class and uses it for the http protocol upgrade processing.true
true
Servlet:JAVADOC:931HttpUpgradeHandlerjakarta.servlet.http.HttpServletRequest.upgrade
( Class )
throws IOException
if an I/O error occurred during the upgradetrue
true
Servlet:JAVADOC:932Stringjakarta.servlet.http.HttpServletRequestWrapper.changeSessionId
The default behavior of this method is to return changeSessionId() on the wrapped request object.true
true
Servlet:JAVADOC:932.1Stringjakarta.servlet.http.HttpServletRequestWrapper.changeSessionId

throws IllegalStateException
If there is no session associated with the requesttrue
true
Servlet:JAVADOC:933HttpUpgradeHandlerjakarta.servlet.http.HttpServletRequestWrapper.upgrade
( Class )
Create an instance of HttpUpgradeHandler for an given class and uses it for the http protocol upgrade processing.true
true
Servlet:JAVADOC:934HttpUpgradeHandlerjakarta.servlet.http.HttpServletRequestWrapper.upgrade
( Class )
throws IOException

true
true
Servlet:JAVADOC:935voidjakarta.servlet.http.HttpSessionIdListener.sessionIdChanged
( HttpSessionEvent ,
String )
Receives notification that session id has been changed in a session.true
true
Servlet:JAVADOC:936voidjakarta.servlet.http.HttpUpgradeHandler.destroy
It is called when the client is disconnected.true
true
Servlet:JAVADOC:937voidjakarta.servlet.http.HttpUpgradeHandler.init
( WebConnection )
It is called once the HTTP Upgrade process has been completed and the upgraded connection is ready to start using the new protocol.true
true