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