|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.ws.soap.saaj.Saaj11Implementation
public class Saaj11Implementation
SAAJ 1.1 specific implementation of the SaajImplementation
interface.
Method Summary | |
---|---|
javax.xml.soap.AttachmentPart |
addAttachmentPart(javax.xml.soap.SOAPMessage message,
javax.activation.DataHandler dataHandler)
Adds an attachment to the given message. |
void |
addAttribute(javax.xml.soap.SOAPElement element,
javax.xml.namespace.QName name,
java.lang.String value)
Adds an attribute to the specified element. |
javax.xml.soap.DetailEntry |
addDetailEntry(javax.xml.soap.Detail detail,
javax.xml.namespace.QName name)
Adds a detail entry to the given detail. |
javax.xml.soap.SOAPFault |
addFault(javax.xml.soap.SOAPBody body,
javax.xml.namespace.QName faultCode,
java.lang.String faultString,
java.util.Locale locale)
Adds a fault to the given body. |
javax.xml.soap.Detail |
addFaultDetail(javax.xml.soap.SOAPFault fault)
Adds a fault detail for the given fault. |
javax.xml.soap.SOAPHeaderElement |
addHeaderElement(javax.xml.soap.SOAPHeader header,
javax.xml.namespace.QName name)
Adds a header element to the given header. |
javax.xml.soap.SOAPHeaderElement |
addNotUnderstoodHeaderElement(javax.xml.soap.SOAPHeader header,
javax.xml.namespace.QName name)
Adds a not understood header element to the given header. |
void |
addTextNode(javax.xml.soap.DetailEntry detailEntry,
java.lang.String text)
|
javax.xml.soap.SOAPHeaderElement |
addUpgradeHeaderElement(javax.xml.soap.SOAPHeader header,
java.lang.String[] supportedSoapUris)
Adds a upgrade header element to the given header. |
void |
appendFaultSubcode(javax.xml.soap.SOAPFault fault,
javax.xml.namespace.QName subcode)
Adds a fault sub code. |
java.util.Iterator |
examineAllHeaderElements(javax.xml.soap.SOAPHeader header)
Returns all header elements. |
java.util.Iterator |
examineMustUnderstandHeaderElements(javax.xml.soap.SOAPHeader header,
java.lang.String actorOrRole)
Returns all header elements for which the must understand attribute is true, given the actor or role. |
java.lang.String |
getActorOrRole(javax.xml.soap.SOAPHeaderElement headerElement)
Returns the SOAP 1.1 actor or SOAP 1.2 role attribute for the given header element. |
java.util.Iterator |
getAllAttibutes(javax.xml.soap.SOAPElement element)
Returns all attributes as an iterator of QNames. |
java.util.Iterator |
getAttachment(javax.xml.soap.SOAPMessage message,
javax.xml.soap.MimeHeaders mimeHeaders)
Returns an iteration over all attachments in the message with the given headers. |
java.util.Iterator |
getAttachments(javax.xml.soap.SOAPMessage message)
Returns an iteration over all attachments in the message. |
java.lang.String |
getAttributeValue(javax.xml.soap.SOAPElement element,
javax.xml.namespace.QName name)
Returns the attribute value * |
javax.xml.soap.SOAPBody |
getBody(javax.xml.soap.SOAPEnvelope envelope)
Returns the body of the given envelope. |
java.util.Iterator |
getDetailEntries(javax.xml.soap.Detail detail)
Returns an iteration over all detail entries. |
javax.xml.soap.SOAPEnvelope |
getEnvelope(javax.xml.soap.SOAPMessage message)
Returns the envelope of the given message. |
javax.xml.soap.SOAPFault |
getFault(javax.xml.soap.SOAPBody body)
Returns the fault for the given body, if any. |
java.lang.String |
getFaultActor(javax.xml.soap.SOAPFault fault)
Returns the actor for the given fault. |
javax.xml.namespace.QName |
getFaultCode(javax.xml.soap.SOAPFault fault)
Returns the fault code for the given fault. |
javax.xml.soap.Detail |
getFaultDetail(javax.xml.soap.SOAPFault fault)
Returns the fault detail for the given fault. |
java.lang.String |
getFaultNode(javax.xml.soap.SOAPFault fault)
Returns the fault node. |
java.lang.String |
getFaultReasonText(javax.xml.soap.SOAPFault fault,
java.util.Locale locale)
Returns the fault reason text. |
java.lang.String |
getFaultRole(javax.xml.soap.SOAPFault fault)
Returns the fault role. |
java.lang.String |
getFaultString(javax.xml.soap.SOAPFault fault)
Returns the fault string for the given fault. |
java.util.Locale |
getFaultStringLocale(javax.xml.soap.SOAPFault fault)
Returns the fault string language for the given fault. |
java.util.Iterator |
getFaultSubcodes(javax.xml.soap.SOAPFault fault)
Returns the fault sub code. |
javax.xml.soap.SOAPElement |
getFirstBodyElement(javax.xml.soap.SOAPBody body)
Returns the first child element of the given body. |
javax.xml.soap.SOAPHeader |
getHeader(javax.xml.soap.SOAPEnvelope envelope)
Returns the header of the given envelope. |
static Saaj11Implementation |
getInstance()
|
javax.xml.soap.MimeHeaders |
getMimeHeaders(javax.xml.soap.SOAPMessage message)
Returns the MIME headers of the message. |
boolean |
getMustUnderstand(javax.xml.soap.SOAPHeaderElement headerElement)
Gets the must understand attribute for the given header element. |
javax.xml.namespace.QName |
getName(javax.xml.soap.SOAPElement element)
Returns the name of the given element. |
javax.xml.transform.Result |
getResult(javax.xml.soap.SOAPElement element)
Returns the writable Result of the given element. |
javax.xml.transform.Source |
getSource(javax.xml.soap.SOAPElement element)
Returns the readable Source of the given element. |
java.lang.String |
getText(javax.xml.soap.SOAPElement element)
Returns the text of the given element |
boolean |
hasFault(javax.xml.soap.SOAPBody body)
Returns true if the body has a fault, false otherwise. |
boolean |
isSoap11(javax.xml.soap.SOAPElement element)
|
void |
removeAttribute(javax.xml.soap.SOAPElement element,
javax.xml.namespace.QName name)
Removes an attribute from the specified element. |
void |
removeContents(javax.xml.soap.SOAPElement element)
Removes the contents (i.e. |
void |
setActorOrRole(javax.xml.soap.SOAPHeaderElement headerElement,
java.lang.String actorOrRole)
Sets the SOAP 1.1 actor or SOAP 1.2 role attribute for the given header element. |
void |
setFaultActor(javax.xml.soap.SOAPFault fault,
java.lang.String actorOrRole)
Sets the actor for the given fault. |
void |
setFaultNode(javax.xml.soap.SOAPFault fault,
java.lang.String uri)
Sets the fault node. |
void |
setFaultReasonText(javax.xml.soap.SOAPFault fault,
java.util.Locale locale,
java.lang.String text)
Sets the fault reason text. |
void |
setFaultRole(javax.xml.soap.SOAPFault fault,
java.lang.String role)
Sets the fault role. |
void |
setMustUnderstand(javax.xml.soap.SOAPHeaderElement headerElement,
boolean mustUnderstand)
Sets the must understand attribute for the given header element. |
void |
setText(javax.xml.soap.SOAPElement element,
java.lang.String content)
Returns the text of the given element |
void |
writeTo(javax.xml.soap.SOAPMessage message,
java.io.OutputStream outputStream)
Writes the given message to the given stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Saaj11Implementation getInstance()
public javax.xml.namespace.QName getName(javax.xml.soap.SOAPElement element)
SaajImplementation
getName
in interface SaajImplementation
public javax.xml.transform.Source getSource(javax.xml.soap.SOAPElement element)
SaajImplementation
Source
of the given element.
getSource
in interface SaajImplementation
public javax.xml.transform.Result getResult(javax.xml.soap.SOAPElement element)
SaajImplementation
Result
of the given element.
getResult
in interface SaajImplementation
public java.lang.String getText(javax.xml.soap.SOAPElement element)
SaajImplementation
getText
in interface SaajImplementation
public void setText(javax.xml.soap.SOAPElement element, java.lang.String content) throws javax.xml.soap.SOAPException
SaajImplementation
setText
in interface SaajImplementation
javax.xml.soap.SOAPException
public void addAttribute(javax.xml.soap.SOAPElement element, javax.xml.namespace.QName name, java.lang.String value) throws javax.xml.soap.SOAPException
SaajImplementation
addAttribute
in interface SaajImplementation
javax.xml.soap.SOAPException
public void removeAttribute(javax.xml.soap.SOAPElement element, javax.xml.namespace.QName name) throws javax.xml.soap.SOAPException
SaajImplementation
removeAttribute
in interface SaajImplementation
javax.xml.soap.SOAPException
public java.lang.String getAttributeValue(javax.xml.soap.SOAPElement element, javax.xml.namespace.QName name) throws javax.xml.soap.SOAPException
SaajImplementation
getAttributeValue
in interface SaajImplementation
javax.xml.soap.SOAPException
public java.util.Iterator getAllAttibutes(javax.xml.soap.SOAPElement element)
SaajImplementation
getAllAttibutes
in interface SaajImplementation
public javax.xml.namespace.QName getFaultCode(javax.xml.soap.SOAPFault fault)
SaajImplementation
getFaultCode
in interface SaajImplementation
public boolean isSoap11(javax.xml.soap.SOAPElement element)
public javax.xml.soap.DetailEntry addDetailEntry(javax.xml.soap.Detail detail, javax.xml.namespace.QName name) throws javax.xml.soap.SOAPException
SaajImplementation
addDetailEntry
in interface SaajImplementation
javax.xml.soap.SOAPException
public javax.xml.soap.SOAPHeaderElement addHeaderElement(javax.xml.soap.SOAPHeader header, javax.xml.namespace.QName name) throws javax.xml.soap.SOAPException
SaajImplementation
addHeaderElement
in interface SaajImplementation
javax.xml.soap.SOAPException
public javax.xml.soap.SOAPFault addFault(javax.xml.soap.SOAPBody body, javax.xml.namespace.QName faultCode, java.lang.String faultString, java.util.Locale locale) throws javax.xml.soap.SOAPException
SaajImplementation
addFault
in interface SaajImplementation
javax.xml.soap.SOAPException
public javax.xml.soap.SOAPEnvelope getEnvelope(javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException
getEnvelope
in interface SaajImplementation
javax.xml.soap.SOAPException
public javax.xml.soap.SOAPHeader getHeader(javax.xml.soap.SOAPEnvelope envelope) throws javax.xml.soap.SOAPException
getHeader
in interface SaajImplementation
javax.xml.soap.SOAPException
public javax.xml.soap.SOAPBody getBody(javax.xml.soap.SOAPEnvelope envelope) throws javax.xml.soap.SOAPException
getBody
in interface SaajImplementation
javax.xml.soap.SOAPException
public java.util.Iterator examineAllHeaderElements(javax.xml.soap.SOAPHeader header)
examineAllHeaderElements
in interface SaajImplementation
public java.util.Iterator examineMustUnderstandHeaderElements(javax.xml.soap.SOAPHeader header, java.lang.String actorOrRole)
examineMustUnderstandHeaderElements
in interface SaajImplementation
public java.lang.String getActorOrRole(javax.xml.soap.SOAPHeaderElement headerElement)
getActorOrRole
in interface SaajImplementation
public void setActorOrRole(javax.xml.soap.SOAPHeaderElement headerElement, java.lang.String actorOrRole)
setActorOrRole
in interface SaajImplementation
public boolean getMustUnderstand(javax.xml.soap.SOAPHeaderElement headerElement)
getMustUnderstand
in interface SaajImplementation
public void setMustUnderstand(javax.xml.soap.SOAPHeaderElement headerElement, boolean mustUnderstand)
setMustUnderstand
in interface SaajImplementation
public boolean hasFault(javax.xml.soap.SOAPBody body)
true
if the body has a fault, false
otherwise.
hasFault
in interface SaajImplementation
public javax.xml.soap.SOAPFault getFault(javax.xml.soap.SOAPBody body)
getFault
in interface SaajImplementation
public java.lang.String getFaultActor(javax.xml.soap.SOAPFault fault)
getFaultActor
in interface SaajImplementation
public void setFaultActor(javax.xml.soap.SOAPFault fault, java.lang.String actorOrRole) throws javax.xml.soap.SOAPException
setFaultActor
in interface SaajImplementation
javax.xml.soap.SOAPException
public java.lang.String getFaultString(javax.xml.soap.SOAPFault fault)
getFaultString
in interface SaajImplementation
public java.util.Locale getFaultStringLocale(javax.xml.soap.SOAPFault fault)
getFaultStringLocale
in interface SaajImplementation
public javax.xml.soap.Detail getFaultDetail(javax.xml.soap.SOAPFault fault)
getFaultDetail
in interface SaajImplementation
public javax.xml.soap.Detail addFaultDetail(javax.xml.soap.SOAPFault fault) throws javax.xml.soap.SOAPException
addFaultDetail
in interface SaajImplementation
javax.xml.soap.SOAPException
public void addTextNode(javax.xml.soap.DetailEntry detailEntry, java.lang.String text) throws javax.xml.soap.SOAPException
addTextNode
in interface SaajImplementation
javax.xml.soap.SOAPException
public java.util.Iterator getDetailEntries(javax.xml.soap.Detail detail)
getDetailEntries
in interface SaajImplementation
public javax.xml.soap.SOAPElement getFirstBodyElement(javax.xml.soap.SOAPBody body)
SaajImplementation
getFirstBodyElement
in interface SaajImplementation
public void removeContents(javax.xml.soap.SOAPElement element)
SaajImplementation
removeContents
in interface SaajImplementation
public void writeTo(javax.xml.soap.SOAPMessage message, java.io.OutputStream outputStream) throws javax.xml.soap.SOAPException, java.io.IOException
SaajImplementation
writeTo
in interface SaajImplementation
javax.xml.soap.SOAPException
java.io.IOException
public javax.xml.soap.MimeHeaders getMimeHeaders(javax.xml.soap.SOAPMessage message)
SaajImplementation
getMimeHeaders
in interface SaajImplementation
public java.util.Iterator getAttachments(javax.xml.soap.SOAPMessage message)
SaajImplementation
getAttachments
in interface SaajImplementation
public java.util.Iterator getAttachment(javax.xml.soap.SOAPMessage message, javax.xml.soap.MimeHeaders mimeHeaders)
SaajImplementation
getAttachment
in interface SaajImplementation
public javax.xml.soap.AttachmentPart addAttachmentPart(javax.xml.soap.SOAPMessage message, javax.activation.DataHandler dataHandler)
SaajImplementation
addAttachmentPart
in interface SaajImplementation
public java.lang.String getFaultRole(javax.xml.soap.SOAPFault fault)
SaajImplementation
getFaultRole
in interface SaajImplementation
public void setFaultRole(javax.xml.soap.SOAPFault fault, java.lang.String role)
SaajImplementation
setFaultRole
in interface SaajImplementation
public javax.xml.soap.SOAPHeaderElement addNotUnderstoodHeaderElement(javax.xml.soap.SOAPHeader header, javax.xml.namespace.QName name)
SaajImplementation
addNotUnderstoodHeaderElement
in interface SaajImplementation
public javax.xml.soap.SOAPHeaderElement addUpgradeHeaderElement(javax.xml.soap.SOAPHeader header, java.lang.String[] supportedSoapUris)
SaajImplementation
addUpgradeHeaderElement
in interface SaajImplementation
public java.util.Iterator getFaultSubcodes(javax.xml.soap.SOAPFault fault)
SaajImplementation
getFaultSubcodes
in interface SaajImplementation
public void appendFaultSubcode(javax.xml.soap.SOAPFault fault, javax.xml.namespace.QName subcode)
SaajImplementation
appendFaultSubcode
in interface SaajImplementation
public java.lang.String getFaultNode(javax.xml.soap.SOAPFault fault)
SaajImplementation
getFaultNode
in interface SaajImplementation
public void setFaultNode(javax.xml.soap.SOAPFault fault, java.lang.String uri)
SaajImplementation
setFaultNode
in interface SaajImplementation
public java.lang.String getFaultReasonText(javax.xml.soap.SOAPFault fault, java.util.Locale locale)
SaajImplementation
getFaultReasonText
in interface SaajImplementation
public void setFaultReasonText(javax.xml.soap.SOAPFault fault, java.util.Locale locale, java.lang.String text)
SaajImplementation
setFaultReasonText
in interface SaajImplementation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |