public final class MimeMultipartParser extends Object
Constructor and Description |
---|
MimeMultipartParser(InputStream in,
String cType,
StreamingAttachmentFeature feature) |
Modifier and Type | Method and Description |
---|---|
com.sun.xml.ws.api.message.Attachment |
getAttachmentPart(String contentId)
This method can be called to get a matching MIME attachment part for the
given contentId.
|
Map<String,com.sun.xml.ws.api.message.Attachment> |
getAttachmentParts()
Parses the entire stream and returns all MIME parts except root MIME part.
|
ContentTypeImpl |
getContentType() |
com.sun.xml.ws.api.message.Attachment |
getRootPart()
Parses the stream and returns the root part.
|
public MimeMultipartParser(InputStream in, String cType, StreamingAttachmentFeature feature)
@Nullable public com.sun.xml.ws.api.message.Attachment getRootPart()
@NotNull public Map<String,com.sun.xml.ws.api.message.Attachment> getAttachmentParts()
@Nullable public com.sun.xml.ws.api.message.Attachment getAttachmentPart(String contentId) throws IOException
IOException
public ContentTypeImpl getContentType()
Copyright © 2015 Oracle Corporation. All rights reserved.