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
-
Field Summary
Modifier and TypeFieldDescriptionprotected jakarta.ws.rs.core.MediaType
protected String
protected jakarta.ws.rs.core.MediaType
protected static final Annotation[]
protected jakarta.ws.rs.ext.Providers
protected jakarta.ws.rs.ext.Providers
-
Constructor Summary
ConstructorDescriptionMultipartInputImpl
(jakarta.ws.rs.core.MediaType contentType, jakarta.ws.rs.ext.Providers workers) MultipartInputImpl
(jakarta.ws.rs.core.MediaType contentType, jakarta.ws.rs.ext.Providers workers, jakarta.ws.rs.core.MediaType defaultPartContentType, String defaultPartCharset) MultipartInputImpl
(org.apache.james.mime4j.dom.Multipart multipart, jakarta.ws.rs.ext.Providers workers) -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStream
void
close()
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 InputStream
protected InputPart
extractPart
(org.apache.james.mime4j.message.BodyPart bodyPart) protected void
protected String
getCharset
(jakarta.ws.rs.core.MediaType mediaType) protected org.apache.james.mime4j.dom.Message
getParts()
static void
void
parse
(InputStream is) void
setProviders
(jakarta.ws.rs.ext.Providers providers)
-
Field Details
-
contentType
protected jakarta.ws.rs.core.MediaType contentType -
workers
protected jakarta.ws.rs.ext.Providers workers -
parts
-
empty
-
defaultPartContentType
protected jakarta.ws.rs.core.MediaType defaultPartContentType -
defaultPartCharset
-
savedProviders
protected jakarta.ws.rs.ext.Providers savedProviders
-
-
Constructor Details
-
MultipartInputImpl
public MultipartInputImpl(jakarta.ws.rs.core.MediaType contentType, jakarta.ws.rs.ext.Providers workers) -
MultipartInputImpl
public MultipartInputImpl(jakarta.ws.rs.core.MediaType contentType, jakarta.ws.rs.ext.Providers workers, jakarta.ws.rs.core.MediaType defaultPartContentType, String defaultPartCharset) -
MultipartInputImpl
public MultipartInputImpl(org.apache.james.mime4j.dom.Multipart multipart, jakarta.ws.rs.ext.Providers workers) throws IOException - Throws:
IOException
-
-
Method Details
-
parse
- Throws:
IOException
-
addHeaderToHeadlessStream
- Throws:
UnsupportedEncodingException
-
createHeaderInputStream
- Throws:
UnsupportedEncodingException
-
getPreamble
- Specified by:
getPreamble
in interfaceMultipartInput
-
getParts
- Specified by:
getParts
in 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
-
close
public void close()Description copied from interface:MultipartInput
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.- Specified by:
close
in interfaceMultipartInput
-
getCharset
-
setProviders
public void setProviders(jakarta.ws.rs.ext.Providers providers) - Specified by:
setProviders
in interfaceProvidersContextRetainer
-