|
Esri Geoportal Server 1.0
|
||||||||
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 com.esri.gpt.control.filter.MultipartWrapper
public class MultipartWrapper
HTTP servlet request wrapper for a multipart requests.
The wrapper uses the org.apache.commons.fileupload package for parsing and handling the incoming request.
The typical usage is based upon an incoming form with an enctype of multipart/form-data.
org.apache.commons.fileupload.FileUploadBase$FileSizeLimitExceededException is the exception thrown when the uploaded file size exceeds the limit.
Field Summary |
---|
Fields inherited from interface javax.servlet.http.HttpServletRequest |
---|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
Constructor Summary | |
---|---|
MultipartWrapper(HttpServletRequest request)
Construct with a current HTTP servlet request. |
Method Summary | |
---|---|
String |
getParameter(String name)
Gets the form parameter value associated with a name. |
Map |
getParameterMap()
Gets the form parameter map. |
Enumeration |
getParameterNames()
Gets the form parameter names. |
String[] |
getParameterValues(String name)
Gets the form parameter values associated with a name. |
static boolean |
isMultipartContent(ServletRequest request)
Determine if a request contains multipart content. |
Methods inherited from class javax.servlet.ServletRequestWrapper |
---|
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.ServletRequest |
---|
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding |
Constructor Detail |
---|
public MultipartWrapper(HttpServletRequest request) throws org.apache.commons.fileupload.FileUploadException
request
- the current HTTP servlet request
org.apache.commons.fileupload.FileUploadException
- if an exception occurs during file uploadMethod Detail |
---|
public String getParameter(String name)
getParameter
in interface ServletRequest
getParameter
in class ServletRequestWrapper
name
- the subject parameter name
public Map getParameterMap()
getParameterMap
in interface ServletRequest
getParameterMap
in class ServletRequestWrapper
public Enumeration getParameterNames()
getParameterNames
in interface ServletRequest
getParameterNames
in class ServletRequestWrapper
public String[] getParameterValues(String name)
getParameterValues
in interface ServletRequest
getParameterValues
in class ServletRequestWrapper
name
- the subject parameter name
public static boolean isMultipartContent(ServletRequest request)
request
- the current request
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |