public abstract class MultipartRequest extends HttpServletRequestWrapper
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
Constructor and Description |
---|
MultipartRequest(HttpServletRequest req) |
Modifier and Type | Method and Description |
---|---|
abstract void |
addParameter(String name,
String value)
Add a parameter to the parameter list.
|
static MultipartRequest |
createInstance(HttpServletRequest req)
Create the MultipartRequest from the ServletRequest.
|
abstract Cookie |
getCookie(String id)
Get cookie from id (don't iterate the array)
|
abstract File |
getFile(String name)
Return the locally stored temporary file associated with the parameter
name given as argument.
|
abstract Pair<File,byte[]> |
getFileAndDigest(String name)
Return the locally stored temporary file associated with the parameter
name given as argument and also the digest of that file.
|
abstract Enumeration<String> |
getFileNames()
Return the name of the parameters containing files as values.
|
abstract List<File> |
getFiles(String name)
Returns a list of locally stored temporary files associated with the parameter
name given as argument.
|
abstract List<Pair<File,byte[]>> |
getFilesAndDigests(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 String |
getParamsAsLink()
This method builds a parameter string suitable for a GET request out of the parameter
map.
|
abstract String |
getRemoteFileName(String name)
Return the remote file name of the file associated with the parameter
name given as argument.
|
abstract String |
getRemoteFileName(String name,
File temporaryFile)
Return the remote file name of the locally stored temporary file
|
abstract void |
removeParameter(String name)
Removes a parameter from the parameter list.
|
abstract void |
setLocale(Locale l) |
abstract void |
setPathInfo(String path)
Sets the path info.
|
abstract void |
setQueryString(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
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(HttpServletRequest req)
public static MultipartRequest createInstance(HttpServletRequest req)
req
- the original requestpublic abstract Enumeration<String> getFileNames()
public abstract File getFile(String name)
name
- the name of the parameterpublic abstract Pair<File,byte[]> getFileAndDigest(String name)
name
- the name of the parameterpublic abstract List<File> getFiles(String name)
name
- the name of the parameterpublic abstract List<Pair<File,byte[]>> getFilesAndDigests(String name)
name
- the name of the parameterpublic abstract String getRemoteFileName(String name)
name
- the name of the parameterpublic abstract String getRemoteFileName(String name, File temporaryFile)
temporaryFile
- the local filepublic abstract void addParameter(String name, String value)
name
- the name of the parametervalue
- the value of the parameterpublic abstract void removeParameter(String name)
name
- the name of the parameterpublic abstract void setPathInfo(String path)
path
- the new path infopublic abstract void setQueryString(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 String getParamsAsLink() throws UnsupportedEncodingException
UnsupportedEncodingException
public abstract void setLocale(Locale l)
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.