|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.xml.soap.SOAPPart
org.jboss.axis.message.SOAPPartImpl
public class 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 |
---|
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 |
adoptNode(Node source)
|
Node |
appendChild(Node newChild)
|
Node |
cloneNode(boolean deep)
|
short |
compareDocumentPosition(Node other)
|
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()
|
String |
getBaseURI()
|
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()
|
String |
getDocumentURI()
|
DOMConfiguration |
getDomConfig()
|
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. |
Object |
getFeature(String feature,
String version)
|
Node |
getFirstChild()
|
DOMImplementation |
getImplementation()
|
String |
getInputEncoding()
|
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 |
getStrictErrorChecking()
|
String |
getTextContent()
|
Object |
getUserData(String key)
|
String |
getXmlEncoding()
|
boolean |
getXmlStandalone()
|
String |
getXmlVersion()
|
boolean |
hasAttributes()
|
boolean |
hasChildNodes()
|
Node |
importNode(Node importedNode,
boolean deep)
|
Node |
insertBefore(Node newChild,
Node refChild)
|
boolean |
isDefaultNamespace(String namespaceURI)
|
boolean |
isEqualNode(Node arg)
|
boolean |
isSameNode(Node other)
|
boolean |
isSupported(String feature,
String version)
|
String |
lookupNamespaceURI(String prefix)
|
String |
lookupPrefix(String namespaceURI)
|
void |
normalize()
|
void |
normalizeDocument()
|
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 |
renameNode(Node n,
String namespaceURI,
String qualifiedName)
|
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 |
setDocumentURI(String documentURI)
|
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)
|
void |
setStrictErrorChecking(boolean strictErrorChecking)
|
void |
setTextContent(String textContent)
|
Object |
setUserData(String key,
Object data,
UserDataHandler handler)
|
void |
setXmlStandalone(boolean xmlStandalone)
|
void |
setXmlVersion(String xmlVersion)
|
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)
addMimeHeader
in class javax.xml.soap.SOAPPart
header
- the header to addvalue
- the value of that headerpublic String getContentLocation()
getContentLocation
in class javax.xml.soap.SOAPPart
public void setContentLocation(String loc)
setContentLocation
in class javax.xml.soap.SOAPPart
loc
- the content locationpublic void setContentId(String newCid)
setContentId
in class javax.xml.soap.SOAPPart
newCid
- new Content-Idpublic String getContentId()
getContentId
in class javax.xml.soap.SOAPPart
public Iterator getMatchingMimeHeaders(String[] match)
getMatchingMimeHeaders
in class javax.xml.soap.SOAPPart
match
- an array of String
s giving mime header names
Iterator
over all values matching these headerspublic Iterator getNonMatchingMimeHeaders(String[] match)
getNonMatchingMimeHeaders
in class javax.xml.soap.SOAPPart
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
setContent
in class javax.xml.soap.SOAPPart
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.
getContent
in class javax.xml.soap.SOAPPart
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.
getAllMimeHeaders
in class javax.xml.soap.SOAPPart
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.
setMimeHeader
in class javax.xml.soap.SOAPPart
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
.
getMimeHeader
in class javax.xml.soap.SOAPPart
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.
removeAllMimeHeaders
in class javax.xml.soap.SOAPPart
public void removeMimeHeader(String header)
removeMimeHeader
in class javax.xml.soap.SOAPPart
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.
getEnvelope
in class javax.xml.soap.SOAPPart
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()
public String getInputEncoding()
public String getXmlEncoding()
public boolean getXmlStandalone()
public void setXmlStandalone(boolean xmlStandalone) throws DOMException
DOMException
public String getXmlVersion()
public void setXmlVersion(String xmlVersion) throws DOMException
DOMException
public boolean getStrictErrorChecking()
public void setStrictErrorChecking(boolean strictErrorChecking)
public String getDocumentURI()
public void setDocumentURI(String documentURI)
public Node adoptNode(Node source) throws DOMException
DOMException
public DOMConfiguration getDomConfig()
public void normalizeDocument()
public Node renameNode(Node n, String namespaceURI, String qualifiedName) throws DOMException
DOMException
public String getBaseURI()
public short compareDocumentPosition(Node other) throws DOMException
DOMException
public String getTextContent() throws DOMException
DOMException
public void setTextContent(String textContent) throws DOMException
DOMException
public boolean isSameNode(Node other)
public String lookupPrefix(String namespaceURI)
public boolean isDefaultNamespace(String namespaceURI)
public String lookupNamespaceURI(String prefix)
public boolean isEqualNode(Node arg)
public Object getFeature(String feature, String version)
public Object setUserData(String key, Object data, UserDataHandler handler)
public Object getUserData(String key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |