|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.ServletRequestWrapper | +--javax.servlet.http.HttpServletRequestWrapper | +--planetj.http.MultipartRequest
A MultipartRequest object serves as a wrapper around HttpServletRequest objects whose content type is "multipart/form-data". Requests of that type contain information that cannot be retrieved via the normal methods (such as getParameter()). Portions of this class are covered under a copyright by Sun (Copyright (c) 1995-1997 Sun Microsystems, Inc. All Rights Reserved) and are the confidential and proprietary information of Sun Microsystems, Inc. ("Confidential Information"). You shall not disclose such Confidential Information and shall use it only in accordance with the terms of the license agreement you entered into with Sun or else.
Field Summary |
Fields inherited from interface javax.servlet.http.HttpServletRequest |
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
Method Summary | |
static javax.servlet.http.HttpServletRequest |
createMultipartRequest(javax.servlet.http.HttpServletRequest originalRequest)
Creates a new MultipartRequest object which wraps the passed HttpServletRequest. |
String |
getParameter(String name)
Gets the parameter with the specified name. |
Map |
getParameterMap()
Returns a Map of the parameters of this request. |
Enumeration |
getParameterNames()
Returns the names of all the parameters in this request. |
String[] |
getParameterValues(String name)
Gets the value of any parameter with the specified name. |
StringBuffer |
getRequestURL()
|
static boolean |
isMultipartEncoded(javax.servlet.http.HttpServletRequest req)
Tests if the encoding of the request is set to "multipart/form-data". |
static boolean |
isTooLarge(javax.servlet.http.HttpServletRequest req)
Tests if the request's size exceeds the maximum allowable size. |
void |
setCharacterEncoding(String arg0)
|
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper |
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole |
Methods inherited from class javax.servlet.ServletRequestWrapper |
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocale, getLocales, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setRequest |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.ServletRequest |
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocale, getLocales, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute |
Method Detail |
public static javax.servlet.http.HttpServletRequest createMultipartRequest(javax.servlet.http.HttpServletRequest originalRequest) throws CMException
originalRequest
- An HttpServletRequest (which must have multipart encoding) that will be wrapped in a
MultipartRequest.
sli.ccs.fw.exception.RequestTooLarge
- Thrown if the passed request was too large to parse.
sli.ccs.fw.exception.MalformedRequestException
- Thrown if there was an error parsing the request, or if the
request did not have multipart encoding.
CMException
public String getParameter(String name)
getParameter
in interface javax.servlet.ServletRequest
getParameter
in class javax.servlet.ServletRequestWrapper
name
- The name of the parameter to return.
public Map getParameterMap()
getParameterMap
in interface javax.servlet.ServletRequest
getParameterMap
in class javax.servlet.ServletRequestWrapper
public Enumeration getParameterNames()
getParameterNames
in interface javax.servlet.ServletRequest
getParameterNames
in class javax.servlet.ServletRequestWrapper
public String[] getParameterValues(String name)
getParameterValues
in interface javax.servlet.ServletRequest
getParameterValues
in class javax.servlet.ServletRequestWrapper
name
- The name of the parameter(s) of interest
public StringBuffer getRequestURL()
getRequestURL
in interface javax.servlet.http.HttpServletRequest
getRequestURL
in class javax.servlet.http.HttpServletRequestWrapper
HttpServletRequest.getRequestURL()
public static boolean isMultipartEncoded(javax.servlet.http.HttpServletRequest req)
req
- An HttpServletRequest
true
if the request's encoding is "multipart/form-data" and false
otherwise.public static boolean isTooLarge(javax.servlet.http.HttpServletRequest req)
req
- An HttpServletRequest
true
if the request's size exceeds the maximum allowable size, false
otherwise.public void setCharacterEncoding(String arg0) throws UnsupportedEncodingException
setCharacterEncoding
in interface javax.servlet.ServletRequest
setCharacterEncoding
in class javax.servlet.ServletRequestWrapper
UnsupportedEncodingException
ServletRequest.setCharacterEncoding(String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |