Package org.apache.axis
Interface Part
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AttachmentPart,SOAPPart
A part of a MIME message. Typically, in a MIME message there will be one
SOAPPart containing the SOAP message, and 0 or more
AttachmentParts instances containing each of the attachments.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddMimeHeader(String header, String value) Add the specified MIME header, as per JAXM.Get the content ID.Content ID.Get the content location.Get the content type.getMatchingMimeHeaders(String[] match) Get anIteratorover all headers that match any item inmatch.String[]getMimeHeader(String name) Gets all the values of theMimeHeaderobject in thisSOAPPartobject that is identified by the givenString.getNonMatchingMimeHeaders(String[] match) Get all headers that do not match.voidsetContentId(String newCid) Sets Content-Id of this part.voidsetContentLocation(String loc) Set content location.
-
Method Details
-
getMimeHeader
Gets all the values of theMimeHeaderobject in thisSOAPPartobject that is identified by the givenString.- Parameters:
name- the name of the header; example: "Content-Type"- Returns:
- a
Stringarray giving all the values for the specified header - See Also:
-
setMimeHeader(java.lang.String, java.lang.String)
-
addMimeHeader
Add the specified MIME header, as per JAXM.- Parameters:
header- the MIME header namevalue- the value associated with the header
-
getContentLocation
String getContentLocation()Get the content location.- Returns:
- a
Stringgiving the location
-
setContentLocation
Set content location.- Parameters:
loc- the new location
-
setContentId
Sets Content-Id of this part. already defined.- Parameters:
newCid- new Content-Id
-
getContentId
String getContentId()Get the content ID.- Returns:
- the content ID
-
getMatchingMimeHeaders
Get anIteratorover all headers that match any item inmatch. -
getNonMatchingMimeHeaders
Get all headers that do not match. -
getContentType
String getContentType()Get the content type.- Returns:
- the content type
String
-
getContentIdRef
String getContentIdRef()Content ID.- Returns:
- the contentId reference value that should be used directly as an href in a SOAP element to reference this attachment. Not part of JAX-RPC, JAX-M, SAAJ, etc.
-