Package org.apache.axis
Interface Part
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
AttachmentPart,SOAPPart
public interface Part extends java.io.SerializableA part of a MIME message. Typically, in a MIME message there will be oneSOAPPartcontaining the SOAP message, and 0 or moreAttachmentPartsinstances containing each of the attachments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddMimeHeader(java.lang.String header, java.lang.String value)Add the specified MIME header, as per JAXM.java.lang.StringgetContentId()Get the content ID.java.lang.StringgetContentIdRef()Content ID.java.lang.StringgetContentLocation()Get the content location.java.lang.StringgetContentType()Get the content type.java.util.IteratorgetMatchingMimeHeaders(java.lang.String[] match)Get anIteratorover all headers that match any item inmatch.java.lang.String[]getMimeHeader(java.lang.String name)Gets all the values of theMimeHeaderobject in thisSOAPPartobject that is identified by the givenString.java.util.IteratorgetNonMatchingMimeHeaders(java.lang.String[] match)Get all headers that do not match.voidsetContentId(java.lang.String newCid)Sets Content-Id of this part.voidsetContentLocation(java.lang.String loc)Set content location.
-
-
-
Method Detail
-
getMimeHeader
java.lang.String[] getMimeHeader(java.lang.String name)
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
void addMimeHeader(java.lang.String header, java.lang.String value)Add the specified MIME header, as per JAXM.- Parameters:
header- the MIME header namevalue- the value associated with the header
-
getContentLocation
java.lang.String getContentLocation()
Get the content location.- Returns:
- a
Stringgiving the location
-
setContentLocation
void setContentLocation(java.lang.String loc)
Set content location.- Parameters:
loc- the new location
-
setContentId
void setContentId(java.lang.String newCid)
Sets Content-Id of this part. already defined.- Parameters:
newCid- new Content-Id
-
getContentId
java.lang.String getContentId()
Get the content ID.- Returns:
- the content ID
-
getMatchingMimeHeaders
java.util.Iterator getMatchingMimeHeaders(java.lang.String[] match)
Get anIteratorover all headers that match any item inmatch.
-
getNonMatchingMimeHeaders
java.util.Iterator getNonMatchingMimeHeaders(java.lang.String[] match)
Get all headers that do not match.
-
getContentType
java.lang.String getContentType()
Get the content type.- Returns:
- the content type
String
-
getContentIdRef
java.lang.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.
-
-