public interface Part extends Serializable
SOAPPart
containing the SOAP message, and 0 or more
AttachmentParts
instances containing each of the attachments.Modifier and Type | Method and Description |
---|---|
void |
addMimeHeader(String header,
String value)
Add the specified MIME header, as per JAXM.
|
String |
getContentId()
Get the content ID.
|
String |
getContentIdRef()
Content ID.
|
String |
getContentLocation()
Get the content location.
|
String |
getContentType()
Get the content type.
|
Iterator |
getMatchingMimeHeaders(String[] match)
Get an
Iterator over all headers that match any item in
match . |
String[] |
getMimeHeader(String name)
Gets all the values of the
MimeHeader object
in this SOAPPart object that is identified by
the given String . |
Iterator |
getNonMatchingMimeHeaders(String[] match)
Get all headers that do not match.
|
void |
setContentId(String newCid)
Sets Content-Id of this part.
|
void |
setContentLocation(String loc)
Set content location.
|
String[] getMimeHeader(String name)
MimeHeader
object
in this SOAPPart
object that is identified by
the given String
.name
- the name of the header; example:
"Content-Type"String
array giving all the values for
the specified headersetMimeHeader(java.lang.String, java.lang.String)
void addMimeHeader(String header, String value)
header
- the MIME header namevalue
- the value associated with the headerString getContentLocation()
String
giving the locationvoid setContentLocation(String loc)
loc
- the new locationvoid setContentId(String newCid)
newCid
- new Content-IdString getContentId()
Iterator getMatchingMimeHeaders(String[] match)
Iterator
over all headers that match any item in
match
.Iterator getNonMatchingMimeHeaders(String[] match)
String getContentType()
String
String getContentIdRef()
Copyright © The Apache Software Foundation. All Rights Reserved.