A C D E G H I M P R S T U V

A

allowOverwrite - Variable in class uk.co.weft.maybeupload.MaybeUploadServlet
whether to allow uploaded files to be overwritten when new files are uploaded; default is we don't
anon - Variable in class uk.co.weft.maybeupload.MultipartHandler
a counter to use to name anonymous part values (should never be needed)

C

CTE_7BIT - Variable in class uk.co.weft.maybeupload.MultipartHandler
content-transfer-encoding types, as mandated by RFC 1521, section 5.
CTE_8BIT - Variable in class uk.co.weft.maybeupload.MultipartHandler
 
CTE_BASE64 - Variable in class uk.co.weft.maybeupload.MultipartHandler
 
CTE_BINARY - Variable in class uk.co.weft.maybeupload.MultipartHandler
 
CTE_QUOTED_PRINTABLE - Variable in class uk.co.weft.maybeupload.MultipartHandler
 
CTE_XTOKEN - Variable in class uk.co.weft.maybeupload.MultipartHandler
 

D

DEBUG - Variable in class uk.co.weft.maybeupload.MultipartHandler
whether to print debugging output.
disallow(char, char) - Method in class uk.co.weft.maybeupload.MultipartHandler
mark the specified character as diallowed in filenames, and replace it if found with the specified replacement
disallow(String, char) - Method in class uk.co.weft.maybeupload.MultipartHandler
mark the specified characters as diallowed in filenames, and replace it if found with the specified replacement
disallowedCharacters - Variable in class uk.co.weft.maybeupload.MultipartHandler
Disallowed characters in filenames.
doDelete(MaybeUploadRequestWrapper, HttpServletResponse) - Method in class uk.co.weft.maybeupload.MaybeUploadServlet
Simple wrapper round HttpServlet.doDelete( ), so that you can depend on having a MaybeUploadRequestWrapper in your code.
doGet(MaybeUploadRequestWrapper, HttpServletResponse) - Method in class uk.co.weft.maybeupload.MaybeUploadServlet
Simple wrapper round HttpServlet.doGet( ), so that you can depend on having a MaybeUploadRequestWrapper in your code.
doGet(MaybeUploadRequestWrapper, HttpServletResponse) - Method in class uk.co.weft.maybeupload.SnoopServlet
 
doHead(MaybeUploadRequestWrapper, HttpServletResponse) - Method in class uk.co.weft.maybeupload.MaybeUploadServlet
doHead is a bit more tricky. not really handled in this version, although I'll happily integrate code from anyone else who is sufficiently confident to write an implementation.
doOptions(MaybeUploadRequestWrapper, HttpServletResponse) - Method in class uk.co.weft.maybeupload.MaybeUploadServlet
Simple wrapper round HttpServlet.doOptions( ), so that you can depend on having a MaybeUploadRequestWrapper in your code.
doPost(MaybeUploadRequestWrapper, HttpServletResponse) - Method in class uk.co.weft.maybeupload.MaybeUploadServlet
Simple wrapper round HttpServlet.doPost( ), so that you can depend on having a MaybeUploadRequestWrapper in your code.
doPost(MaybeUploadRequestWrapper, HttpServletResponse) - Method in class uk.co.weft.maybeupload.SnoopServlet
 
doPut(MaybeUploadRequestWrapper, HttpServletResponse) - Method in class uk.co.weft.maybeupload.MaybeUploadServlet
Simple wrapper round HttpServlet.doPut( ), so that you can depend on having a MaybeUploadRequestWrapper in your code.
doTrace(MaybeUploadRequestWrapper, HttpServletResponse) - Method in class uk.co.weft.maybeupload.MaybeUploadServlet
Simple wrapper round HttpServlet.doTrace( ), so that you can depend on having a MaybeUploadRequestWrapper in your code.
DumpServlet - class uk.co.weft.maybeupload.DumpServlet.
Crude basic debugging tool.
DumpServlet() - Constructor for class uk.co.weft.maybeupload.DumpServlet
 

E

EndOfPartException - exception uk.co.weft.maybeupload.EndOfPartException.
an extremely kludgy way of implementing the nasty recursion necessary in readrfc1867()
EndOfPartException(String) - Constructor for class uk.co.weft.maybeupload.EndOfPartException
 

G

