|
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.Saaj12Implementation
public class Saaj12Implementation
SAAJ 1.2 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 Saaj12Implementation |
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 Saaj12Implementation getInstance()
public QName getName(SOAPElement element)
SaajImplementation
getName in interface SaajImplementationpublic QName getFaultCode(SOAPFault fault)
SaajImplementation
getFaultCode in interface SaajImplementationpublic boolean isSoap11(SOAPElement element)
public DetailEntry addDetailEntry(Detail detail,
QName name)
throws SOAPException
SaajImplementation
addDetailEntry in interface SaajImplementationSOAPException
public SOAPHeaderElement addHeaderElement(SOAPHeader header,
QName name)
throws SOAPException
SaajImplementation
addHeaderElement in interface SaajImplementationSOAPException
public SOAPFault addFault(SOAPBody body,
QName faultCode,
String faultString,
Locale locale)
throws SOAPException
SaajImplementation
addFault in interface SaajImplementationSOAPExceptionpublic Source getSource(SOAPElement element)
SaajImplementationSource of the given element.
getSource in interface SaajImplementationpublic Result getResult(SOAPElement element)
SaajImplementationResult of the given element.
getResult in interface SaajImplementation
public void addAttribute(SOAPElement element,
QName name,
String value)
throws SOAPException
SaajImplementation
addAttribute in interface SaajImplementationSOAPException
public void removeAttribute(SOAPElement element,
QName name)
throws SOAPException
SaajImplementation
removeAttribute in interface SaajImplementationSOAPException
public String getAttributeValue(SOAPElement element,
QName name)
throws SOAPException
SaajImplementation
getAttributeValue in interface SaajImplementationSOAPExceptionpublic Iterator getAllAttibutes(SOAPElement element)
SaajImplementation
getAllAttibutes in interface SaajImplementationpublic String getText(SOAPElement element)
SaajImplementation
getText in interface SaajImplementation
public void setText(SOAPElement element,
String content)
SaajImplementation
setText in interface SaajImplementation
public SOAPEnvelope getEnvelope(SOAPMessage message)
throws SOAPException
SaajImplementation
getEnvelope in interface SaajImplementationSOAPException
public SOAPHeader getHeader(SOAPEnvelope envelope)
throws SOAPException
SaajImplementation
getHeader in interface SaajImplementationSOAPException
public SOAPBody getBody(SOAPEnvelope envelope)
throws SOAPException
SaajImplementation
getBody in interface SaajImplementationSOAPExceptionpublic Iterator examineAllHeaderElements(SOAPHeader header)
SaajImplementation
examineAllHeaderElements in interface SaajImplementation
public Iterator examineMustUnderstandHeaderElements(SOAPHeader header,
String actorOrRole)
SaajImplementation
examineMustUnderstandHeaderElements in interface SaajImplementationpublic String getActorOrRole(SOAPHeaderElement headerElement)
SaajImplementation
getActorOrRole in interface SaajImplementation
public void setActorOrRole(SOAPHeaderElement headerElement,
String actorOrRole)
SaajImplementation
setActorOrRole in interface SaajImplementationpublic boolean getMustUnderstand(SOAPHeaderElement headerElement)
SaajImplementation
getMustUnderstand in interface SaajImplementation
public void setMustUnderstand(SOAPHeaderElement headerElement,
boolean mustUnderstand)
SaajImplementation
setMustUnderstand in interface SaajImplementationpublic boolean hasFault(SOAPBody body)
SaajImplementationtrue if the body has a fault, false otherwise.
hasFault in interface SaajImplementationpublic SOAPFault getFault(SOAPBody body)
SaajImplementation
getFault in interface SaajImplementationpublic String getFaultActor(SOAPFault fault)
SaajImplementation
getFaultActor in interface SaajImplementation
public void setFaultActor(SOAPFault fault,
String actorOrRole)
throws SOAPException
SaajImplementation
setFaultActor in interface SaajImplementationSOAPExceptionpublic String getFaultString(SOAPFault fault)
SaajImplementation
getFaultString in interface SaajImplementationpublic Locale getFaultStringLocale(SOAPFault fault)
SaajImplementation
getFaultStringLocale in interface SaajImplementationpublic Detail getFaultDetail(SOAPFault fault)
SaajImplementation
getFaultDetail in interface SaajImplementation
public Detail addFaultDetail(SOAPFault fault)
throws SOAPException
SaajImplementation
addFaultDetail in interface SaajImplementationSOAPException
public void addTextNode(DetailEntry detailEntry,
String text)
throws SOAPException
addTextNode in interface SaajImplementationSOAPExceptionpublic Iterator getDetailEntries(Detail detail)
SaajImplementation
getDetailEntries in interface SaajImplementationpublic SOAPElement getFirstBodyElement(SOAPBody body)
SaajImplementation
getFirstBodyElement in interface SaajImplementationpublic void removeContents(SOAPElement element)
SaajImplementation
removeContents in interface SaajImplementation
public void writeTo(SOAPMessage message,
OutputStream outputStream)
throws SOAPException,
IOException
SaajImplementation
writeTo in interface SaajImplementationSOAPException
IOExceptionpublic MimeHeaders getMimeHeaders(SOAPMessage message)
SaajImplementation
getMimeHeaders in interface SaajImplementationpublic 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 SaajImplementationpublic 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 SaajImplementationpublic Iterator getFaultSubcodes(SOAPFault fault)
SaajImplementation
getFaultSubcodes in interface SaajImplementation
public void appendFaultSubcode(SOAPFault fault,
QName subcode)
SaajImplementation
appendFaultSubcode in interface SaajImplementationpublic 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 | |||||||||