public class MultipartInputImpl extends Object implements MultipartInput, ProvidersContextRetainer
Modifier and Type | Class and Description |
---|---|
class |
MultipartInputImpl.PartImpl |
Modifier and Type | Field and Description |
---|---|
protected javax.ws.rs.core.MediaType |
contentType |
protected String |
defaultPartCharset |
protected javax.ws.rs.core.MediaType |
defaultPartContentType |
protected static Annotation[] |
empty |
protected org.apache.james.mime4j.dom.Message |
mimeMessage |
protected List<InputPart> |
parts |
protected javax.ws.rs.ext.Providers |
savedProviders |
protected javax.ws.rs.ext.Providers |
workers |
Constructor and Description |
---|
MultipartInputImpl(javax.ws.rs.core.MediaType contentType,
javax.ws.rs.ext.Providers workers) |
MultipartInputImpl(javax.ws.rs.core.MediaType contentType,
javax.ws.rs.ext.Providers workers,
javax.ws.rs.core.MediaType defaultPartContentType,
String defaultPartCharset) |
MultipartInputImpl(org.apache.james.mime4j.dom.Multipart multipart,
javax.ws.rs.ext.Providers workers) |
Modifier and Type | Method and Description |
---|---|
protected InputStream |
addHeaderToHeadlessStream(InputStream is) |
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 |
createHeaderInputStream() |
protected InputPart |
extractPart(org.apache.james.mime4j.message.BodyPart bodyPart) |
protected void |
extractParts() |
protected void |
finalize() |
protected String |
getCharset(javax.ws.rs.core.MediaType mediaType) |
List<InputPart> |
getParts() |
String |
getPreamble() |
static void |
main(String[] args) |
void |
parse(InputStream is) |
void |
setProviders(javax.ws.rs.ext.Providers providers) |
protected javax.ws.rs.core.MediaType contentType
protected javax.ws.rs.ext.Providers workers
protected org.apache.james.mime4j.dom.Message mimeMessage
protected static final Annotation[] empty
protected javax.ws.rs.core.MediaType defaultPartContentType
protected String defaultPartCharset
protected javax.ws.rs.ext.Providers savedProviders
public MultipartInputImpl(javax.ws.rs.core.MediaType contentType, javax.ws.rs.ext.Providers workers)
public MultipartInputImpl(javax.ws.rs.core.MediaType contentType, javax.ws.rs.ext.Providers workers, javax.ws.rs.core.MediaType defaultPartContentType, String defaultPartCharset)
public MultipartInputImpl(org.apache.james.mime4j.dom.Multipart multipart, javax.ws.rs.ext.Providers workers) throws IOException
IOException
public void parse(InputStream is) throws IOException
IOException
protected InputStream addHeaderToHeadlessStream(InputStream is) throws UnsupportedEncodingException
UnsupportedEncodingException
protected InputStream createHeaderInputStream() throws UnsupportedEncodingException
UnsupportedEncodingException
public String getPreamble()
getPreamble
in interface MultipartInput
public List<InputPart> getParts()
getParts
in interface MultipartInput
protected void extractParts() throws IOException
IOException
protected InputPart extractPart(org.apache.james.mime4j.message.BodyPart bodyPart) throws IOException
IOException
public void close()
MultipartInput
close
in interface MultipartInput
protected void finalize() throws Throwable
protected String getCharset(javax.ws.rs.core.MediaType mediaType)
public void setProviders(javax.ws.rs.ext.Providers providers)
setProviders
in interface ProvidersContextRetainer
Copyright © 2020 JBoss by Red Hat. All rights reserved.