get(String) - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
The preferred method of accessing parameter values; use this in preference to either (@link getParameter) or (@link getParameterValues).
getAttribute(String) - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns the value of the named attribute as an Object, or null if no attribute of the given name exists.
getAttributeNames() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns an Enumeration containing the names of the attributes available to this request.
getAuthType() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns the name of the authentication scheme used to protect the servlet, for example, "BASIC" or "SSL," or null if the servlet was not protected.
getCharacterEncoding() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns the name of the character encoding used in the body of this request.
getContentLength() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
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 class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns the MIME type of the body of the request, or null if the type is not known.
getContextPath() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns the portion of the request URI that indicates the context of the request.
getCookies() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns an array containing all of the Cookie objects the client sent with this request.
getDateHeader(String) - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns the value of the specified request header as a long value that represents a Date object.
getHeader(String) - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns the value of the specified request header as a String.
getHeaderNames() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns an enumeration of all the header names this request contains.
getHeaders(String) - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns all the values of the specified request header as an Enumeration of String objects.
getInputStream() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Retrieves the body of the request as binary data using a ServletInputStream.
getIntHeader(String) - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns the value of the specified request header as an int.
getLocale() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns the preferred Locale that the client will accept content in, based on the Accept-Language header.
getLocales() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
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.
getMethod() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns the name of the HTTP method with which this request was made, for example, GET, POST, or PUT.
getParameter(String) - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Return a String representation of the value of the named parameter if any, else null.
getParameterNames() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns an Enumeration of String objects containing the names of the parameters contained in this request.
getParameterValues(String) - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Return a representation of the values of the named parameter if any, as an array of Strings; else null.
getPathInfo() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns any extra path information associated with the URL the client sent when it made this request.
getPathTranslated() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns any extra path information after the servlet name but before the query string, and translates it to a real path.
getProtocol() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
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 class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns the query string that is contained in the request URL after the path.
getReader() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Retrieves the body of the request as character data using a BufferedReader.
getRealPath(String) - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Deprecated. As of Version 2.1 of the Java Servlet API, use ServletContext.getRealPath(java.lang.String) instead.
getRemoteAddr() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns the Internet Protocol (IP) address of the client that sent the request.
getRemoteHost() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns the fully qualified name of the client that sent the request, or the IP address of the client if the name cannot be determined.
getRemoteUser() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns the login of the user making this request, if the user has been authenticated, or null if the user has not been authenticated.
getRequest() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Occasionally a servlet will need access to the request wrapped within a MaybeUploadRequestWrapper.
getRequestDispatcher(String) - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns a RequestDispatcher object that acts as a wrapper for the resource located at the given path.
getRequestedSessionId() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns the session ID specified by the client.
getRequestURI() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
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.
getScheme() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns the name of the scheme used to make this request, for example, http, https, or ftp.
getServerName() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns the host name of the server that received the request.
getServerPort() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns the port number on which this request was received.
getServletPath() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns the part of this request's URL that calls the servlet.
getSession() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns the current session associated with this request, or if the request does not have a session, creates one.
getSession(boolean) - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns the current HttpSession associated with this request or, if if there is no current session and create is true, returns a new session.
getUploadDir() - Method in class uk.co.weft.maybeupload.MaybeUploadServlet
 
getUploadURL() - Method in class uk.co.weft.maybeupload.MaybeUploadServlet
 
getUserPrincipal() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns a java.security.Principal object containing the name of the current authenticated user.

H

handleFilePart(Hashtable, char, String) - Method in class uk.co.weft.maybeupload.MultipartHandler
read a value from the input stream up to the next boundary, save it to a file in my workdir whose name is the value of the 'filename' header in these headers, and cache a File object describing it in my values on the name which is the value of the "name" header in these headers
handleInlinePart(Hashtable, char, String) - Method in class uk.co.weft.maybeupload.MultipartHandler
read a value from the input stream up to the next boundary, and cache it in my values on the name which is the value of the "name" header in these headers
handlePart(String, String) - Method in class uk.co.weft.maybeupload.MultipartHandler
handle a single part of a multipart file, starting with this line which has already been read in

I

init(ServletConfig) - Method in class uk.co.weft.maybeupload.MaybeUploadServlet
 
isRequestedSessionIdFromCookie() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Checks whether the requested session ID came in as a cookie.
isRequestedSessionIdFromUrl() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Deprecated. As of Version 2.1 of the Java Servlet API, use MaybeUploadRequestWrapper.isRequestedSessionIdFromURL() instead.
isRequestedSessionIdFromURL() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Checks whether the requested session ID came in as part of the request URL.
isRequestedSessionIdValid() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Checks whether the requested session ID is still valid.
isSecure() - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS.
isUserInRole(String) - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Returns a boolean indicating whether the authenticated user is included in the specified logical "role".

M

