|
Préférences
Moteurs de recherche
|
||||||||||||||||||||||||||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
javax.xml.soap
|
Field Summary |
---|
Constructor Summary | |
---|---|
SOAPPart()
|
Method Summary | |
---|---|
abstract void |
addMimeHeader(String name,
String value)
Creates a MimeHeader object with the specified
name and value and adds it to this SOAPPart object. |
abstract Iterator |
getAllMimeHeaders()
Retrieves all the headers for this SOAPPart object
as an iterator over the MimeHeader objects. |
abstract Source |
getContent()
Returns the content of the SOAPEnvelope as a JAXP Source
object. |
String |
getContentId()
Retrieves the value of the MIME header whose name is "Content-Id". |
String |
getContentLocation()
Retrieves the value of the MIME header whose name is "Content-Location". |
abstract SOAPEnvelope |
getEnvelope()
Gets the SOAPEnvelope object associated with this
SOAPPart object. |
abstract Iterator |
getMatchingMimeHeaders(String[] names)
Retrieves all MimeHeader objects that match a name in
the given array. |
abstract String[] |
getMimeHeader(String name)
Gets all the values of the MimeHeader object
in this SOAPPart object that
is identified by the given String . |
abstract Iterator |
getNonMatchingMimeHeaders(String[] names)
Retrieves all MimeHeader objects whose name does
not match a name in the given array. |
abstract void |
removeAllMimeHeaders()
Removes all the MimeHeader objects for this
SOAPEnvelope object. |
abstract void |
removeMimeHeader(String header)
Removes all MIME headers that match the given name. |
abstract void |
setContent(Source source)
Sets the content of the SOAPEnvelope object with the data
from the given Source object. |
void |
setContentId(String contentId)
Sets the value of the MIME header named "Content-Id" to the given String . |
void |
setContentLocation(String contentLocation)
Sets the value of the MIME header "Content-Location" to the given String . |
abstract void |
setMimeHeader(String name,
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.xml.soap.Node |
---|
detachNode, getParentElement, getValue, recycleNode, setParentElement, setValue |
Methods inherited from interface org.w3c.dom.Node |
---|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
Constructor Detail |
---|
public SOAPPart()
Method Detail |
---|
public abstract SOAPEnvelope getEnvelope() throws SOAPException
SOAPEnvelope
object associated with this
SOAPPart
object. Once the SOAP envelope is obtained, it
can be used to get its contents.
SOAPEnvelope
object for this
SOAPPart
object
SOAPException
- if there is a SOAP errorpublic String getContentId()
String
giving the value of the MIME header
named "Content-Id"setContentId(java.lang.String)
public String getContentLocation()
String
giving the value of the MIME header whose
name is "Content-Location"setContentLocation(java.lang.String)
public void setContentId(String contentId)
String
.
contentId
- a String
giving the value of the MIME
header "Content-Id"
IllegalArgumentException
- if there is a problem in
setting the content idgetContentId()
public void setContentLocation(String contentLocation)
String
.
contentLocation
- a String
giving the value
of the MIME
header "Content-Location"
IllegalArgumentException
- if there is a problem in
setting the content location.getContentLocation()
public abstract void removeMimeHeader(String header)
header
- a String
giving the name of the MIME header(s) to
be removedpublic abstract void removeAllMimeHeaders()
MimeHeader
objects for this
SOAPEnvelope
object.
public abstract String[] getMimeHeader(String name)
MimeHeader
object
in this SOAPPart
object that
is identified by the given String
.
name
- the name of the header; example: "Content-Type"
String
array giving all the values for the
specified headersetMimeHeader(java.lang.String, java.lang.String)
public abstract void setMimeHeader(String name, String value)
Note that RFC822 headers can contain only US-ASCII characters.
name
- a String
giving the header name
for which to searchvalue
- a String
giving the value to be set.
This value will be substituted for the current value(s)
of the first header that is a match if there is one.
If there is no match, this value will be the value for
a new MimeHeader
object.
IllegalArgumentException
- if there was a problem with
the specified mime header name or valuegetMimeHeader(java.lang.String)
public abstract void addMimeHeader(String name, String value)
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.
name
- a String
giving the header namevalue
- a String
giving the value to be set
or added
IllegalArgumentException
- if there was a problem with
the specified mime header name or valuepublic abstract Iterator getAllMimeHeaders()
SOAPPart
object
as an iterator over the MimeHeader
objects.
Iterator
object with all of the Mime
headers for this SOAPPart
objectpublic abstract Iterator getMatchingMimeHeaders(String[] names)
MimeHeader
objects that match a name in
the given array.
names
- a String
array with the name(s) of the
MIME headers to be returned
Iterator
objectpublic abstract Iterator getNonMatchingMimeHeaders(String[] names)
MimeHeader
objects whose name does
not match a name in the given array.
names
- a String
array with the name(s) of the
MIME headers not to be returned
SOAPPart
object
except those that match one of the names in the
given array. The nonmatching MIME headers are returned as an
Iterator
object.public abstract void setContent(Source source) throws SOAPException
SOAPEnvelope
object with the data
from the given Source
object. This Source
must contain a valid SOAP document.
source
- the javax.xml.transform.Source
object with the
data to be set
SOAPException
- if there is a problem in setting the sourcegetContent()
public abstract Source getContent() throws SOAPException
Source
object.
javax.xml.transform.Source
object
SOAPException
- if the implementation cannot convert
the specified Source
objectsetContent(javax.xml.transform.Source)