|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.ui.multipart.MultipartWrapper
public class MultipartWrapper
This class provides abstract parameter service, including support for uploaded files and multipart forms. It is styled much like HttpServletRequest, but wraps this interface so that code can access either standard post data or multipart data transparently.
| Field Summary | |
|---|---|
static java.lang.String |
_rcsid
|
protected java.lang.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 java.util.Map |
variableMap
|
| Constructor Summary | |
|---|---|
MultipartWrapper(javax.servlet.http.HttpServletRequest request)
Constructor. |
|
| Method Summary | |
|---|---|
byte[] |
getBinaryBytes(java.lang.String name)
Get file parameter, as a byte array. |
BinaryInput |
getBinaryStream(java.lang.String name)
Get a file parameter, as a binary input. |
java.lang.String |
getParameter(java.lang.String name)
Get single parameter value. |
java.lang.String[] |
getParameterValues(java.lang.String name)
Get multiple parameter values. |
void |
setParameter(java.lang.String name,
java.lang.String value)
Set a parameter value |
void |
setParameterValues(java.lang.String name,
java.lang.String[] values)
Set an array of parameter values |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String _rcsid
protected javax.servlet.http.HttpServletRequest request
protected java.util.Map variableMap
protected java.lang.String characterEncoding
| Constructor Detail |
|---|
public MultipartWrapper(javax.servlet.http.HttpServletRequest request)
throws ManifoldCFException
ManifoldCFException| Method Detail |
|---|
public java.lang.String[] getParameterValues(java.lang.String name)
getParameterValues in interface IPostParametersname - is the parameter name.
public java.lang.String getParameter(java.lang.String name)
getParameter in interface IPostParametersname - is the parameter name.
public BinaryInput getBinaryStream(java.lang.String name)
throws ManifoldCFException
getBinaryStream in interface IPostParametersname - is the parameter name.
ManifoldCFExceptionpublic byte[] getBinaryBytes(java.lang.String name)
getBinaryBytes in interface IPostParametersname - is the parameter name.
public void setParameter(java.lang.String name,
java.lang.String value)
setParameter in interface IPostParametersname - is the parameter name.value - is the desired value.
public void setParameterValues(java.lang.String name,
java.lang.String[] values)
setParameterValues in interface IPostParametersname - is the parameter name.values - is the array of desired values.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||