public class MultipartWrapper extends Object implements IPostParameters
Modifier and Type | Field and Description |
---|---|
static String |
_rcsid |
protected AdminProfile |
adminProfile
The Admin Profile bean, for password mapping.
|
protected String |
characterEncoding |
protected javax.servlet.http.HttpServletRequest |
request
This is the HttpServletRequest object, which will be used for parameters only if
the form is not multipart.
|
protected Map |
variableMap |
Constructor and Description |
---|
MultipartWrapper(javax.servlet.http.HttpServletRequest request,
AdminProfile adminProfile)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBinaryBytes(String name)
Get file parameter, as a byte array.
|
BinaryInput |
getBinaryStream(String name)
Get a file parameter, as a binary input.
|
String |
getParameter(String name)
Get single parameter value.
|
String[] |
getParameterValues(String name)
Get multiple parameter values.
|
String |
mapKeyToPassword(String key)
Convert a key, created by mapPasswordToKey, back to the original password, within
the lifetime of the browser session.
|
String |
mapPasswordToKey(String password)
Map a password to a unique key.
|
void |
setParameter(String name,
String value)
Set a parameter value
|
void |
setParameterValues(String name,
String[] values)
Set an array of parameter values
|
public static final String _rcsid
protected final AdminProfile adminProfile
protected javax.servlet.http.HttpServletRequest request
protected Map variableMap
protected String characterEncoding
public MultipartWrapper(javax.servlet.http.HttpServletRequest request, AdminProfile adminProfile) throws ManifoldCFException
ManifoldCFException
public String[] getParameterValues(String name)
getParameterValues
in interface IParameterActivity
name
- is the parameter name.public String getParameter(String name)
getParameter
in interface IParameterActivity
name
- is the parameter name.public BinaryInput getBinaryStream(String name) throws ManifoldCFException
getBinaryStream
in interface IParameterActivity
name
- is the parameter name.ManifoldCFException
public byte[] getBinaryBytes(String name)
getBinaryBytes
in interface IParameterActivity
name
- is the parameter name.public void setParameter(String name, String value)
setParameter
in interface IParameterActivity
name
- is the parameter name.value
- is the desired value.public void setParameterValues(String name, String[] values)
setParameterValues
in interface IParameterActivity
name
- is the parameter name.values
- is the array of desired values.public String mapPasswordToKey(String password)
mapPasswordToKey
in interface IPasswordMapperActivity
password
- is the password.public String mapKeyToPassword(String key)
mapKeyToPassword
in interface IPasswordMapperActivity
key
- is the key.