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 TypeMethodDescriptionvoid
addMimeHeader
(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 anIterator
over all headers that match any item inmatch
.String[]
getMimeHeader
(String name) Gets all the values of theMimeHeader
object in thisSOAPPart
object that is identified by the givenString
.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.
-
Method Details
-
getMimeHeader
Gets all the values of theMimeHeader
object in thisSOAPPart
object that is identified by the givenString
.- Parameters:
name
- the name of the header; example: "Content-Type"- Returns:
- a
String
array 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
String
giving 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 anIterator
over 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.
-