- getBooleanCookie(String) - Method in class com.oreilly.servlet.CookieParser
-
Gets the named cookie value as a boolean
- getBooleanCookie(String, boolean) - Method in class com.oreilly.servlet.CookieParser
-
Gets the named cookie value as a boolean, with a default.
- getBooleanParameter(String) - Method in class com.oreilly.servlet.ParameterParser
-
Gets the named parameter value as a boolean, with true indicated by
"true", "on", or "yes" in any letter case, false indicated by "false",
"off", or "no" in any letter case.
- getBooleanParameter(String, boolean) - Method in class com.oreilly.servlet.ParameterParser
-
Gets the named parameter value as a boolean, with a default.
- getBundle() - Method in class com.oreilly.servlet.LocaleNegotiator
-
Gets the chosen bundle.
- getByteCookie(String) - Method in class com.oreilly.servlet.CookieParser
-
Gets the named cookie value as a byte
- getByteCookie(String, byte) - Method in class com.oreilly.servlet.CookieParser
-
Gets the named cookie value as a byte, with a default.
- getByteParameter(String) - Method in class com.oreilly.servlet.ParameterParser
-
Gets the named parameter value as a byte
- getByteParameter(String, byte) - Method in class com.oreilly.servlet.ParameterParser
-
Gets the named parameter value as a byte, with a default.
- getCharCookie(String) - Method in class com.oreilly.servlet.CookieParser
-
Gets the named cookie value as a char
- getCharCookie(String, char) - Method in class com.oreilly.servlet.CookieParser
-
Gets the named cookie value as a char, with a default.
- getCharParameter(String) - Method in class com.oreilly.servlet.ParameterParser
-
Gets the named parameter value as a char
- getCharParameter(String, char) - Method in class com.oreilly.servlet.ParameterParser
-
Gets the named parameter value as a char, with a default.
- getCharset() - Method in class com.oreilly.servlet.LocaleNegotiator
-
Gets the chosen charset.
- getCharset(Locale) - Static method in class com.oreilly.servlet.LocaleToCharsetMap
-
Gets the preferred charset for the given locale, or null if the locale
is not recognized.
- getCharsetForLocale(Locale, String) - Method in class com.oreilly.servlet.LocaleNegotiator
-
Gets the best charset for a given locale, selecting from a charset list.
- getContentType() - Method in class com.oreilly.servlet.multipart.FilePart
-
Returns the content type of the file data contained within.
- getContentType(String) - Method in class com.oreilly.servlet.MultipartRequest
-
Returns the content type of the specified file (as supplied by the
client browser), or null if the file was not included in the upload.
- getContentType(String) - Method in class com.oreilly.servlet.MultipartWrapper
-
- getDoubleCookie(String) - Method in class com.oreilly.servlet.CookieParser
-
Gets the named cookie value as a double
- getDoubleCookie(String, double) - Method in class com.oreilly.servlet.CookieParser
-
Gets the named cookie value as a double, with a default.
- getDoubleParameter(String) - Method in class com.oreilly.servlet.ParameterParser
-
Gets the named parameter value as a double
- getDoubleParameter(String, double) - Method in class com.oreilly.servlet.ParameterParser
-
Gets the named parameter value as a double, with a default.
- getFile(String) - Method in class com.oreilly.servlet.MultipartRequest
-
Returns a File object for the specified file saved on the server's
filesystem, or null if the file was not included in the upload.
- getFile(String) - Method in class com.oreilly.servlet.MultipartWrapper
-
- getFileName() - Method in class com.oreilly.servlet.multipart.FilePart
-
Returns the name that the file was stored with on the remote system,
or null
if the user didn't enter a file to be uploaded.
- getFileNames() - Method in class com.oreilly.servlet.MultipartRequest
-
Returns the names of all the uploaded files as an Enumeration of
Strings.
- getFileNames() - Method in class com.oreilly.servlet.MultipartWrapper
-
- getFilePath() - Method in class com.oreilly.servlet.multipart.FilePart
-
Returns the full path and name of the file on the remote system,
or null
if the user didn't enter a file to be uploaded.
- getFilesystemName(String) - Method in class com.oreilly.servlet.MultipartRequest
-
Returns the filesystem name of the specified file, or null if the
file was not included in the upload.
- getFilesystemName(String) - Method in class com.oreilly.servlet.MultipartWrapper
-
- getFloatCookie(String) - Method in class com.oreilly.servlet.CookieParser
-
Gets the named cookie value as a float
- getFloatCookie(String, float) - Method in class com.oreilly.servlet.CookieParser
-
Gets the named cookie value as a float, with a default.
- getFloatParameter(String) - Method in class com.oreilly.servlet.ParameterParser
-
Gets the named parameter value as a float
- getFloatParameter(String, float) - Method in class com.oreilly.servlet.ParameterParser
-
Gets the named parameter value as a float, with a default.
- getInputStream() - Method in class com.oreilly.servlet.multipart.FilePart
-
Returns an input stream which contains the contents of the
file supplied.
- getIntCookie(String) - Method in class com.oreilly.servlet.CookieParser
-
Gets the named cookie value as a int
- getIntCookie(String, int) - Method in class com.oreilly.servlet.CookieParser
-
Gets the named cookie value as a int, with a default.
- getIntParameter(String) - Method in class com.oreilly.servlet.ParameterParser
-
Gets the named parameter value as a int
- getIntParameter(String, int) - Method in class com.oreilly.servlet.ParameterParser
-
Gets the named parameter value as a int, with a default.
- getJavaVersion() - Static method in class com.oreilly.servlet.VersionDetector
-
Determines the JDK version number.
- getLocale() - Method in class com.oreilly.servlet.LocaleNegotiator
-
Gets the chosen locale.
- getLongCookie(String) - Method in class com.oreilly.servlet.CookieParser
-
Gets the named cookie value as a long
- getLongCookie(String, long) - Method in class com.oreilly.servlet.CookieParser
-
Gets the named cookie value as a long, with a default.
- getLongParameter(String) - Method in class com.oreilly.servlet.ParameterParser
-
Gets the named parameter value as a long
- getLongParameter(String, long) - Method in class com.oreilly.servlet.ParameterParser
-
Gets the named parameter value as a long, with a default.
- getMissingParameters(String[]) - Method in class com.oreilly.servlet.ParameterParser
-
Determines which of the required parameters were missing from the
request.
- getName() - Method in class com.oreilly.servlet.multipart.Part
-
Returns the name of the form element that this Part corresponds to.
- getOriginalFileName(String) - Method in class com.oreilly.servlet.MultipartRequest
-
Returns the original filesystem name of the specified file (before any
renaming policy was applied), or null if the file was not included in
the upload.
- getOriginalFileName(String) - Method in class com.oreilly.servlet.MultipartWrapper
-
- getParameter(String) - Method in class com.oreilly.servlet.MultipartRequest
-
Returns the value of the named parameter as a String, or null if
the parameter was not sent or was sent without a value.
- getParameter(String) - Method in class com.oreilly.servlet.MultipartWrapper
-
- getParameterMap() - Method in class com.oreilly.servlet.MultipartWrapper
-
- getParameterNames() - Method in class com.oreilly.servlet.MultipartRequest
-
Returns the names of all the parameters as an Enumeration of
Strings.
- getParameterNames() - Method in class com.oreilly.servlet.MultipartWrapper
-
- getParameterValues(String) - Method in class com.oreilly.servlet.MultipartRequest
-
Returns the values of the named parameter as a String array, or null if
the parameter was not sent.
- getParameterValues(String) - Method in class com.oreilly.servlet.MultipartWrapper
-
- getPrintStream() - Method in class com.oreilly.servlet.MailMessage
-
Returns a PrintStream that can be used to write the body of the message.
- getRegistryName() - Method in class com.oreilly.servlet.RemoteDaemonHttpServlet
-
Returns the name under which the servlet should be bound in the
registry.
- getRegistryName() - Method in class com.oreilly.servlet.RemoteHttpServlet
-
Returns the name under which the servlet should be bound in the
registry.
- getRegistryPort() - Method in class com.oreilly.servlet.RemoteDaemonHttpServlet
-
Returns the port where the registry should be running.
- getRegistryPort() - Method in class com.oreilly.servlet.RemoteHttpServlet
-
Returns the port where the registry should be running.
- getResource(ServletContext, String) - Static method in class com.oreilly.servlet.ServletUtils
-
Gets a reference to the given resource within the given context,
making sure not to serve the contents of WEB-INF, META-INF, or to
display .jsp file source.
- getServlet(String, ServletRequest, ServletContext) - Static method in class com.oreilly.servlet.ServletUtils
-
Gets a reference to the named servlet, attempting to load it
through an HTTP request if necessary.
- getServletVersion() - Static method in class com.oreilly.servlet.VersionDetector
-
Determines the Servlet API version number.
- getShortCookie(String) - Method in class com.oreilly.servlet.CookieParser
-
Gets the named cookie value as a short
- getShortCookie(String, short) - Method in class com.oreilly.servlet.CookieParser
-
Gets the named cookie value as a short, with a default.
- getShortParameter(String) - Method in class com.oreilly.servlet.ParameterParser
-
Gets the named parameter value as a short
- getShortParameter(String, short) - Method in class com.oreilly.servlet.ParameterParser
-
Gets the named parameter value as a short, with a default.
- getSocketPort() - Method in class com.oreilly.servlet.DaemonHttpServlet
-
Returns the socket port on which the servlet will listen.
- getStackTraceAsString(Throwable) - Static method in class com.oreilly.servlet.ServletUtils
-
Gets an exception's stack trace as a String
- getStringCookie(String) - Method in class com.oreilly.servlet.CookieParser
-
Gets the named cookie value as a String
- getStringCookie(String, String) - Method in class com.oreilly.servlet.CookieParser
-
Gets the named cookie value as a String, with a default.
- getStringParameter(String) - Method in class com.oreilly.servlet.ParameterParser
-
Gets the named parameter value as a String
- getStringParameter(String, String) - Method in class com.oreilly.servlet.ParameterParser
-
Gets the named parameter value as a String, with a default.
- getStringValue() - Method in class com.oreilly.servlet.multipart.ParamPart
-
Returns the value of the parameter in as a string (using the
parser-specified encoding to convert from bytes) or the empty string
if the user entered no value for this parameter.
- getStringValue(String) - Method in class com.oreilly.servlet.multipart.ParamPart
-
Returns the value of the parameter in the supplied encoding
or empty string if the user entered no value for this parameter.
- getValue() - Method in class com.oreilly.servlet.multipart.ParamPart
-
Returns the value of the parameter as an array of bytes or a zero length
array if the user entered no value for this parameter.
- MacBinaryDecoderOutputStream - Class in com.oreilly.servlet.multipart
-
A MacBinaryDecoderOutput
filters MacBinary files to normal
files on the fly; optimized for speed more than readability.
- MacBinaryDecoderOutputStream(OutputStream) - Constructor for class com.oreilly.servlet.multipart.MacBinaryDecoderOutputStream
-
- MailMessage - Class in com.oreilly.servlet
-
A class to help send SMTP email.
- MailMessage() - Constructor for class com.oreilly.servlet.MailMessage
-
Constructs a new MailMessage to send an email.
- MailMessage(String) - Constructor for class com.oreilly.servlet.MailMessage
-
Constructs a new MailMessage to send an email.
- main(String[]) - Static method in class com.oreilly.servlet.Base64Decoder
-
- main(String[]) - Static method in class com.oreilly.servlet.Base64Encoder
-
- MultipartFilter - Class in com.oreilly.servlet
-
A filter for easy semi-automatic handling of multipart/form-data requests
(file uploads).
- MultipartFilter() - Constructor for class com.oreilly.servlet.MultipartFilter
-
- MultipartParser - Class in com.oreilly.servlet.multipart
-
A utility class to handle multipart/form-data
requests,
the kind of requests that support file uploads.
- MultipartParser(HttpServletRequest, int) - Constructor for class com.oreilly.servlet.multipart.MultipartParser
-
Creates a MultipartParser
from the specified request,
which limits the upload size to the specified length, buffers for
performance and prevent attempts to read past the amount specified
by the Content-Length.
- MultipartParser(HttpServletRequest, int, boolean, boolean) - Constructor for class com.oreilly.servlet.multipart.MultipartParser
-
Creates a MultipartParser
from the specified request,
which limits the upload size to the specified length, and optionally
buffers for performance and prevents attempts to read past the amount
specified by the Content-Length.
- MultipartParser(HttpServletRequest, int, boolean, boolean, String) - Constructor for class com.oreilly.servlet.multipart.MultipartParser
-
Creates a MultipartParser
from the specified request,
which limits the upload size to the specified length, and optionally
buffers for performance and prevents attempts to read past the amount
specified by the Content-Length, and with a specified encoding.
- MultipartRequest - Class in com.oreilly.servlet
-
A utility class to handle multipart/form-data
requests,
the kind of requests that support file uploads.
- MultipartRequest(HttpServletRequest, String) - Constructor for class com.oreilly.servlet.MultipartRequest
-
Constructs a new MultipartRequest to handle the specified request,
saving any uploaded files to the given directory, and limiting the
upload size to 1 Megabyte.
- MultipartRequest(HttpServletRequest, String, int) - Constructor for class com.oreilly.servlet.MultipartRequest
-
Constructs a new MultipartRequest to handle the specified request,
saving any uploaded files to the given directory, and limiting the
upload size to the specified length.
- MultipartRequest(HttpServletRequest, String, String) - Constructor for class com.oreilly.servlet.MultipartRequest
-
Constructs a new MultipartRequest to handle the specified request,
saving any uploaded files to the given directory, and limiting the
upload size to the specified length.
- MultipartRequest(HttpServletRequest, String, int, FileRenamePolicy) - Constructor for class com.oreilly.servlet.MultipartRequest
-
Constructs a new MultipartRequest to handle the specified request,
saving any uploaded files to the given directory, and limiting the
upload size to the specified length.
- MultipartRequest(HttpServletRequest, String, int, String) - Constructor for class com.oreilly.servlet.MultipartRequest
-
Constructs a new MultipartRequest to handle the specified request,
saving any uploaded files to the given directory, and limiting the
upload size to the specified length.
- MultipartRequest(HttpServletRequest, String, int, String, FileRenamePolicy) - Constructor for class com.oreilly.servlet.MultipartRequest
-
Constructs a new MultipartRequest to handle the specified request,
saving any uploaded files to the given directory, and limiting the
upload size to the specified length.
- MultipartRequest(ServletRequest, String) - Constructor for class com.oreilly.servlet.MultipartRequest
-
Constructor with an old signature, kept for backward compatibility.
- MultipartRequest(ServletRequest, String, int) - Constructor for class com.oreilly.servlet.MultipartRequest
-
Constructor with an old signature, kept for backward compatibility.
- MultipartResponse - Class in com.oreilly.servlet
-
A utility class to generate multipart/x-mixed-replace responses,
the kind of responses that implement server push.
- MultipartResponse(HttpServletResponse) - Constructor for class com.oreilly.servlet.MultipartResponse
-
Constructs a new MultipartResponse to send content to the given
servlet response.
- MultipartWrapper - Class in com.oreilly.servlet
-
A request wrapper to support MultipartFilter.
- MultipartWrapper(HttpServletRequest, String) - Constructor for class com.oreilly.servlet.MultipartWrapper
-
- read() - Method in class com.oreilly.servlet.Base64Decoder
-
Returns the next decoded character from the stream, or -1 if
end of stream was reached.
- read(byte[], int, int) - Method in class com.oreilly.servlet.Base64Decoder
-
Reads decoded data into an array of bytes and returns the actual
number of bytes read, or -1 if end of stream was reached.
- read() - Method in class com.oreilly.servlet.multipart.BufferedServletInputStream
-
Implement buffering on top of the read
method of
the wrapped ServletInputStream
.
- read(byte[], int, int) - Method in class com.oreilly.servlet.multipart.BufferedServletInputStream
-
Implement buffering on top of the read
method of
the wrapped ServletInputStream
.
- read() - Method in class com.oreilly.servlet.multipart.LimitedServletInputStream
-
Implement length limitation on top of the read
method of
the wrapped ServletInputStream
.
- read(byte[], int, int) - Method in class com.oreilly.servlet.multipart.LimitedServletInputStream
-
Implement length limitation on top of the read
method of
the wrapped ServletInputStream
.
- read() - Method in class com.oreilly.servlet.multipart.PartInputStream
-
See the general contract of the read
method of InputStream
.
- read(byte[]) - Method in class com.oreilly.servlet.multipart.PartInputStream
-
See the general contract of the read
method of InputStream
.
- read(byte[], int, int) - Method in class com.oreilly.servlet.multipart.PartInputStream
-
See the general contract of the read
method of InputStream
.
- readLine(byte[], int, int) - Method in class com.oreilly.servlet.multipart.BufferedServletInputStream
-
Implement buffering on top of the readLine
method of
the wrapped ServletInputStream
.
- readLine(byte[], int, int) - Method in class com.oreilly.servlet.multipart.LimitedServletInputStream
-
Implement length limitation on top of the readLine
method of
the wrapped ServletInputStream
.
- readNextPart() - Method in class com.oreilly.servlet.multipart.MultipartParser
-
Read the next part arriving in the stream.
- registry - Variable in class com.oreilly.servlet.RemoteDaemonHttpServlet
-
The registry for the servlet
- registry - Variable in class com.oreilly.servlet.RemoteHttpServlet
-
The registry for the servlet
- RemoteDaemonHttpServlet - Class in com.oreilly.servlet
-
A superclass for any HTTP servlet that wishes to act as an RMI server
and, additionally, accept raw socket connections.
- RemoteDaemonHttpServlet() - Constructor for class com.oreilly.servlet.RemoteDaemonHttpServlet
-
- RemoteHttpServlet - Class in com.oreilly.servlet
-
A superclass for any HTTP servlet that wishes to act as an RMI server.
- RemoteHttpServlet() - Constructor for class com.oreilly.servlet.RemoteHttpServlet
-
- rename(File) - Method in class com.oreilly.servlet.multipart.DefaultFileRenamePolicy
-
- rename(File) - Method in interface com.oreilly.servlet.multipart.FileRenamePolicy
-
Returns a File object holding a new name for the specified file.
- returnFile(String, OutputStream) - Static method in class com.oreilly.servlet.ServletUtils
-
Sends the contents of the specified file to the output stream
- returnURL(URL, OutputStream) - Static method in class com.oreilly.servlet.ServletUtils
-
Sends the contents of the specified URL to the output stream
- returnURL(URL, Writer) - Static method in class com.oreilly.servlet.ServletUtils
-
Sends the contents of the specified URL to the Writer (commonly either a
PrintWriter or JspWriter)
- sendAndClose() - Method in class com.oreilly.servlet.MailMessage
-
Sends the message and closes the connection to the server.
- sendGetMessage() - Method in class com.oreilly.servlet.HttpMessage
-
Performs a GET request to the servlet, with no query string.
- sendGetMessage(Properties) - Method in class com.oreilly.servlet.HttpMessage
-
Performs a GET request to the servlet, building
a query string from the supplied properties list.
- sendPostMessage() - Method in class com.oreilly.servlet.HttpMessage
-
Performs a POST request to the servlet, with no query string.
- sendPostMessage(Properties) - Method in class com.oreilly.servlet.HttpMessage
-
Performs a POST request to the servlet, building
post data from the supplied properties list.
- sendPostMessage(Serializable) - Method in class com.oreilly.servlet.HttpMessage
-
Performs a POST request to the servlet, uploading a serialized object.
- service(HttpServletRequest, HttpServletResponse) - Method in class com.oreilly.servlet.CacheHttpServlet
-
- ServletUtils - Class in com.oreilly.servlet
-
A collection of static utility methods useful to servlets.
- ServletUtils() - Constructor for class com.oreilly.servlet.ServletUtils
-
- setAuthorization(String, String) - Method in class com.oreilly.servlet.HttpMessage
-
Sets the authorization information for the request (using BASIC
authentication via the HTTP Authorization header).
- setCharacterEncoding(String) - Method in class com.oreilly.servlet.ParameterParser
-
Sets the character encoding (charset) of the request to help the parser
properly decode parameter values.
- setCookie(String, String) - Method in class com.oreilly.servlet.HttpMessage
-
Sets a request cookie with the given name and value.
- setEncoding(String) - Method in class com.oreilly.servlet.multipart.MultipartParser
-
Sets the encoding used to parse from here onward.
- setHeader(String, String) - Method in class com.oreilly.servlet.HttpMessage
-
Sets a request header with the given name and value.
- setHeader(String, String) - Method in class com.oreilly.servlet.MailMessage
-
Sets the named header to the given value.
- setRenamePolicy(FileRenamePolicy) - Method in class com.oreilly.servlet.multipart.FilePart
-
Puts in place the specified policy for handling file name collisions.
- setSubject(String) - Method in class com.oreilly.servlet.MailMessage
-
Sets the subject of the mail message.
- split(String, String) - Static method in class com.oreilly.servlet.ServletUtils
-
Splits a String into pieces according to a delimiter.
- startResponse(String) - Method in class com.oreilly.servlet.MultipartResponse
-
Begins a single response with the specified content type.