Methods Summary |
---|
public abstract void | addMimeHeader(java.lang.String name, java.lang.String value)Creates a MimeHeader object with the specified
name and value and adds it to this SOAPPart object.
If a MimeHeader with the specified name already
exists, this method adds the specified value to the already
existing value(s).
Note that RFC822 headers can contain only US-ASCII characters.
|
public abstract java.util.Iterator | getAllMimeHeaders()Retrieves all the headers for this SOAPPart object
as an iterator over the MimeHeader objects.
|
public abstract javax.xml.transform.Source | getContent()Returns the content of the SOAPEnvelope as a JAXP Source
object.
|
public java.lang.String | getContentId()Retrieves the value of the MIME header whose name is "Content-Id".
String[] values = getMimeHeader("Content-Id");
if (values != null && values.length > 0)
return values[0];
return null;
|
public java.lang.String | getContentLocation()Retrieves the value of the MIME header whose name is "Content-Location".
String[] values = getMimeHeader("Content-Location");
if (values != null && values.length > 0)
return values[0];
return null;
|
public abstract javax.xml.soap.SOAPEnvelope | getEnvelope()Gets the SOAPEnvelope object associated with this
SOAPPart object. Once the SOAP envelope is obtained, it
can be used to get its contents.
|
public abstract java.util.Iterator | getMatchingMimeHeaders(java.lang.String[] names)Retrieves all MimeHeader objects that match a name in
the given array.
|
public abstract 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 .
|
public abstract java.util.Iterator | getNonMatchingMimeHeaders(java.lang.String[] names)Retrieves all MimeHeader objects whose name does
not match a name in the given array.
|
public abstract void | removeAllMimeHeaders()Removes all the MimeHeader objects for this
SOAPEnvelope object.
|
public abstract void | removeMimeHeader(java.lang.String header)Removes all MIME headers that match the given name.
|
public abstract void | setContent(javax.xml.transform.Source source)Sets the content of the SOAPEnvelope object with the data
from the given Source object. This Source
must contain a valid SOAP document.
|
public void | setContentId(java.lang.String contentId)Sets the value of the MIME header named "Content-Id"
to the given String .
setMimeHeader("Content-Id", contentId);
|
public void | setContentLocation(java.lang.String contentLocation)Sets the value of the MIME header "Content-Location"
to the given String .
setMimeHeader("Content-Location", contentLocation);
|
public abstract void | setMimeHeader(java.lang.String name, java.lang.String value)Changes the first header entry that matches the given header name
so that its value is the given value, adding a new header with the
given name and value if no
existing header is a match. If there is a match, this method clears
all existing values for the first header that matches and sets the
given value instead. If more than one header has
the given name, this method removes all of the matching headers after
the first one.
Note that RFC822 headers can contain only US-ASCII characters.
|