|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.xml.soap.SOAPPart org.apache.axis.message.SOAPPartImpl
An implemenation of the abstract SOAPPart.
This class should not expose functionality that is not part ofSOAPPart
. Client code should use SOAPPart
whenever possible.
Field Summary |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
SOAPPartImpl()
|
|
SOAPPartImpl(javax.xml.soap.SOAPMessage soapMessage,
InputStream inStream,
javax.xml.soap.MimeHeaders headers)
|
Method Summary | |
void |
addMimeHeader(String header,
String value)
Add the specified MIME header, as per JAXM. |
Node |
appendChild(Node newChild)
|
Node |
cloneNode(boolean deep)
|
Attr |
createAttribute(String name)
|
Attr |
createAttributeNS(String namespaceURI,
String qualifiedName)
|
CDATASection |
createCDATASection(String data)
|
Comment |
createComment(String data)
|
DocumentFragment |
createDocumentFragment()
|
Element |
createElement(String tagName)
|
Element |
createElementNS(String namespaceURI,
String qualifiedName)
|
EntityReference |
createEntityReference(String name)
|
ProcessingInstruction |
createProcessingInstruction(String target,
String data)
|
Text |
createTextNode(String data)
|
Iterator |
getAllMimeHeaders()
Retrieves all the headers for this SOAPPart
object as an iterator over the MimeHeader
objects. |
NamedNodeMap |
getAttributes()
|
NodeList |
getChildNodes()
|
Source |
getContent()
Returns the content of the SOAPEnvelope as a JAXP Source object. |
String |
getContentId()
Content ID. |
String |
getContentLocation()
Content location. |
DocumentType |
getDoctype()
|
Element |
getDocumentElement()
|
Element |
getElementById(String elementId)
|
NodeList |
getElementsByTagName(String tagname)
|
NodeList |
getElementsByTagNameNS(String namespaceURI,
String localName)
|
javax.xml.soap.SOAPEnvelope |
getEnvelope()
Gets the SOAPEnvelope object associated with
this SOAPPart object. |
Node |
getFirstChild()
|
DOMImplementation |
getImplementation()
|
Node |
getLastChild()
|
String |
getLocalName()
|
Iterator |
getMatchingMimeHeaders(String[] match)
Get all headers that match. |
String[] |
getMimeHeader(String name)
Gets all the values of the MimeHeader object
in this SOAPPart object that is identified by
the given String . |
String |
getNamespaceURI()
|
Node |
getNextSibling()
|
String |
getNodeName()
|
short |
getNodeType()
|
String |
getNodeValue()
|
Iterator |
getNonMatchingMimeHeaders(String[] match)
Get all headers that do not match. |
Document |
getOwnerDocument()
|
Node |
getParentNode()
|
String |
getPrefix()
|
Node |
getPreviousSibling()
|
boolean |
hasAttributes()
|
boolean |
hasChildNodes()
|
Node |
importNode(Node importedNode,
boolean deep)
|
Node |
insertBefore(Node newChild,
Node refChild)
|
boolean |
isSupported(String feature,
String version)
|
void |
normalize()
|
void |
removeAllMimeHeaders()
Removes all the MimeHeader objects for this
SOAPEnvelope object. |
Node |
removeChild(Node oldChild)
|
void |
removeMimeHeader(String header)
Removes all MIME headers that match the given name. |
Node |
replaceChild(Node newChild,
Node oldChild)
|
void |
setContent(Source source)
Sets the content of the SOAPEnvelope object with the data from the given Source object. |
void |
setContentId(String newCid)
Sets Content-Id of this part. |
void |
setContentLocation(String loc)
Set content location. |
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. |
void |
setNodeValue(String nodeValue)
|
void |
setPrefix(String prefix)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SOAPPartImpl()
public SOAPPartImpl(javax.xml.soap.SOAPMessage soapMessage, InputStream inStream, javax.xml.soap.MimeHeaders headers)
Method Detail |
public void addMimeHeader(String header, String value)
header
- the header to addvalue
- the value of that headerpublic String getContentLocation()
public void setContentLocation(String loc)
loc
- the content locationpublic void setContentId(String newCid)
newCid
- new Content-Idpublic String getContentId()
public Iterator getMatchingMimeHeaders(String[] match)
match
- an array of String
s giving mime header names
Iterator
over all values matching these headerspublic Iterator getNonMatchingMimeHeaders(String[] match)
match
- an array of String
s giving mime header names
Iterator
over all values not matching these
headerspublic void setContent(Source source) throws javax.xml.soap.SOAPException
source
- the Source
object with the data to be set
javax.xml.soap.SOAPException
- if the implementation cannot convert the specified Source objectpublic Source getContent() throws javax.xml.soap.SOAPException
Source
object.
javax.xml.transform.Source
object
javax.xml.soap.SOAPException
- if the implementation cannot convert the specified Source
objectsetContent(javax.xml.transform.Source)
public Iterator getAllMimeHeaders()
SOAPPart
object as an iterator over the MimeHeader
objects.
Iterator
object with all of the Mime
headers for this SOAPPart
objectpublic 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.getMimeHeader(java.lang.String)
public 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 void removeAllMimeHeaders()
MimeHeader
objects for this
SOAPEnvelope
object.
public void removeMimeHeader(String header)
header
- a String
giving
the name of the MIME header(s) to be removedpublic javax.xml.soap.SOAPEnvelope getEnvelope() throws javax.xml.soap.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
javax.xml.soap.SOAPException
- if there is a SOAP errorpublic DocumentType getDoctype()
public DOMImplementation getImplementation()
public Element getDocumentElement()
public Element createElement(String tagName) throws DOMException
DOMException
public DocumentFragment createDocumentFragment()
public Text createTextNode(String data)
public Comment createComment(String data)
public CDATASection createCDATASection(String data) throws DOMException
DOMException
public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException
DOMException
public Attr createAttribute(String name) throws DOMException
DOMException
public EntityReference createEntityReference(String name) throws DOMException
DOMException
public NodeList getElementsByTagName(String tagname)
public Node importNode(Node importedNode, boolean deep) throws DOMException
DOMException
public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException
DOMException
public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException
DOMException
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
public Element getElementById(String elementId)
public String getNodeName()
public String getNodeValue() throws DOMException
DOMException
public void setNodeValue(String nodeValue) throws DOMException
DOMException
public short getNodeType()
public Node getParentNode()
public NodeList getChildNodes()
public Node getFirstChild()
public Node getLastChild()
public Node getPreviousSibling()
public Node getNextSibling()
public NamedNodeMap getAttributes()
public Document getOwnerDocument()
public Node insertBefore(Node newChild, Node refChild) throws DOMException
DOMException
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
DOMException
public Node removeChild(Node oldChild) throws DOMException
DOMException
public Node appendChild(Node newChild) throws DOMException
DOMException
public boolean hasChildNodes()
public Node cloneNode(boolean deep)
public void normalize()
public boolean isSupported(String feature, String version)
public String getNamespaceURI()
public String getPrefix()
public void setPrefix(String prefix) throws DOMException
DOMException
public String getLocalName()
public boolean hasAttributes()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |