Class MultipartInputImpl
java.lang.Object
org.jboss.resteasy.plugins.providers.multipart.MultipartInputImpl
- All Implemented Interfaces:
ProvidersContextRetainer,MultipartInput
- Direct Known Subclasses:
MultipartFormDataInputImpl,MultipartRelatedInputImpl
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMultipartInputImpl(MediaType contentType, Providers workers) MultipartInputImpl(MediaType contentType, Providers workers, MediaType defaultPartContentType, String defaultPartCharset) MultipartInputImpl(org.apache.james.mime4j.dom.Multipart multipart, Providers workers) -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStreamvoidclose()Call this method to delete any temporary files created from unmarshalling this multipart message Otherwise they will be deleted on Garbage Collection or JVM exit.protected InputStreamprotected InputPartextractPart(org.apache.james.mime4j.message.BodyPart bodyPart) protected voidprotected StringgetCharset(MediaType mediaType) protected org.apache.james.mime4j.dom.MessagegetParts()static voidvoidparse(InputStream is) voidsetProviders(Providers providers)
-
Field Details
-
contentType
-
workers
-
parts
-
empty
-
defaultPartContentType
-
defaultPartCharset
-
savedProviders
-
-
Constructor Details
-
MultipartInputImpl
-
MultipartInputImpl
-
MultipartInputImpl
public MultipartInputImpl(org.apache.james.mime4j.dom.Multipart multipart, Providers workers) throws IOException - Throws:
IOException
-
-
Method Details
-
parse
- Throws:
IOException
-
addHeaderToHeadlessStream
- Throws:
UnsupportedEncodingException
-
createHeaderInputStream
- Throws:
UnsupportedEncodingException
-
getPreamble
- Specified by:
getPreamblein interfaceMultipartInput
-
getParts
- Specified by:
getPartsin interfaceMultipartInput
-
extractParts
- Throws:
IOException
-
extractPart
protected InputPart extractPart(org.apache.james.mime4j.message.BodyPart bodyPart) throws IOException - Throws:
IOException
-
getMimeMessage
protected org.apache.james.mime4j.dom.Message getMimeMessage() -
main
- Throws:
Exception
-
close
public void close()Description copied from interface:MultipartInputCall this method to delete any temporary files created from unmarshalling this multipart message Otherwise they will be deleted on Garbage Collection or JVM exit.- Specified by:
closein interfaceMultipartInput
-
getCharset
-
setProviders
- Specified by:
setProvidersin interfaceProvidersContextRetainer
-