|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.enunciate.modules.rest.StreamingMultipartRequestHandler
public class StreamingMultipartRequestHandler
Multipart request handler that provides for a streaming approach for
resolving the parts of the request.
Using the StreamingMultipartRequestHandler allows you to have access to the parts
before they're completely uploaded, but the parsed parts are subject to the following
restrictions:
| Constructor Summary | |
|---|---|
StreamingMultipartRequestHandler()
|
|
| Method Summary | |
|---|---|
MultipartProgressListenerFactory |
getProgressListenerFactory()
A progress listener for the file upload. |
javax.servlet.http.HttpServletRequest |
handleMultipartRequest(javax.servlet.http.HttpServletRequest request)
No-op, returns the request unmodified. |
boolean |
isMultipart(javax.servlet.http.HttpServletRequest request)
Whether the request is a multipart request, according to commons-fileupload. |
Collection<javax.activation.DataHandler> |
parseParts(javax.servlet.http.HttpServletRequest request)
Parses the parts. |
void |
setProgressListenerFactory(MultipartProgressListenerFactory progressListenerFactory)
A progress listener for the file upload. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamingMultipartRequestHandler()
| Method Detail |
|---|
public boolean isMultipart(javax.servlet.http.HttpServletRequest request)
isMultipart in interface MultipartRequestHandlerrequest - The request.
public javax.servlet.http.HttpServletRequest handleMultipartRequest(javax.servlet.http.HttpServletRequest request)
handleMultipartRequest in interface MultipartRequestHandlerrequest - The request.
public Collection<javax.activation.DataHandler> parseParts(javax.servlet.http.HttpServletRequest request)
throws IOException,
FileUploadException
StreamingFileItemDataSource
parseParts in interface MultipartRequestHandlerrequest - The request.
IOException
FileUploadExceptionpublic MultipartProgressListenerFactory getProgressListenerFactory()
public void setProgressListenerFactory(MultipartProgressListenerFactory progressListenerFactory)
progressListenerFactory - A progress listener for the file upload.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||