public class MultipartParser extends Object
Constructor and Description |
---|
MultipartParser(javax.servlet.http.HttpServletRequest request,
File tempDir,
int memoryThreshold,
long maxContentSize) |
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
String |
getFilename() |
String |
getName() |
BigInteger |
getSize() |
InputStream |
getStream() |
String |
getValue() |
boolean |
isContent() |
static boolean |
isMultipartContent(javax.servlet.http.HttpServletRequest request)
Returns if the request is a multi-part request
|
void |
readBodyAsStream() |
void |
readBodyAsString(String charset) |
boolean |
readNext() |
public static final String MULTIPART
public MultipartParser(javax.servlet.http.HttpServletRequest request, File tempDir, int memoryThreshold, long maxContentSize) throws IOException
IOException
public void readBodyAsString(String charset) throws IOException
IOException
public boolean isContent()
public String getName()
public String getValue()
public String getFilename()
public String getContentType()
public BigInteger getSize()
public InputStream getStream()
public static final boolean isMultipartContent(javax.servlet.http.HttpServletRequest request)
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.