FileDocCategorySizeDatePackage
Part.javaAPI DocApache Axis 1.43608Sat Apr 22 18:57:26 BST 2006org.apache.axis

Part

public interface Part implements Serializable
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.

Fields Summary
Constructors Summary
Methods Summary
public voidaddMimeHeader(java.lang.String header, java.lang.String value)
Add the specified MIME header, as per JAXM.

param
header the MIME header name
param
value the value associated with the header

public java.lang.StringgetContentId()
Get the content ID.

return
the content ID

public java.lang.StringgetContentIdRef()
Content ID.

return
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.

public java.lang.StringgetContentLocation()
Get the content location.

return
a String giving the location

public java.lang.StringgetContentType()
Get the content type.

return
the content type String

public java.util.IteratorgetMatchingMimeHeaders(java.lang.String[] match)
Get an Iterator over all headers that match any item in match.

public java.lang.String[]getMimeHeader(java.lang.String name)
Gets all the values of the MimeHeader object in this SOAPPart object that is identified by the given String.

param
name the name of the header; example: "Content-Type"
return
a String array giving all the values for the specified header
see
#setMimeHeader(java.lang.String, java.lang.String) setMimeHeader(java.lang.String, java.lang.String)

public java.util.IteratorgetNonMatchingMimeHeaders(java.lang.String[] match)
Get all headers that do not match.

public voidsetContentId(java.lang.String newCid)
Sets Content-Id of this part. already defined.

param
newCid new Content-Id

public voidsetContentLocation(java.lang.String loc)
Set content location.

param
loc the new location