- GenericServlet - class javax.servlet.GenericServlet.
- Defines a generic, protocol-independent
servlet.
- GenericServlet() -
Constructor for class javax.servlet.GenericServlet
- Does nothing, because this
is an abstract class.
- getAttribute(String) -
Method in interface javax.servlet.ServletContext
- Returns the servlet engine attribute with the given name,
or
null
if there is none.
- getAttribute(String) -
Method in interface javax.servlet.ServletRequest
- Returns the value of the named attribute as an
Object
.
- getAttributeNames() -
Method in interface javax.servlet.ServletContext
- Returns an
Enumeration
containing the
attribute names available
within this servlet context.
- getAttributeNames() -
Method in interface javax.servlet.ServletRequest
- Returns an
Enumeration
containing the
names of the attributes available to this request.
- getAuthType() -
Method in interface javax.servlet.http.HttpServletRequest
- Returns the name of the authentication scheme the
server uses, for example, "BASIC" or "SSL," or
null
if the server does not have an authentication scheme.
- getCharacterEncoding() -
Method in interface javax.servlet.ServletResponse
- Returns the name of the character set encoding used for
the MIME body sent by this response.
- getCharacterEncoding() -
Method in interface javax.servlet.ServletRequest
- Returns the name of the character encoding style used in this
request.
- 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 interface javax.servlet.ServletRequest
- Returns the length, in bytes, of the content contained in the
request and sent by way of the input stream or -1 if the
length is not known.
- getContentType() -
Method in interface javax.servlet.ServletRequest
- Returns the MIME type of the content of the request, or
null
if the type is not known.
- getContext(String) -
Method in interface javax.servlet.ServletContext
- Returns a
ServletContext
object that
corresponds to a specified URL on the server.
- getCookies() -
Method in interface javax.servlet.http.HttpServletRequest
- Returns an array containing all of the
Cookie
objects the browser sent with this request.
- 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.HttpServletRequest
- Returns the value of the specified request header
as a
long
value that represents a
Date
object.
- getDomain() -
Method in class javax.servlet.http.Cookie
- Returns the domain name set for this cookie.
- getHeader(String) -
Method in interface javax.servlet.http.HttpServletRequest
- Returns the value of the specified request header
as a
String
.
- getHeaderNames() -
Method in interface javax.servlet.http.HttpServletRequest
- Returns an enumeration of all the header names
this request contains.
- 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.ServletConfig
- Returns a
String
containing the value of the
named initialization parameter, or null
if
the parameter does not exist.
- getInitParameter(String) -
Method in class javax.servlet.GenericServlet
- Returns a
String
containing the value of the named
initialization parameter.
- getInitParameterNames() -
Method in interface javax.servlet.ServletConfig
- 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 class javax.servlet.GenericServlet
- Returns the names of the initialization parameters for this
servlet as an enumeration of
String
objects.
- getInputStream() -
Method in interface javax.servlet.ServletRequest
- Retrieves binary data from the body of the request as
a
ServletInputStream
, which
gives you the ability to read one line at a time.
- getIntHeader(String) -
Method in interface javax.servlet.http.HttpServletRequest
- Returns the value of the specified request header
as an integer.
- 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.
- getLastModified(HttpServletRequest) -
Method in class javax.servlet.http.HttpServlet
- Returns the time the
HttpServletRequest
object was last modified,
in milliseconds since midnight January 1, 1970 GMT.
- getMajorVersion() -
Method in interface javax.servlet.ServletContext
- Returns the major version of the Java Servlet API that this
Web server supports.
- getMaxAge() -
Method in class javax.servlet.http.Cookie
- Returns the maximum age of the cookie, specified in seconds.
- getMaxInactiveInterval() -
Method in interface javax.servlet.http.HttpSession
- Returns the maximum time interval, in seconds, that
the servlet engine will keep this session open between
client requests.
- getMethod() -
Method in interface javax.servlet.http.HttpServletRequest
- Returns the name of the HTTP method with which this
request was made, for example, GET, POST, or PUT.
- getMimeType(String) -
Method in interface javax.servlet.ServletContext
- Returns the MIME type of the specified file, or
null
if
the MIME type is not known.
- getMinorVersion() -
Method in interface javax.servlet.ServletContext
- Returns the minor version of the Servlet API that this
Web server supports.
- getName() -
Method in class javax.servlet.http.HttpSessionBindingEvent
- Returns the name with which the object is bound to or
unbound from the session.
- getName() -
Method in class javax.servlet.http.Cookie
- Returns the name of the cookie.
- getOutputStream() -
Method in interface javax.servlet.ServletResponse
- Returns a
ServletOutputStream
suitable for writing binary
data in the response.
- getParameter(String) -
Method in interface javax.servlet.ServletRequest
- Returns the value of a request parameter as a
String
,
or null
if the parameter does not exist.
- getParameterNames() -
Method in interface javax.servlet.ServletRequest
- Returns an
Enumeration
of String
objects containing the names of the parameters contained
in this request.
- getParameterValues(String) -
Method in interface javax.servlet.ServletRequest
- 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 paths (that is, URIs) on the server
to which the browser returns this cookie.
- getPathInfo() -
Method in interface javax.servlet.http.HttpServletRequest
- Returns any extra path information associated with
the URL the client sent when it made this request.
- getPathTranslated() -
Method in interface javax.servlet.http.HttpServletRequest
- Returns any extra path information after the servlet name
but before the query string, and translates it to a real
path.
- getProtocol() -
Method in interface javax.servlet.ServletRequest
- 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.HttpServletRequest
- Returns the query string that is contained in the request
URL after the path.
- getReader() -
Method in interface javax.servlet.ServletRequest
- Returns the body of the request as a
BufferedReader
that translates character set encodings.
- getRealPath(String) -
Method in interface javax.servlet.ServletContext
- Returns a
String
containing the real path
that corresponds to a virtual path.
- getRealPath(String) -
Method in interface javax.servlet.ServletRequest
- Deprecated. As of Version 2.1 of the Java Servlet API,
use
ServletContext.getRealPath(java.lang.String)
instead.
- getRemoteAddr() -
Method in interface javax.servlet.ServletRequest
- Returns the Internet Protocol (IP) address of the client
that sent the request.
- getRemoteHost() -
Method in interface javax.servlet.ServletRequest
- Returns the fully qualified name of the client that sent the
request.
- getRemoteUser() -
Method in interface javax.servlet.http.HttpServletRequest
- Returns the name of the user making this request, if the
user has logged in using HTTP authentication.
- getRequestDispatcher(String) -
Method in interface javax.servlet.ServletContext
- Returns a
RequestDispatcher
object that acts
as a wrapper for the resource located at the named path.
- getRequestedSessionId() -
Method in interface javax.servlet.http.HttpServletRequest
- Returns the session ID specified by the client.
- getRequestURI() -
Method in interface javax.servlet.http.HttpServletRequest
- 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.
- getRequestURL(HttpServletRequest) -
Static method in class javax.servlet.http.HttpUtils
- Reconstructs the URL the client used to make the request,
using information in the
HttpServletRequest
object.
- getResource(String) -
Method in interface javax.servlet.ServletContext
- Returns the resource that is mapped to a specified
path.
- getResourceAsStream(String) -
Method in interface javax.servlet.ServletContext
- Returns the resource located at the named path as
an
InputStream
object.
- getRootCause() -
Method in class javax.servlet.ServletException
- Returns the
Throwable
system exception
that makes this servlet exception necessary.
- getScheme() -
Method in interface javax.servlet.ServletRequest
- 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 use a standard protocol.
- getServerInfo() -
Method in interface javax.servlet.ServletContext
- Returns the name and version of the servlet engine on which
the servlet is running.
- getServerName() -
Method in interface javax.servlet.ServletRequest
- Returns the host name of the server that received the request.
- getServerPort() -
Method in interface javax.servlet.ServletRequest
- Returns the port number on which this request was received.
- getServlet() -
Method in class javax.servlet.UnavailableException
- Returns the servlet that is reporting its unavailability.
- getServlet(String) -
Method in interface javax.servlet.ServletContext
- Deprecated. As of Java Servlet API 2.1, with no replacement.
This method was originally defined to retrieve a servlet
from a ServletContext
. 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.
- getServletConfig() -
Method in interface javax.servlet.Servlet
- Returns a
ServletConfig
object, which contains
initialization and startup parameters for this servlet.
- getServletConfig() -
Method in class javax.servlet.GenericServlet
- Returns a
ServletConfig
object, which gives
a servlet its initialization parameters.
- getServletContext() -
Method in interface javax.servlet.ServletConfig
- Returns the
ServletContext
object that the server
has passed to this servlet.
- getServletContext() -
Method in class javax.servlet.GenericServlet
- Returns a
ServletContext
object, which contains
information about the servlet engine on which the servlet
is running.
- getServletInfo() -
Method in interface javax.servlet.Servlet
- Returns information about the servlet, such
as author, version, and copyright.
- getServletInfo() -
Method in class javax.servlet.GenericServlet
- Returns a
String
that contains information about
the servlet such as its author, version, and copyright information.
- getServletNames() -
Method in interface javax.servlet.ServletContext
- 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.
- getServletPath() -
Method in interface javax.servlet.http.HttpServletRequest
- Returns the part of this request's URL that calls
the servlet.
- getServlets() -
Method in interface javax.servlet.ServletContext
- Deprecated. As of Java Servlet API 2.0, with no replacement.
This method was originally defined to return an Enumeration
of all the servlets 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 interface javax.servlet.http.HttpServletRequest
- 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.HttpSessionBindingEvent
- Returns the session to or from which the object is
bound or unbound.
- getSession(boolean) -
Method in interface javax.servlet.http.HttpServletRequest
- Returns the current
HttpSession
associated with this request or, if necessary, creates
a new session for the request.
- 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.
- getValue() -
Method in class javax.servlet.http.Cookie
- Returns the value of the cookie.
- getValue(String) -
Method in interface javax.servlet.http.HttpSession
- Returns the object bound with the specified name
in this session or null if no object of
that name exists.
- getValueNames() -
Method in interface javax.servlet.http.HttpSession
- Returns an array containing the names of all the objects
bound to this session.
- getVersion() -
Method in class javax.servlet.http.Cookie
- Returns the version of the protocol this cookie complies
with.
- getWriter() -
Method in interface javax.servlet.ServletResponse
- Returns a
PrintWriter
object that you
can use to send character text to the client.