社区
Web 开发
帖子详情
请问这是什么原因?ServletRequest has been deprecated,谢谢
ATCG
2002-08-16 04:21:41
warning: getRealPath(java.lang.String) in javax.servlet.Serv
letRequest has been deprecated
String Filename = request.getRealPath(Url);
...全文
95
3
打赏
收藏
请问这是什么原因?ServletRequest has been deprecated,谢谢
warning: getRealPath(java.lang.String) in javax.servlet.Serv letRequest has been deprecated String Filename = request.getRealPath(Url);
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
xuancao
2002-08-17
打赏
举报
回复
我试过,没有问题哦!!
Tomcat4
2002-08-17
打赏
举报
回复
是说这个方法已经不被推荐!
binha
2002-08-16
打赏
举报
回复
getServletContext().getRealPath(Url);
servlet
2.4doc
Overview Package Class Tree
Deprecated
Index Help PREV NEXT FRAMES NO FRAMES A B C D E F G H I J L P R S U V -------------------------------------------------------------------------------- A addCookie(Cookie) - Method in class javax.
servlet
.http.Http
Servlet
ResponseWrapper The default behavior of this method is to call addCookie(Cookie cookie) on the wrapped response object. addCookie(Cookie) - Method in interface javax.
servlet
.http.Http
Servlet
Response Adds the specified cookie to the response. addDateHeader(String, long) - Method in class javax.
servlet
.http.Http
Servlet
ResponseWrapper The default behavior of this method is to call addDateHeader(String name, long date) on the wrapped response object. addDateHeader(String, long) - Method in interface javax.
servlet
.http.Http
Servlet
Response Adds a response header with the given name and date-value. addHeader(String, String) - Method in class javax.
servlet
.http.Http
Servlet
ResponseWrapper The default behavior of this method is to return addHeader(String name, String value) on the wrapped response object. addHeader(String, String) - Method in interface javax.
servlet
.http.Http
Servlet
Response Adds a response header with the given name and value. addIntHeader(String, int) - Method in class javax.
servlet
.http.Http
Servlet
ResponseWrapper The default behavior of this method is to call addIntHeader(String name, int value) on the wrapped response object. addIntHeader(String, int) - Method in interface javax.
servlet
.http.Http
Servlet
Response Adds a response header with the given name and integer value. attributeAdded(HttpSessionBindingEvent) - Method in interface javax.
servlet
.http.HttpSessionAttributeListener Notification that an attribute has been added to a session. attributeAdded(
Servlet
ContextAttributeEvent) - Method in interface javax.
servlet
.
Servlet
ContextAttributeListener Notification that a new attribute was added to the
servlet
context. attributeAdded(
Servlet
Request
AttributeEvent) - Method in interface javax.
servlet
.
Servlet
Request
AttributeListener Notification that a new attribute was added to the
servlet
request
. attributeRemoved(HttpSessionBindingEvent) - Method in interface javax.
servlet
.http.HttpSessionAttributeListener Notification that an attribute has been removed from a session. attributeRemoved(
Servlet
ContextAttributeEvent) - Method in interface javax.
servlet
.
Servlet
ContextAttributeListener Notification that an existing attribute has been removed from the
servlet
context. attributeRemoved(
Servlet
Request
AttributeEvent) - Method in interface javax.
servlet
.
Servlet
Request
AttributeListener Notification that a new attribute was removed from the
servlet
request
. attributeReplaced(HttpSessionBindingEvent) - Method in interface javax.
servlet
.http.HttpSessionAttributeListener Notification that an attribute has been replaced in a session. attributeReplaced(
Servlet
ContextAttributeEvent) - Method in interface javax.
servlet
.
Servlet
ContextAttributeListener Notification that an attribute on the
servlet
context has been replaced. attributeReplaced(
Servlet
Request
AttributeEvent) - Method in interface javax.
servlet
.
Servlet
Request
AttributeListener Notification that an attribute was replaced on the
servlet
request
. -------------------------------------------------------------------------------- B BASIC_AUTH - Static variable in interface javax.
servlet
.http.Http
Servlet
Request
String identifier for Basic authentication. -------------------------------------------------------------------------------- C CLIENT_CERT_AUTH - Static variable in interface javax.
servlet
.http.Http
Servlet
Request
String identifier for Client Certificate authentication. clone() - Method in class javax.
servlet
.http.Cookie Overrides the standard java.lang.Object.clone method to return a copy of this cookie. containsHeader(String) - Method in class javax.
servlet
.http.Http
Servlet
ResponseWrapper The default behavior of this method is to call containsHeader(String name) on the wrapped response object. containsHeader(String) - Method in interface javax.
servlet
.http.Http
Servlet
Response Returns a boolean indicating whether the named response header has already been set. contextDestroyed(
Servlet
ContextEvent) - Method in interface javax.
servlet
.
Servlet
ContextListener Notification that the
servlet
context is about to be shut down. contextInitialized(
Servlet
ContextEvent) - Method in interface javax.
servlet
.
Servlet
ContextListener Notification that the web application initialization process is starting. Cookie - class javax.
servlet
.http.Cookie. Creates a cookie, a small amount of information sent by a
servlet
to a Web browser, saved by the browser, and later sent back to the server. Cookie(String, String) - Constructor for class javax.
servlet
.http.Cookie Constructs a cookie with a specified name and value. -------------------------------------------------------------------------------- D destroy() - Method in interface javax.
servlet
.Filter Called by the web container to indicate to a filter that it is being taken out of service. destroy() - Method in interface javax.
servlet
.
Servlet
Called by the
servlet
container to indicate to a
servlet
that the
servlet
is being taken out of service. destroy() - Method in class javax.
servlet
.Generic
Servlet
Called by the
servlet
container to indicate to a
servlet
that the
servlet
is being taken out of service. DIGEST_AUTH - Static variable in interface javax.
servlet
.http.Http
Servlet
Request
String identifier for Digest authentication. doDelete(Http
Servlet
Request
, Http
Servlet
Response) - Method in class javax.
servlet
.http.Http
Servlet
Called by the server (via the service method) to allow a
servlet
to handle a DELETE
request
. doFilter(
Servlet
Request
,
Servlet
Response) - Method in interface javax.
servlet
.FilterChain 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. doFilter(
Servlet
Request
,
Servlet
Response, FilterChain) - Method in interface javax.
servlet
.Filter 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. doGet(Http
Servlet
Request
, Http
Servlet
Response) - Method in class javax.
servlet
.http.Http
Servlet
Called by the server (via the service method) to allow a
servlet
to handle a GET
request
. doHead(Http
Servlet
Request
, Http
Servlet
Response) - Method in class javax.
servlet
.http.Http
Servlet
Receives an HTTP HEAD
request
from the protected service method and handles the
request
. doOptions(Http
Servlet
Request
, Http
Servlet
Response) - Method in class javax.
servlet
.http.Http
Servlet
Called by the server (via the service method) to allow a
servlet
to handle a OPTIONS
request
. doPost(Http
Servlet
Request
, Http
Servlet
Response) - Method in class javax.
servlet
.http.Http
Servlet
Called by the server (via the service method) to allow a
servlet
to handle a POST
request
. doPut(Http
Servlet
Request
, Http
Servlet
Response) - Method in class javax.
servlet
.http.Http
Servlet
Called by the server (via the service method) to allow a
servlet
to handle a PUT
request
. doTrace(Http
Servlet
Request
, Http
Servlet
Response) - Method in class javax.
servlet
.http.Http
Servlet
Called by the server (via the service method) to allow a
servlet
to handle a TRACE
request
. -------------------------------------------------------------------------------- E encodeRedirectUrl(String) - Method in class javax.
servlet
.http.Http
Servlet
ResponseWrapper The default behavior of this method is to return encodeRedirectUrl(String url) on the wrapped response object. encodeRedirectUrl(String) - Method in interface javax.
servlet
.http.Http
Servlet
Response
Deprecated
. As of version 2.1, use encodeRedirectURL(String url) instead encodeRedirectURL(String) - Method in class javax.
servlet
.http.Http
Servlet
ResponseWrapper The default behavior of this method is to return encodeRedirectURL(String url) on the wrapped response object. encodeRedirectURL(String) - Method in interface javax.
servlet
.http.Http
Servlet
Response Encodes the specified URL for use in the sendRedirect method or, if encoding is not needed, returns the URL unchanged. encodeUrl(String) - Method in class javax.
servlet
.http.Http
Servlet
ResponseWrapper The default behavior of this method is to call encodeUrl(String url) on the wrapped response object. encodeUrl(String) - Method in interface javax.
servlet
.http.Http
Servlet
Response
Deprecated
. As of version 2.1, use encodeURL(String url) instead encodeURL(String) - Method in class javax.
servlet
.http.Http
Servlet
ResponseWrapper The default behavior of this method is to call encodeURL(String url) on the wrapped response object. encodeURL(String) - Method in interface javax.
servlet
.http.Http
Servlet
Response Encodes the specified URL by including the session ID in it, or, if encoding is not needed, returns the URL unchanged. -------------------------------------------------------------------------------- F Filter - interface javax.
servlet
.Filter. A filter is an object that performs filtering tasks on either the
request
to a resource (a
servlet
or static content), or on the response from a resource, or both. Filters perform filtering in the doFilter method. FilterChain - interface javax.
servlet
.FilterChain. A FilterChain is an object provided by the
servlet
container to the developer giving a view into the invocation chain of a filtered
request
for a resource. FilterConfig - interface javax.
servlet
.FilterConfig. A filter configuration object used by a
servlet
container to pass information to a filter during initialization. flushBuffer() - Method in interface javax.
servlet
.
Servlet
Response Forces any content in the buffer to be written to the client. flushBuffer() - Method in class javax.
servlet
.
Servlet
ResponseWrapper The default behavior of this method is to call flushBuffer() on the wrapped response object. FORM_AUTH - Static variable in interface javax.
servlet
.http.Http
Servlet
Request
String identifier for Form authentication. forward(
Servlet
Request
,
Servlet
Response) - Method in interface javax.
servlet
.
Request
Dispatcher Forwards a
request
from a
servlet
to another resource (
servlet
, JSP file, or HTML file) on the server. -------------------------------------------------------------------------------- G Generic
Servlet
- class javax.
servlet
.Generic
Servlet
. Defines a generic, protocol-independent
servlet
. Generic
Servlet
() - Constructor for class javax.
servlet
.Generic
Servlet
Does nothing. getAttribute(String) - Method in interface javax.
servlet
.
Servlet
Context Returns the
servlet
container attribute with the given name, or null if there is no attribute by that name. getAttribute(String) - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to call getAttribute(String name) on the wrapped
request
object. getAttribute(String) - Method in interface javax.
servlet
.
Servlet
Request
Returns the value of the named attribute as an Object, or null if no attribute of the given name exists. getAttribute(String) - Method in interface javax.
servlet
.http.HttpSession Returns the object bound with the specified name in this session, or null if no object is bound under the name. getAttributeNames() - Method in interface javax.
servlet
.
Servlet
Context Returns an Enumeration containing the attribute names available within this
servlet
context. getAttributeNames() - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getAttributeNames() on the wrapped
request
object. getAttributeNames() - Method in interface javax.
servlet
.
Servlet
Request
Returns an Enumeration containing the names of the attributes available to this
request
. getAttributeNames() - Method in interface javax.
servlet
.http.HttpSession Returns an Enumeration of String objects containing the names of all the objects bound to this session. getAuthType() - Method in interface javax.
servlet
.http.Http
Servlet
Request
Returns the name of the authentication scheme used to protect the
servlet
. getAuthType() - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return getAuthType() on the wrapped
request
object. getBufferSize() - Method in interface javax.
servlet
.
Servlet
Response Returns the actual buffer size used for the response. getBufferSize() - Method in class javax.
servlet
.
Servlet
ResponseWrapper The default behavior of this method is to return getBufferSize() on the wrapped response object. getCharacterEncoding() - Method in interface javax.
servlet
.
Servlet
Response Returns the name of the character encoding (MIME charset) used for the body sent in this response. getCharacterEncoding() - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getCharacterEncoding() on the wrapped
request
object. getCharacterEncoding() - Method in interface javax.
servlet
.
Servlet
Request
Returns the name of the character encoding used in the body of this
request
. getCharacterEncoding() - Method in class javax.
servlet
.
Servlet
ResponseWrapper The default behavior of this method is to return getCharacterEncoding() on the wrapped response object. getComment() - Method in class javax.
servlet
.http.Cookie Returns the comment describing the purpose of this cookie, or null if the cookie has no comment. getContentLength() - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getContentLength() on the wrapped
request
object. getContentLength() - Method in interface javax.
servlet
.
Servlet
Request
Returns the length, in bytes, of the
request
body and made available by the input stream, or -1 if the length is not known. getContentType() - Method in interface javax.
servlet
.
Servlet
Response Returns the content type used for the MIME body sent in this response. getContentType() - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getContentType() on the wrapped
request
object. getContentType() - Method in interface javax.
servlet
.
Servlet
Request
Returns the MIME type of the body of the
request
, or null if the type is not known. getContentType() - Method in class javax.
servlet
.
Servlet
ResponseWrapper The default behavior of this method is to return getContentType() on the wrapped response object. getContext(String) - Method in interface javax.
servlet
.
Servlet
Context Returns a
Servlet
Context object that corresponds to a specified URL on the server. getContextPath() - Method in interface javax.
servlet
.http.Http
Servlet
Request
Returns the portion of the
request
URI that indicates the context of the
request
. getContextPath() - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return getContextPath() on the wrapped
request
object. getCookies() - Method in interface javax.
servlet
.http.Http
Servlet
Request
Returns an array containing all of the Cookie objects the client sent with this
request
. getCookies() - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return getCookies() on the wrapped
request
object. getCreationTime() - Method in interface javax.
servlet
.http.HttpSession Returns the time when this session was created, measured in milliseconds since midnight January 1, 1970 GMT. getDateHeader(String) - Method in interface javax.
servlet
.http.Http
Servlet
Request
Returns the value of the specified
request
header as a long value that represents a Date object. getDateHeader(String) - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return getDateHeader(String name) on the wrapped
request
object. getDomain() - Method in class javax.
servlet
.http.Cookie Returns the domain name set for this cookie. getFilterName() - Method in interface javax.
servlet
.FilterConfig Returns the filter-name of this filter as defined in the deployment descriptor. getHeader(String) - Method in interface javax.
servlet
.http.Http
Servlet
Request
Returns the value of the specified
request
header as a String. getHeader(String) - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return getHeader(String name) on the wrapped
request
object. getHeaderNames() - Method in interface javax.
servlet
.http.Http
Servlet
Request
Returns an enumeration of all the header names this
request
contains. getHeaderNames() - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return getHeaderNames() on the wrapped
request
object. getHeaders(String) - Method in interface javax.
servlet
.http.Http
Servlet
Request
Returns all the values of the specified
request
header as an Enumeration of String objects. getHeaders(String) - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return getHeaders(String name) on the wrapped
request
object. getId() - Method in interface javax.
servlet
.http.HttpSession Returns a string containing the unique identifier assigned to this session. getIds() - Method in interface javax.
servlet
.http.HttpSessionContext
Deprecated
. As of Java
Servlet
API 2.1 with no replacement. This method must return an empty Enumeration and will be removed in a future version of this API. getInitParameter(String) - Method in interface javax.
servlet
.FilterConfig Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist. getInitParameter(String) - Method in interface javax.
servlet
.
Servlet
Config Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist. getInitParameter(String) - Method in interface javax.
servlet
.
Servlet
Context Returns a String containing the value of the named context-wide initialization parameter, or null if the parameter does not exist. getInitParameter(String) - Method in class javax.
servlet
.Generic
Servlet
Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist. getInitParameterNames() - Method in interface javax.
servlet
.FilterConfig Returns the names of the filter's initialization parameters as an Enumeration of String objects, or an empty Enumeration if the filter has no initialization parameters. getInitParameterNames() - Method in interface javax.
servlet
.
Servlet
Config 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. getInitParameterNames() - Method in interface javax.
servlet
.
Servlet
Context Returns the names of the context's initialization parameters as an Enumeration of String objects, or an empty Enumeration if the context has no initialization parameters. getInitParameterNames() - Method in class javax.
servlet
.Generic
Servlet
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. getInputStream() - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getInputStream() on the wrapped
request
object. getInputStream() - Method in interface javax.
servlet
.
Servlet
Request
Retrieves the body of the
request
as binary data using a
Servlet
InputStream. getIntHeader(String) - Method in interface javax.
servlet
.http.Http
Servlet
Request
Returns the value of the specified
request
header as an int. getIntHeader(String) - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return getIntHeader(String name) on the wrapped
request
object. getLastAccessedTime() - Method in interface javax.
servlet
.http.HttpSession 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 received the
request
. getLastModified(Http
Servlet
Request
) - Method in class javax.
servlet
.http.Http
Servlet
Returns the time the Http
Servlet
Request
object was last modified, in milliseconds since midnight January 1, 1970 GMT. getLocalAddr() - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getLocalAddr() on the wrapped
request
object. getLocalAddr() - Method in interface javax.
servlet
.
Servlet
Request
Returns the Internet Protocol (IP) address of the interface on which the
request
was received. getLocale() - Method in interface javax.
servlet
.
Servlet
Response Returns the locale specified for this response using the
Servlet
Response.setLocale(java.util.Locale) method. getLocale() - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getLocale() on the wrapped
request
object. getLocale() - Method in interface javax.
servlet
.
Servlet
Request
Returns the preferred Locale that the client will accept content in, based on the Accept-Language header. getLocale() - Method in class javax.
servlet
.
Servlet
ResponseWrapper The default behavior of this method is to return getLocale() on the wrapped response object. getLocales() - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getLocales() on the wrapped
request
object. getLocales() - Method in interface javax.
servlet
.
Servlet
Request
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. getLocalName() - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getLocalName() on the wrapped
request
object. getLocalName() - Method in interface javax.
servlet
.
Servlet
Request
Returns the host name of the Internet Protocol (IP) interface on which the
request
was received. getLocalPort() - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getLocalPort() on the wrapped
request
object. getLocalPort() - Method in interface javax.
servlet
.
Servlet
Request
Returns the Internet Protocol (IP) port number of the interface on which the
request
was received. getMajorVersion() - Method in interface javax.
servlet
.
Servlet
Context Returns the major version of the Java
Servlet
API that this
servlet
container supports. getMaxAge() - Method in class javax.
servlet
.http.Cookie Returns the maximum age of the cookie, specified in seconds, By default, -1 indicating the cookie will persist until browser shutdown. getMaxInactiveInterval() - Method in interface javax.
servlet
.http.HttpSession Returns the maximum time interval, in seconds, that the
servlet
container will keep this session open between client accesses. getMethod() - Method in interface javax.
servlet
.http.Http
Servlet
Request
Returns the name of the HTTP method with which this
request
was made, for example, GET, POST, or PUT. getMethod() - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return getMethod() on the wrapped
request
object. getMimeType(String) - Method in interface javax.
servlet
.
Servlet
Context Returns the MIME type of the specified file, or null if the MIME type is not known. getMinorVersion() - Method in interface javax.
servlet
.
Servlet
Context Returns the minor version of the
Servlet
API that this
servlet
container supports. getName() - Method in class javax.
servlet
.
Servlet
ContextAttributeEvent Return the name of the attribute that changed on the
Servlet
Context. getName() - Method in class javax.
servlet
.
Servlet
Request
AttributeEvent Return the name of the attribute that changed on the
Servlet
Request
getName() - Method in class javax.
servlet
.http.HttpSessionBindingEvent Returns the name with which the attribute is bound to or unbound from the session. getName() - Method in class javax.
servlet
.http.Cookie Returns the name of the cookie. getNamedDispatcher(String) - Method in interface javax.
servlet
.
Servlet
Context Returns a
Request
Dispatcher object that acts as a wrapper for the named
servlet
. getOutputStream() - Method in interface javax.
servlet
.
Servlet
Response Returns a
Servlet
OutputStream suitable for writing binary data in the response. getOutputStream() - Method in class javax.
servlet
.
Servlet
ResponseWrapper The default behavior of this method is to return getOutputStream() on the wrapped response object. getParameter(String) - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getParameter(String name) on the wrapped
request
object. getParameter(String) - Method in interface javax.
servlet
.
Servlet
Request
Returns the value of a
request
parameter as a String, or null if the parameter does not exist. getParameterMap() - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getParameterMap() on the wrapped
request
object. getParameterMap() - Method in interface javax.
servlet
.
Servlet
Request
Returns a java.util.Map of the parameters of this
request
. getParameterNames() - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getParameterNames() on the wrapped
request
object. getParameterNames() - Method in interface javax.
servlet
.
Servlet
Request
Returns an Enumeration of String objects containing the names of the parameters contained in this
request
. getParameterValues(String) - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getParameterValues(String name) on the wrapped
request
object. getParameterValues(String) - Method in interface javax.
servlet
.
Servlet
Request
Returns an array of String objects containing all of the values the given
request
parameter has, or null if the parameter does not exist. getPath() - Method in class javax.
servlet
.http.Cookie Returns the path on the server to which the browser returns this cookie. getPathInfo() - Method in interface javax.
servlet
.http.Http
Servlet
Request
Returns any extra path information associated with the URL the client sent when it made this
request
. getPathInfo() - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return getPathInfo() on the wrapped
request
object. getPathTranslated() - Method in interface javax.
servlet
.http.Http
Servlet
Request
Returns any extra path information after the
servlet
name but before the query string, and translates it to a real path. getPathTranslated() - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return getPathTranslated() on the wrapped
request
object. getProtocol() - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getProtocol() on the wrapped
request
object. getProtocol() - Method in interface javax.
servlet
.
Servlet
Request
Returns the name and version of the protocol the
request
uses in the form protocol/majorVersion.minorVersion, for example, HTTP/1.1. getQueryString() - Method in interface javax.
servlet
.http.Http
Servlet
Request
Returns the query string that is contained in the
request
URL after the path. getQueryString() - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return getQueryString() on the wrapped
request
object. getReader() - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getReader() on the wrapped
request
object. getReader() - Method in interface javax.
servlet
.
Servlet
Request
Retrieves the body of the
request
as character data using a BufferedReader. getRealPath(String) - Method in interface javax.
servlet
.
Servlet
Context Returns a String containing the real path for a given virtual path. getRealPath(String) - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getRealPath(String path) on the wrapped
request
object. getRealPath(String) - Method in interface javax.
servlet
.
Servlet
Request
Deprecated
. As of Version 2.1 of the Java
Servlet
API, use
Servlet
Context.getRealPath(java.lang.String) instead. getRemoteAddr() - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getRemoteAddr() on the wrapped
request
object. getRemoteAddr() - Method in interface javax.
servlet
.
Servlet
Request
Returns the Internet Protocol (IP) address of the client or last proxy that sent the
request
. getRemoteHost() - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getRemoteHost() on the wrapped
request
object. getRemoteHost() - Method in interface javax.
servlet
.
Servlet
Request
Returns the fully qualified name of the client or the last proxy that sent the
request
. getRemotePort() - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getRemotePort() on the wrapped
request
object. getRemotePort() - Method in interface javax.
servlet
.
Servlet
Request
Returns the Internet Protocol (IP) source port of the client or last proxy that sent the
request
. getRemoteUser() - Method in interface javax.
servlet
.http.Http
Servlet
Request
Returns the login of the user making this
request
, if the user has been authenticated, or null if the user has not been authenticated. getRemoteUser() - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return getRemoteUser() on the wrapped
request
object. get
Request
() - Method in class javax.
servlet
.
Servlet
Request
Wrapper Return the wrapped
request
object. get
Request
Dispatcher(String) - Method in interface javax.
servlet
.
Servlet
Context Returns a
Request
Dispatcher object that acts as a wrapper for the resource located at the given path. get
Request
Dispatcher(String) - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return get
Request
Dispatcher(String path) on the wrapped
request
object. get
Request
Dispatcher(String) - Method in interface javax.
servlet
.
Servlet
Request
Returns a
Request
Dispatcher object that acts as a wrapper for the resource located at the given path. get
Request
edSessionId() - Method in interface javax.
servlet
.http.Http
Servlet
Request
Returns the session ID specified by the client. get
Request
edSessionId() - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return get
Request
edSessionId() on the wrapped
request
object. get
Request
URI() - Method in interface javax.
servlet
.http.Http
Servlet
Request
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
. get
Request
URI() - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return get
Request
URI() on the wrapped
request
object. get
Request
URL() - Method in interface javax.
servlet
.http.Http
Servlet
Request
Reconstructs the URL the client used to make the
request
. get
Request
URL() - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return get
Request
URL() on the wrapped
request
object. get
Request
URL(Http
Servlet
Request
) - Static method in class javax.
servlet
.http.HttpUtils
Deprecated
. Reconstructs the URL the client used to make the
request
, using information in the Http
Servlet
Request
object. getResource(String) - Method in interface javax.
servlet
.
Servlet
Context Returns a URL to the resource that is mapped to a specified path. getResourceAsStream(String) - Method in interface javax.
servlet
.
Servlet
Context Returns the resource located at the named path as an InputStream object. getResourcePaths(String) - Method in interface javax.
servlet
.
Servlet
Context Returns a directory-like listing of all the paths to resources within the web application whose longest sub-path matches the supplied path argument. getResponse() - Method in class javax.
servlet
.
Servlet
ResponseWrapper Return the wrapped
Servlet
Response object. getRootCause() - Method in class javax.
servlet
.
Servlet
Exception Returns the exception that caused this
servlet
exception. getScheme() - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getScheme() on the wrapped
request
object. getScheme() - Method in interface javax.
servlet
.
Servlet
Request
Returns the name of the scheme used to make this
request
, for example, http, https, or ftp. getSecure() - Method in class javax.
servlet
.http.Cookie Returns true if the browser is sending cookies only over a secure protocol, or false if the browser can send cookies using any protocol. getServerInfo() - Method in interface javax.
servlet
.
Servlet
Context Returns the name and version of the
servlet
container on which the
servlet
is running. getServerName() - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getServerName() on the wrapped
request
object. getServerName() - Method in interface javax.
servlet
.
Servlet
Request
Returns the host name of the server to which the
request
was sent. getServerPort() - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return getServerPort() on the wrapped
request
object. getServerPort() - Method in interface javax.
servlet
.
Servlet
Request
Returns the port number to which the
request
was sent. get
Servlet
() - Method in class javax.
servlet
.UnavailableException
Deprecated
. As of Java
Servlet
API 2.2, with no replacement. Returns the
servlet
that is reporting its unavailability. get
Servlet
(String) - Method in interface javax.
servlet
.
Servlet
Context
Deprecated
. As of Java
Servlet
API 2.1, with no direct replacement. This method was originally defined to retrieve a
servlet
from a
Servlet
Context. In this version, this method always returns null and remains only to preserve binary compatibility. This method will be permanently removed in a future version of the Java
Servlet
API. In lieu of this method,
servlet
s can share information using the
Servlet
Context class and can perform shared business logic by invoking methods on common non-
servlet
classes. get
Servlet
Config() - Method in interface javax.
servlet
.
Servlet
Returns a
Servlet
Config object, which contains initialization and startup parameters for this
servlet
. get
Servlet
Config() - Method in class javax.
servlet
.Generic
Servlet
Returns this
servlet
's
Servlet
Config object. get
Servlet
Context() - Method in class javax.
servlet
.
Servlet
Request
Event Returns the
Servlet
Context of this web application. get
Servlet
Context() - Method in interface javax.
servlet
.FilterConfig Returns a reference to the
Servlet
Context in which the caller is executing. get
Servlet
Context() - Method in interface javax.
servlet
.
Servlet
Config Returns a reference to the
Servlet
Context in which the caller is executing. get
Servlet
Context() - Method in class javax.
servlet
.
Servlet
ContextEvent Return the
Servlet
Context that changed. get
Servlet
Context() - Method in class javax.
servlet
.Generic
Servlet
Returns a reference to the
Servlet
Context in which this
servlet
is running. get
Servlet
Context() - Method in interface javax.
servlet
.http.HttpSession Returns the
Servlet
Context to which this session belongs. get
Servlet
ContextName() - Method in interface javax.
servlet
.
Servlet
Context Returns the name of this web application corresponding to this
Servlet
Context as specified in the deployment descriptor for this web application by the display-name element. get
Servlet
Info() - Method in interface javax.
servlet
.
Servlet
Returns information about the
servlet
, such as author, version, and copyright. get
Servlet
Info() - Method in class javax.
servlet
.Generic
Servlet
Returns information about the
servlet
, such as author, version, and copyright. get
Servlet
Name() - Method in interface javax.
servlet
.
Servlet
Config Returns the name of this
servlet
instance. get
Servlet
Name() - Method in class javax.
servlet
.Generic
Servlet
Returns the name of this
servlet
instance. get
Servlet
Names() - Method in interface javax.
servlet
.
Servlet
Context
Deprecated
. As of Java
Servlet
API 2.1, with no replacement. This method was originally defined to return an Enumeration of all the
servlet
names known to this context. In this version, this method always returns an empty Enumeration and remains only to preserve binary compatibility. This method will be permanently removed in a future version of the Java
Servlet
API. get
Servlet
Path() - Method in interface javax.
servlet
.http.Http
Servlet
Request
Returns the part of this
request
's URL that calls the
servlet
. get
Servlet
Path() - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return get
Servlet
Path() on the wrapped
request
object. get
Servlet
Request
() - Method in class javax.
servlet
.
Servlet
Request
Event Returns the
Servlet
Request
that is changing. get
Servlet
s() - Method in interface javax.
servlet
.
Servlet
Context
Deprecated
. As of Java
Servlet
API 2.0, with no replacement. This method was originally defined to return an Enumeration of all the
servlet
s known to this
servlet
context. In this version, this method always returns an empty enumeration and remains only to preserve binary compatibility. This method will be permanently removed in a future version of the Java
Servlet
API. getSession() - Method in class javax.
servlet
.http.HttpSessionEvent Return the session that changed. getSession() - Method in class javax.
servlet
.http.HttpSessionBindingEvent Return the session that changed. getSession() - Method in interface javax.
servlet
.http.Http
Servlet
Request
Returns the current session associated with this
request
, or if the
request
does not have a session, creates one. getSession() - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return getSession() on the wrapped
request
object. getSession(boolean) - Method in interface javax.
servlet
.http.Http
Servlet
Request
Returns the current HttpSession associated with this
request
or, if there is no current session and create is true, returns a new session. getSession(boolean) - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return getSession(boolean create) on the wrapped
request
object. getSession(String) - Method in interface javax.
servlet
.http.HttpSessionContext
Deprecated
. As of Java
Servlet
API 2.1 with no replacement. This method must return null and will be removed in a future version of this API. getSessionContext() - Method in interface javax.
servlet
.http.HttpSession
Deprecated
. As of Version 2.1, this method is
deprecated
and has no replacement. It will be removed in a future version of the Java
Servlet
API. getUnavailableSeconds() - Method in class javax.
servlet
.UnavailableException Returns the number of seconds the
servlet
expects to be temporarily unavailable. getUserPrincipal() - Method in interface javax.
servlet
.http.Http
Servlet
Request
Returns a java.security.Principal object containing the name of the current authenticated user. getUserPrincipal() - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return getUserPrincipal() on the wrapped
request
object. getValue() - Method in class javax.
servlet
.
Servlet
ContextAttributeEvent Returns the value of the attribute that has been added, removed, or replaced. getValue() - Method in class javax.
servlet
.
Servlet
Request
AttributeEvent Returns the value of the attribute that has been added, removed or replaced. getValue() - Method in class javax.
servlet
.http.HttpSessionBindingEvent Returns the value of the attribute that has been added, removed or replaced. getValue() - Method in class javax.
servlet
.http.Cookie Returns the value of the cookie. getValue(String) - Method in interface javax.
servlet
.http.HttpSession
Deprecated
. As of Version 2.2, this method is replaced by HttpSession.getAttribute(java.lang.String). getValueNames() - Method in interface javax.
servlet
.http.HttpSession
Deprecated
. As of Version 2.2, this method is replaced by HttpSession.getAttributeNames() getVersion() - Method in class javax.
servlet
.http.Cookie Returns the version of the protocol this cookie complies with. getWriter() - Method in interface javax.
servlet
.
Servlet
Response Returns a PrintWriter object that can send character text to the client. getWriter() - Method in class javax.
servlet
.
Servlet
ResponseWrapper The default behavior of this method is to return getWriter() on the wrapped response object. -------------------------------------------------------------------------------- H Http
Servlet
- class javax.
servlet
.http.Http
Servlet
. Provides an abstract class to be subclassed to create an HTTP
servlet
suitable for a Web site. Http
Servlet
() - Constructor for class javax.
servlet
.http.Http
Servlet
Does nothing, because this is an abstract class. Http
Servlet
Request
- interface javax.
servlet
.http.Http
Servlet
Request
. Extends the
Servlet
Request
interface to provide
request
information for HTTP
servlet
s. Http
Servlet
Request
Wrapper - class javax.
servlet
.http.Http
Servlet
Request
Wrapper. Provides a convenient implementation of the Http
Servlet
Request
interface that can be subclassed by developers wishing to adapt the
request
to a
Servlet
. Http
Servlet
Request
Wrapper(Http
Servlet
Request
) - Constructor for class javax.
servlet
.http.Http
Servlet
Request
Wrapper Constructs a
request
object wrapping the given
request
. Http
Servlet
Response - interface javax.
servlet
.http.Http
Servlet
Response. Extends the
Servlet
Response interface to provide HTTP-specific functionality in sending a response. Http
Servlet
ResponseWrapper - class javax.
servlet
.http.Http
Servlet
ResponseWrapper. Provides a convenient implementation of the Http
Servlet
Response interface that can be subclassed by developers wishing to adapt the response from a
Servlet
. Http
Servlet
ResponseWrapper(Http
Servlet
Response) - Constructor for class javax.
servlet
.http.Http
Servlet
ResponseWrapper Constructs a response adaptor wrapping the given response. HttpSession - interface javax.
servlet
.http.HttpSession. Provides a way to identify a user across more than one page
request
or visit to a Web site and to store information about that user. HttpSessionActivationListener - interface javax.
servlet
.http.HttpSessionActivationListener. Objects that are bound to a session may listen to container events notifying them that sessions will be passivated and that session will be activated. HttpSessionAttributeListener - interface javax.
servlet
.http.HttpSessionAttributeListener. This listener interface can be implemented in order to get notifications of changes to the attribute lists of sessions within this web application. HttpSessionBindingEvent - class javax.
servlet
.http.HttpSessionBindingEvent. Events of this type are either sent to an object that implements HttpSessionBindingListener when it is bound or unbound from a session, or to a HttpSessionAttributeListener that has been configured in the deployment descriptor when any attribute is bound, unbound or replaced in a session. HttpSessionBindingEvent(HttpSession, String) - Constructor for class javax.
servlet
.http.HttpSessionBindingEvent Constructs an event that notifies an object that it has been bound to or unbound from a session. HttpSessionBindingEvent(HttpSession, String, Object) - Constructor for class javax.
servlet
.http.HttpSessionBindingEvent Constructs an event that notifies an object that it has been bound to or unbound from a session. HttpSessionBindingListener - interface javax.
servlet
.http.HttpSessionBindingListener. Causes an object to be notified when it is bound to or unbound from a session. HttpSessionContext - interface javax.
servlet
.http.HttpSessionContext.
Deprecated
. As of Java(tm)
Servlet
API 2.1 for security reasons, with no replacement. This interface will be removed in a future version of this API. HttpSessionEvent - class javax.
servlet
.http.HttpSessionEvent. This is the class representing event notifications for changes to sessions within a web application. HttpSessionEvent(HttpSession) - Constructor for class javax.
servlet
.http.HttpSessionEvent Construct a session event from the given source. HttpSessionListener - interface javax.
servlet
.http.HttpSessionListener. Implementations of this interface are notified of changes to the list of active sessions in a web application. HttpUtils - class javax.
servlet
.http.HttpUtils.
Deprecated
. As of Java(tm)
Servlet
API 2.3. These methods were only useful with the default encoding and have been moved to the
request
interfaces. HttpUtils() - Constructor for class javax.
servlet
.http.HttpUtils
Deprecated
. Constructs an empty HttpUtils object. -------------------------------------------------------------------------------- I include(
Servlet
Request
,
Servlet
Response) - Method in interface javax.
servlet
.
Request
Dispatcher Includes the content of a resource (
servlet
, JSP page, HTML file) in the response. init() - Method in class javax.
servlet
.Generic
Servlet
A convenience method which can be overridden so that there's no need to call super.init(config). init(FilterConfig) - Method in interface javax.
servlet
.Filter Called by the web container to indicate to a filter that it is being placed into service. init(
Servlet
Config) - Method in interface javax.
servlet
.
Servlet
Called by the
servlet
container to indicate to a
servlet
that the
servlet
is being placed into service. init(
Servlet
Config) - Method in class javax.
servlet
.Generic
Servlet
Called by the
servlet
container to indicate to a
servlet
that the
servlet
is being placed into service. invalidate() - Method in interface javax.
servlet
.http.HttpSession Invalidates this session then unbinds any objects bound to it. isCommitted() - Method in interface javax.
servlet
.
Servlet
Response Returns a boolean indicating if the response has been committed. isCommitted() - Method in class javax.
servlet
.
Servlet
ResponseWrapper The default behavior of this method is to return isCommitted() on the wrapped response object. isNew() - Method in interface javax.
servlet
.http.HttpSession Returns true if the client does not yet know about the session or if the client chooses not to join the session. isPermanent() - Method in class javax.
servlet
.UnavailableException Returns a boolean indicating whether the
servlet
is permanently unavailable. is
Request
edSessionIdFromCookie() - Method in interface javax.
servlet
.http.Http
Servlet
Request
Checks whether the
request
ed session ID came in as a cookie. is
Request
edSessionIdFromCookie() - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return is
Request
edSessionIdFromCookie() on the wrapped
request
object. is
Request
edSessionIdFromUrl() - Method in interface javax.
servlet
.http.Http
Servlet
Request
Deprecated
. As of Version 2.1 of the Java
Servlet
API, use Http
Servlet
Request
.is
Request
edSessionIdFromURL() instead. is
Request
edSessionIdFromUrl() - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return is
Request
edSessionIdFromUrl() on the wrapped
request
object. is
Request
edSessionIdFromURL() - Method in interface javax.
servlet
.http.Http
Servlet
Request
Checks whether the
request
ed session ID came in as part of the
request
URL. is
Request
edSessionIdFromURL() - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return is
Request
edSessionIdFromURL() on the wrapped
request
object. is
Request
edSessionIdValid() - Method in interface javax.
servlet
.http.Http
Servlet
Request
Checks whether the
request
ed session ID is still valid. is
Request
edSessionIdValid() - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return is
Request
edSessionIdValid() on the wrapped
request
object. isSecure() - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to return isSecure() on the wrapped
request
object. isSecure() - Method in interface javax.
servlet
.
Servlet
Request
Returns a boolean indicating whether this
request
was made using a secure channel, such as HTTPS. isUserInRole(String) - Method in interface javax.
servlet
.http.Http
Servlet
Request
Returns a boolean indicating whether the authenticated user is included in the specified logical "role". isUserInRole(String) - Method in class javax.
servlet
.http.Http
Servlet
Request
Wrapper The default behavior of this method is to return isUserInRole(String role) on the wrapped
request
object. -------------------------------------------------------------------------------- J javax.
servlet
- package javax.
servlet
This chapter describes the javax.
servlet
package. javax.
servlet
.http - package javax.
servlet
.http This chapter describes the javax.
servlet
.http package. -------------------------------------------------------------------------------- L log(Exception, String) - Method in interface javax.
servlet
.
Servlet
Context
Deprecated
. As of Java
Servlet
API 2.1, use
Servlet
Context.log(String message, Throwable throwable) instead. This method was originally defined to write an exception's stack trace and an explanatory error message to the
servlet
log file. log(String) - Method in interface javax.
servlet
.
Servlet
Context Writes the specified message to a
servlet
log file, usually an event log. log(String) - Method in class javax.
servlet
.Generic
Servlet
Writes the specified message to a
servlet
log file, prepended by the
servlet
's name. log(String, Throwable) - Method in interface javax.
servlet
.
Servlet
Context Writes an explanatory message and a stack trace for a given Throwable exception to the
servlet
log file. log(String, Throwable) - Method in class javax.
servlet
.Generic
Servlet
Writes an explanatory message and a stack trace for a given Throwable exception to the
servlet
log file, prepended by the
servlet
's name. -------------------------------------------------------------------------------- P parsePostData(int,
Servlet
InputStream) - Static method in class javax.
servlet
.http.HttpUtils
Deprecated
. 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. parseQueryString(String) - Static method in class javax.
servlet
.http.HttpUtils
Deprecated
. Parses a query string passed from the client to the server and builds a HashTable object with key-value pairs. print(boolean) - Method in class javax.
servlet
.
Servlet
OutputStream Writes a boolean value to the client, with no carriage return-line feed (CRLF) character at the end. print(char) - Method in class javax.
servlet
.
Servlet
OutputStream Writes a character to the client, with no carriage return-line feed (CRLF) at the end. print(double) - Method in class javax.
servlet
.
Servlet
OutputStream Writes a double value to the client, with no carriage return-line feed (CRLF) at the end. print(float) - Method in class javax.
servlet
.
Servlet
OutputStream Writes a float value to the client, with no carriage return-line feed (CRLF) at the end. print(int) - Method in class javax.
servlet
.
Servlet
OutputStream Writes an int to the client, with no carriage return-line feed (CRLF) at the end. print(long) - Method in class javax.
servlet
.
Servlet
OutputStream Writes a long value to the client, with no carriage return-line feed (CRLF) at the end. print(String) - Method in class javax.
servlet
.
Servlet
OutputStream Writes a String to the client, without a carriage return-line feed (CRLF) character at the end. println() - Method in class javax.
servlet
.
Servlet
OutputStream Writes a carriage return-line feed (CRLF) to the client. println(boolean) - Method in class javax.
servlet
.
Servlet
OutputStream Writes a boolean value to the client, followed by a carriage return-line feed (CRLF). println(char) - Method in class javax.
servlet
.
Servlet
OutputStream Writes a character to the client, followed by a carriage return-line feed (CRLF). println(double) - Method in class javax.
servlet
.
Servlet
OutputStream Writes a double value to the client, followed by a carriage return-line feed (CRLF). println(float) - Method in class javax.
servlet
.
Servlet
OutputStream Writes a float value to the client, followed by a carriage return-line feed (CRLF). println(int) - Method in class javax.
servlet
.
Servlet
OutputStream Writes an int to the client, followed by a carriage return-line feed (CRLF) character. println(long) - Method in class javax.
servlet
.
Servlet
OutputStream Writes a long value to the client, followed by a carriage return-line feed (CRLF). println(String) - Method in class javax.
servlet
.
Servlet
OutputStream Writes a String to the client, followed by a carriage return-line feed (CRLF). putValue(String, Object) - Method in interface javax.
servlet
.http.HttpSession
Deprecated
. As of Version 2.2, this method is replaced by HttpSession.setAttribute(java.lang.String, java.lang.Object) -------------------------------------------------------------------------------- R readLine(byte[], int, int) - Method in class javax.
servlet
.
Servlet
InputStream Reads the input stream, one line at a time. removeAttribute(String) - Method in interface javax.
servlet
.
Servlet
Context Removes the attribute with the given name from the
servlet
context. removeAttribute(String) - Method in class javax.
servlet
.
Servlet
Request
Wrapper The default behavior of this method is to call removeAttribute(String name) on the wrapped
request
object. removeAttribute(String) - Method in interface javax.
servlet
.
Servlet
Request
Removes an attribute from this
request
. removeAttribute(String) - Method in interface javax.
servlet
.http.HttpSession Removes the object bound with the specified name from this session. removeValue(String) - Method in interface javax.
servlet
.http.HttpSession
Deprecated
. As of Version 2.2, this method is replaced by HttpSession.removeAttribute(java.lang.String)
request
Destroyed(
Servlet
Request
Event) - Method in interface javax.
servlet
.
Servlet
Request
Listener The
request
is about to go out of scope of the web application.
Request
Dispatcher - interface javax.
servlet
.
Request
Dispatcher. Defines an object that receives
request
s from the client and sends them to any resource (such as a
servlet
, HTML file, or JSP file) on the server.
request
Initialized(
Servlet
Request
Event) - Method in interface javax.
servlet
.
Servlet
Request
Listener The
request
is about to come into scope of the web application. reset() - Method in interface javax.
servlet
.
Servlet
Response Clears any data that exists in the buffer as well as the status code and headers. reset() - Method in class javax.
servlet
.
Servlet
ResponseWrapper The default behavior of this method is to call reset() on the wrapped response object. resetBuffer() - Method in interface javax.
servlet
.
Servlet
Response Clears the content of the underlying buffer in the response without clearing headers or status code. resetBuffer() - Method in class javax.
servlet
.
Servlet
ResponseWrapper The default behavior of this method is to call resetBuffer() on the wrapped response object. -------------------------------------------------------------------------------- S SC_ACCEPTED - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (202) indicating that a
request
was accepted for processing, but was not completed. SC_BAD_GATEWAY - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (502) indicating that the HTTP server received an invalid response from a server it consulted when acting as a proxy or gateway. SC_BAD_
REQUEST
- Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (400) indicating the
request
sent by the client was syntactically incorrect. SC_CONFLICT - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (409) indicating that the
request
could not be completed due to a conflict with the current state of the resource. SC_CONTINUE - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (100) indicating the client can continue. SC_CREATED - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (201) indicating the
request
succeeded and created a new resource on the server. SC_EXPECTATION_FAILED - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (417) indicating that the server could not meet the expectation given in the Expect
request
header. SC_FORBIDDEN - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (403) indicating the server understood the
request
but refused to fulfill it. SC_FOUND - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (302) indicating that the resource reside temporarily under a different URI. SC_GATEWAY_TIMEOUT - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (504) indicating that the server did not receive a timely response from the upstream server while acting as a gateway or proxy. SC_GONE - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (410) indicating that the resource is no longer available at the server and no forwarding address is known. SC_HTTP_VERSION_NOT_SUPPORTED - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (505) indicating that the server does not support or refuses to support the HTTP protocol version that was used in the
request
message. SC_INTERNAL_SERVER_ERROR - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (500) indicating an error inside the HTTP server which prevented it from fulfilling the
request
. SC_LENGTH_REQUIRED - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (411) indicating that the
request
cannot be handled without a defined Content-Length. SC_METHOD_NOT_ALLOWED - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (405) indicating that the method specified in the
Request
-Line is not allowed for the resource identified by the
Request
-URI. SC_MOVED_PERMANENTLY - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (301) indicating that the resource has permanently moved to a new location, and that future references should use a new URI with their
request
s. SC_MOVED_TEMPORARILY - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (302) indicating that the resource has temporarily moved to another location, but that future references should still use the original URI to access the resource. SC_MULTIPLE_CHOICES - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (300) indicating that the
request
ed resource corresponds to any one of a set of representations, each with its own specific location. SC_NO_CONTENT - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (204) indicating that the
request
succeeded but that there was no new information to return. SC_NON_AUTHORITATIVE_INFORMATION - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (203) indicating that the meta information presented by the client did not originate from the server. SC_NOT_ACCEPTABLE - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (406) indicating that the resource identified by the
request
is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the
request
. SC_NOT_FOUND - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (404) indicating that the
request
ed resource is not available. SC_NOT_IMPLEMENTED - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (501) indicating the HTTP server does not support the functionality needed to fulfill the
request
. SC_NOT_MODIFIED - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (304) indicating that a conditional GET operation found that the resource was available and not modified. SC_OK - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (200) indicating the
request
succeeded normally. SC_PARTIAL_CONTENT - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (206) indicating that the server has fulfilled the partial GET
request
for the resource. SC_PAYMENT_REQUIRED - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (402) reserved for future use. SC_PRECONDITION_FAILED - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (412) indicating that the precondition given in one or more of the
request
-header fields evaluated to false when it was tested on the server. SC_PROXY_AUTHENTICATION_REQUIRED - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (407) indicating that the client MUST first authenticate itself with the proxy. SC_
REQUEST
_ENTITY_TOO_LARGE - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (413) indicating that the server is refusing to process the
request
because the
request
entity is larger than the server is willing or able to process. SC_
REQUEST
_TIMEOUT - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (408) indicating that the client did not produce a
request
within the time that the server was prepared to wait. SC_
REQUEST
_URI_TOO_LONG - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (414) indicating that the server is refusing to service the
request
because the
Request
-URI is longer than the server is willing to interpret. SC_
REQUEST
ED_RANGE_NOT_SATISFIABLE - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (416) indicating that the server cannot serve the
request
ed byte range. SC_RESET_CONTENT - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (205) indicating that the agent SHOULD reset the document view which caused the
request
to be sent. SC_SEE_OTHER - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (303) indicating that the response to the
request
can be found under a different URI. SC_SERVICE_UNAVAILABLE - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (503) indicating that the HTTP server is temporarily overloaded, and unable to handle the
request
. SC_SWITCHING_PROTOCOLS - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (101) indicating the server is switching protocols according to Upgrade header. SC_TEMPORARY_REDIRECT - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (307) indicating that the
request
ed resource resides temporarily under a different URI. SC_UNAUTHORIZED - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (401) indicating that the
request
requires HTTP authentication. SC_UNSUPPORTED_MEDIA_TYPE - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (415) indicating that the server is refusing to service the
request
because the entity of the
request
is in a format not supported by the
request
ed resource for the
request
ed method. SC_USE_PROXY - Static variable in interface javax.
servlet
.http.Http
Servlet
Response Status code (305) indicating that the
request
ed resource MUST be accessed through the proxy given by the Location field. sendError(int) - Method in class javax.
servlet
.http.Http
Servlet
ResponseWrapper The default behavior of this method is to call sendError(int sc) on the wrapped response object. sendError(int) - Method in interface javax.
servlet
.http.Http
Servlet
Response Sends an error response to the client using the specified status code and clearing the buffer. sendError(int, String) - Method in class javax.
servlet
.http.Http
Servlet
ResponseWrapper The default behavior of this method is to call sendError(int sc, String msg) on the wrapped response object. sendError(int, String) - Method in interface javax.
servlet
.http.Http
Servlet
Response Sends an error response to the client using the specified status. sendRedirect(String) - Method in class javax.
servlet
.http.Http
Servlet
ResponseWrapper The default behavior of this method is to return sendRedirect(String location) on the wrapped response object. sendRedirect(String) - Method in interface javax.
servlet
.http.Http
Servlet
Response Sends a temporary redirect response to the client using the specified redirect location URL. service(Http
Servlet
Request
, Http
Servlet
Response) - Method in class javax.
servlet
.http.Http
Servlet
Receives standard HTTP
request
s from the public service method and dispatches them to the doXXX methods defined in this class. service(
Servlet
Request
,
Servlet
Response) - Method in interfac
The method getRealPath(String) from the type
Servlet
Request
is
deprecated
File tempFile = new File(fileName);// 构造临时对象 // String savePath=tempFile.getName(); // //返回上传文件在客户端的完整路径名称 //
request
.setAttribute("filename", savePath); //File file = new File(requ...
转 获取项目的绝对路径
1.关于
request
.getRealPath问题:String filename=
request
.getRealPath(filename)-------------------信息:warning: [deprecation] getRealPath(java.lang.String) in javax.
servlet
.
Servlet
Request
has been
deprecated
解决...
How tomcat works——11 StandardWrapper
概述我们在第5章中已经学到,一共有4种容器:engine(引擎)、host(主机)、context(上下文)和 wrapper(包装器)。并且在前面的章节里也介绍了如何建立自己的context 和 wrapper。一个上下文一般包括一个或者多个包装器,每一个包装器代表一个
servlet
。本章将介绍Catalina 中 Wrapper 接口的标准实现。首先介绍了一个 HTTP 请求会唤醒的一系列方法
关于serveletContext.getRealPath()方法
1.关于
request
.getRealPath问题:String filename=
request
.getRealPath(filename)-------------------信息:warning: [deprecation] getRealPath(java.lang.String) in javax.
servlet
.
Servlet
Request
has been
deprecated
解决:
Web 开发
81,123
社区成员
341,745
社区内容
发帖
与我相关
我的任务
Web 开发
Java Web 开发
复制链接
扫一扫
分享
社区描述
Java Web 开发
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章