public abstract class MultipartRequest
extends javax.servlet.http.HttpServletRequestWrapper
implements javax.servlet.http.HttpServletRequest
Constructor and Description |
---|
MultipartRequest(javax.servlet.http.HttpServletRequest req) |
Modifier and Type | Method and Description |
---|---|
abstract void |
addParameter(java.lang.String name,
java.lang.String value)
Add a parameter to the parameter list.
|
static MultipartRequest |
createInstance(javax.servlet.http.HttpServletRequest req)
Crete the MultipartRequest from the ServletRequest.
|
abstract javax.servlet.http.Cookie |
getCookie(java.lang.String id)
Get cookie from id (don't iterate the array)
|
abstract java.io.File |
getFile(java.lang.String name)
Return the locally stored temporary file associated with the parameter
name given as argument.
|
abstract Pair<java.io.File,byte[]> |
getFileAndDigest(java.lang.String name)
Return the locally stored temporary file associated with the parameter
name given as argument and also the digest of that file.
|
abstract java.util.Enumeration<java.lang.String> |
getFileNames()
Return the name of the parameters containing files as values.
|
abstract java.util.List<java.io.File> |
getFiles(java.lang.String name)
Returns a list of locally stored temporary files associated with the parameter
name given as argument.
|
abstract java.util.List<Pair<java.io.File,byte[]>> |
getFilesAndDigests(java.lang.String name)
Returns a list of locally stored temporary file associated with the parameter
name given as argument and also their digest of that file.
|
abstract java.lang.String |
getParamsAsLink()
This method builds a parameter string suitable for a GET request out of the parameter
map.
|
abstract java.lang.String |
getRemoteFileName(java.lang.String name)
Return the remote file name of the file associated with the parameter
name given as argument.
|
abstract java.lang.String |
getRemoteFileName(java.lang.String name,
java.io.File temporaryFile)
Return the remote file name of the locally stored temporary file
|
abstract void |
removeParameter(java.lang.String name)
Removes a parameter from the parameter list.
|
abstract void |
setLocale(java.util.Locale l) |
abstract void |
setPathInfo(java.lang.String path)
Sets the path info.
|
abstract void |
setQueryString(java.lang.String params,
boolean removeParams)
Sets the paramters from a query-string.
|
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout, upgrade
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout, upgrade
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
public MultipartRequest(javax.servlet.http.HttpServletRequest req)
public static MultipartRequest createInstance(javax.servlet.http.HttpServletRequest req)
req
- the original requestpublic abstract java.util.Enumeration<java.lang.String> getFileNames()
public abstract java.io.File getFile(java.lang.String name)
name
- the name of the parameterpublic abstract Pair<java.io.File,byte[]> getFileAndDigest(java.lang.String name)
name
- the name of the parameterpublic abstract java.util.List<java.io.File> getFiles(java.lang.String name)
name
- the name of the parameterpublic abstract java.util.List<Pair<java.io.File,byte[]>> getFilesAndDigests(java.lang.String name)
name
- the name of the parameterpublic abstract java.lang.String getRemoteFileName(java.lang.String name)
name
- the name of the parameterpublic abstract java.lang.String getRemoteFileName(java.lang.String name, java.io.File temporaryFile)
temporaryFile
- the local filepublic abstract void addParameter(java.lang.String name, java.lang.String value)
name
- the name of the parametervalue
- the value of the parameterpublic abstract void removeParameter(java.lang.String name)
name
- the name of the parameterpublic abstract void setPathInfo(java.lang.String path)
path
- the new path infopublic abstract void setQueryString(java.lang.String params, boolean removeParams)
params
- the params in HTTP-GET syntax: param1=value1¶m2=value2removeParams
- if true for each parameter of the query string already existing values are removed.public abstract javax.servlet.http.Cookie getCookie(java.lang.String id)
public abstract java.lang.String getParamsAsLink() throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public abstract void setLocale(java.util.Locale l)
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.