public class MultipartRequestParameter extends Object
MultipartRequestParameter
represents a request parameter
from a multipart/form-data POST request.
To not add a dependency to Servlet API 3 this class does not implement the
Servlet API 3 Part
interface. To support Servlet API 3 Part
s
the SlingPart
class wraps instances of this class.
Constructor and Description |
---|
MultipartRequestParameter(org.apache.commons.fileupload.FileItem delegatee) |
Modifier and Type | Method and Description |
---|---|
byte[] |
get() |
String |
getContentType() |
String |
getEncoding() |
String |
getFileName() |
InputStream |
getInputStream() |
String |
getName() |
long |
getSize() |
String |
getString() |
String |
getString(String enc) |
boolean |
isFormField() |
String |
toString() |
public MultipartRequestParameter(org.apache.commons.fileupload.FileItem delegatee)
public byte[] get()
public String getContentType()
public InputStream getInputStream() throws IOException
IOException
public String getFileName()
public long getSize()
public String getString()
public String getString(String enc) throws UnsupportedEncodingException
UnsupportedEncodingException
public boolean isFormField()
public String getName()
getName
in interface org.apache.sling.api.request.RequestParameter
public String getEncoding()
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.