All Packages  Class Hierarchy

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Index of all Fields and Methods

A

available(). Method in class com.oreilly.servlet.multipart.PartInputStream
Returns the number of bytes that can be read from this input stream without blocking.

B

Base64Decoder(InputStream). Constructor for class com.oreilly.servlet.Base64Decoder
Constructs a new Base64 decoder that reads input from the given InputStream.
Base64Encoder(OutputStream). Constructor for class com.oreilly.servlet.Base64Encoder
Constructs a new Base64 encoder that writes output to the given OutputStream.
bcc(String). Method in class com.oreilly.servlet.MailMessage
Sets the bcc address.
bind(). Method in class com.oreilly.servlet.RemoteDaemonHttpServlet
Binds the servlet to the registry.
bind(). Method in class com.oreilly.servlet.RemoteHttpServlet
Binds the servlet to the registry.
BufferedServletInputStream(ServletInputStream). Constructor for class com.oreilly.servlet.multipart.BufferedServletInputStream
Creates a BufferedServletInputStream that wraps the provided ServletInputStream.

C

CacheHttpServlet(). Constructor for class com.oreilly.servlet.CacheHttpServlet
cc(String). Method in class com.oreilly.servlet.MailMessage
Sets the cc address.
close(). Method in class com.oreilly.servlet.Base64Encoder
Closes the stream, this MUST be called to ensure proper padding is written to the end of the output stream.
close(). Method in class com.oreilly.servlet.multipart.PartInputStream
Closes this input stream and releases any system resources associated with the stream.
CookieNotFoundException(). Constructor for class com.oreilly.servlet.CookieNotFoundException
Constructs a new CookieNotFoundException with no detail message.
CookieNotFoundException(String). Constructor for class com.oreilly.servlet.CookieNotFoundException
Constructs a new CookieNotFoundException with the specified detail message.
CookieParser(HttpServletRequest). Constructor for class com.oreilly.servlet.CookieParser
Constructs a new CookieParser to handle the cookies of the given request.

D

DaemonHttpServlet(). Constructor for class com.oreilly.servlet.DaemonHttpServlet
decode(String). Static method in class com.oreilly.servlet.Base64Decoder
Returns the decoded form of the given encoded string.
DEFAULT_PORT. Variable in class com.oreilly.servlet.DaemonHttpServlet
The default listening port (1313)
destroy(). Method in class com.oreilly.servlet.DaemonHttpServlet
Halts the thread listening for socket connections.
destroy(). Method in class com.oreilly.servlet.RemoteDaemonHttpServlet
Halts the servlet's RMI operations and halts the thread listening for socket connections.
destroy(). Method in class com.oreilly.servlet.RemoteHttpServlet
Halts the servlet's RMI operations.

E

encode(String). Static method in class com.oreilly.servlet.Base64Encoder
Returns the encoded form of the given unencoded string.
endResponse(). Method in class com.oreilly.servlet.MultipartResponse
Ends a single response.

F

finish(). Method in class com.oreilly.servlet.MultipartResponse
Finishes the multipart response.
from(String). Method in class com.oreilly.servlet.MailMessage
Sets the from address.

G

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.
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.
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.
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.
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.
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.
getParameterNames(). Method in class com.oreilly.servlet.MultipartRequest
Returns the names of all the parameters as an Enumeration of Strings.
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.
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 the default ISO-8859-1 encoding or 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.

H

handleClient(Socket). Method in class com.oreilly.servlet.DaemonHttpServlet
Handles a new socket connection.
HttpMessage(URL). Constructor for class com.oreilly.servlet.HttpMessage
Constructs a new HttpMessage that can be used to communicate with the servlet at the specified URL.
HttpsMessage(String). Constructor for class com.oreilly.servlet.HttpsMessage
Constructs a new HttpsMessage that can be used to communicate with the servlet at the specified URL using HTTPS.

I

init(ServletConfig). Method in class com.oreilly.servlet.DaemonHttpServlet
Begins a thread listening for socket connections.
init(ServletConfig). Method in class com.oreilly.servlet.RemoteDaemonHttpServlet
Begins the servlet's RMI operations and begins a thread listening for socket connections.
init(ServletConfig). Method in class com.oreilly.servlet.RemoteHttpServlet
Begins the servlet's RMI operations.
isFile(). Method in class com.oreilly.servlet.multipart.FilePart
Returns true to indicate this part is a file.
isFile(). Method in class com.oreilly.servlet.multipart.Part
Returns true if this Part is a FilePart.
isParam(). Method in class com.oreilly.servlet.multipart.ParamPart
Returns true to indicate this part is a parameter.
isParam(). Method in class com.oreilly.servlet.multipart.Part
Returns true if this Part is a ParamPart.

L

LimitedServletInputStream(ServletInputStream, int). Constructor for class com.oreilly.servlet.multipart.LimitedServletInputStream
Creates a LimitedServletInputStream with the specified length limit that wraps the provided ServletInputStream.
LocaleNegotiator(String, String, String). Constructor for class com.oreilly.servlet.LocaleNegotiator
Constructs a new LocaleNegotiator for the given bundle name, language list, and charset list.
LocaleToCharsetMap(). Constructor for class com.oreilly.servlet.LocaleToCharsetMap

M

MacBinaryDecoderOutputStream(OutputStream). Constructor for class com.oreilly.servlet.multipart.MacBinaryDecoderOutputStream
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
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.
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(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(HttpServletResponse). Constructor for class com.oreilly.servlet.MultipartResponse
Constructs a new MultipartResponse to send content to the given servlet response.

P

ParameterNotFoundException(). Constructor for class com.oreilly.servlet.ParameterNotFoundException
Constructs a new ParameterNotFoundException with no detail message.
ParameterNotFoundException(String). Constructor for class com.oreilly.servlet.ParameterNotFoundException
Constructs a new ParameterNotFoundException with the specified detail message.
ParameterParser(ServletRequest). Constructor for class com.oreilly.servlet.ParameterParser
Constructs a new ParameterParser to handle the parameters of the given request.

R

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(). 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(). 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.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(byte[], int, int). 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.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.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(). Constructor for class com.oreilly.servlet.RemoteDaemonHttpServlet
RemoteHttpServlet(). Constructor for class com.oreilly.servlet.RemoteHttpServlet
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, PrintWriter). Static method in class com.oreilly.servlet.ServletUtils
Sends the contents of the specified URL to the PrintWriter

S

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(). 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.
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.
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.

T

to(String). Method in class com.oreilly.servlet.MailMessage
Sets the to address.

U

unbind(). Method in class com.oreilly.servlet.RemoteDaemonHttpServlet
Unbinds the servlet from the registry.
unbind(). Method in class com.oreilly.servlet.RemoteHttpServlet
Unbinds the servlet from the registry.

V

VersionDetector(). Constructor for class com.oreilly.servlet.VersionDetector

W

write(byte[]). Method in class com.oreilly.servlet.multipart.MacBinaryDecoderOutputStream
write(byte[], int, int). Method in class com.oreilly.servlet.Base64Encoder
Writes the given byte array to the output stream in an encoded form.
write(byte[], int, int). Method in class com.oreilly.servlet.multipart.MacBinaryDecoderOutputStream
write(int). Method in class com.oreilly.servlet.Base64Encoder
Writes the given byte to the output stream in an encoded form.
write(int). Method in class com.oreilly.servlet.multipart.MacBinaryDecoderOutputStream
writeTo(File). Method in class com.oreilly.servlet.multipart.FilePart
Write this file part to a file or directory.
writeTo(OutputStream). Method in class com.oreilly.servlet.multipart.FilePart
Write this file part to the given output stream.