main(String[]) - Static method in class uk.co.weft.maybeupload.TestHarness
 
maxUpload - Variable in class uk.co.weft.maybeupload.MaybeUploadServlet
the maximum upload size: by default, half a megabyte.
maxUpload - Variable in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
the maximum upload size.
MaybeUploadRequestWrapper - class uk.co.weft.maybeupload.MaybeUploadRequestWrapper.
A wrapper around a ServletRequest, which knows how to handle multipart/form-data requests gracefully.
MaybeUploadRequestWrapper() - Constructor for class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
we advise you do not use this!
MaybeUploadRequestWrapper(HttpServletRequest) - Constructor for class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Deprecated. do not use. Not supported. Will be withdrawn soon. If you have any code which uses this class directly, please keep it up to date with maybeupload package.
MaybeUploadRequestWrapper(HttpServletRequest, boolean, File, boolean, boolean, int) - Constructor for class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
 
MaybeUploadRequestWrapper(HttpServletRequest, File, boolean, boolean) - Constructor for class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Deprecated. do not use. Not supported. Will be withdrawn soon. If you have any code which uses this class directly, please keep it up to date with maybeupload package.
MaybeUploadServlet - class uk.co.weft.maybeupload.MaybeUploadServlet.
A superclass for Servlets which may need to handle file upload.
MaybeUploadServlet() - Constructor for class uk.co.weft.maybeupload.MaybeUploadServlet
 
MFDHEADER - Variable in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
the standard identifying header of a multipart request
MultipartHandler - class uk.co.weft.maybeupload.MultipartHandler.
A handler for multipart-form-data data per RFC 1867.
MultipartHandler(Hashtable, InputStream, int, String, File) - Constructor for class uk.co.weft.maybeupload.MultipartHandler
read multiple values from this RFC 1867 formatted input stream into this hashtable
MultipartHandler(Hashtable, InputStream, int, String, File, boolean, boolean, boolean) - Constructor for class uk.co.weft.maybeupload.MultipartHandler
read multiple values from this RFC 1867 formatted input stream into this hashtable

P

put(String, Object) - Method in class uk.co.weft.maybeupload.MultipartHandler
within the name/value stream a name may have multiple values.

R

readLine(byte[], int, int, char) - Method in class uk.co.weft.maybeupload.MultipartHandler
read a line up to and including a CR/LF line end from my InputStream into this buffer.
removeAttribute(String) - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Removes an attribute from this request.

S

saveUploadedFilesToDisk - Variable in class uk.co.weft.maybeupload.MaybeUploadServlet
whether or not to save uploads directly to disk; default is we do
service(HttpServletRequest, HttpServletResponse) - Method in class uk.co.weft.maybeupload.DumpServlet
Dump the request input stream onto the response output, byte for byte, for analysis/debugging purposes.
service(HttpServletRequest, HttpServletResponse) - Method in class uk.co.weft.maybeupload.MaybeUploadServlet
Service a request.
setAttribute(String, Object) - Method in class uk.co.weft.maybeupload.MaybeUploadRequestWrapper
Stores an attribute in this request.
silentlyRename - Variable in class uk.co.weft.maybeupload.MaybeUploadServlet
whether or not to rename uploaded files to prevent name collisions; default is we do
SnoopServlet - class uk.co.weft.maybeupload.SnoopServlet.
A copy of SnoopServlet from the Servlet 2.2 reference implementation, modified to inherit from MaybeUploadServlet.
SnoopServlet() - Constructor for class uk.co.weft.maybeupload.SnoopServlet
 

T

TestHarness - class uk.co.weft.maybeupload.TestHarness.
A test-harness for the multipart-form-data handler.
TestHarness() - Constructor for class uk.co.weft.maybeupload.TestHarness
 

U

uk.co.weft.maybeupload - package uk.co.weft.maybeupload
 
uploadDir - Variable in class uk.co.weft.maybeupload.MaybeUploadServlet
the actual upload directory as a file object
uploadDirPath - Variable in class uk.co.weft.maybeupload.MaybeUploadServlet
file system local path to where I unpack files I have uploaded
uploadDirURL - Variable in class uk.co.weft.maybeupload.MaybeUploadServlet
the path to my upload directory (work directory) within the document root of the web server, if it is within the document root of the web server, else null.
UploadException - exception uk.co.weft.maybeupload.UploadException.
An exception to throw if upload fails
UploadException(String) - Constructor for class uk.co.weft.maybeupload.UploadException
 

V

values - Variable in class uk.co.weft.maybeupload.MultipartHandler
the name-value pairs I have identified

A C D E G H I M P R S T U V