public final class SOAPHelper extends Object
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static void |
addActorAttribute(XMLObject soapObject,
String actorURI)
推奨されていません。
use instead
addSOAP11ActorAttribute(XMLObject, String). |
static void |
addEncodingStyle(XMLObject soapObject,
String encodingStyle)
推奨されていません。
use instead
addSOAP11EncodingStyle(XMLObject, String). |
static void |
addEncodingStyles(XMLObject soapObject,
List<String> encodingStyles)
推奨されていません。
use instead
addSOAP11EncodingStyles(XMLObject, List). |
static void |
addHeaderBlock(MessageContext messageContext,
XMLObject headerBlock)
Add a header block to the SOAP envelope contained within the specified message context's
MessageContext.getOutboundMessage(). |
static void |
addMustUnderstandAttribute(XMLObject soapObject,
boolean mustUnderstand)
推奨されていません。
use instead
addSOAP11MustUnderstandAttribute(XMLObject, boolean). |
static void |
addSOAP11ActorAttribute(XMLObject soapObject,
String actorURI)
Adds a
soap11:actor attribute to the given SOAP object. |
static void |
addSOAP11EncodingStyle(XMLObject soapObject,
String encodingStyle)
Adds a single encoding style to the given SOAP object.
|
static void |
addSOAP11EncodingStyles(XMLObject soapObject,
List<String> encodingStyles)
Adds a
soap11:encodingStyle attribute to the given SOAP object. |
static void |
addSOAP11HeaderBlock(Envelope envelope,
XMLObject headerBlock)
Add a header to the SOAP 1.1 Envelope.
|
static void |
addSOAP11MustUnderstandAttribute(XMLObject soapObject,
boolean mustUnderstand)
Adds a
soap11:mustUnderstand attribute to the given SOAP object. |
static void |
addSOAP12EncodingStyleAttribute(XMLObject soapObject,
String style)
Adds the
soap12:encodingStyle attribute to the given soap object. |
static void |
addSOAP12MustUnderstandAttribute(XMLObject soapObject,
boolean mustUnderstand)
Adds a
soap12:mustUnderstand attribute to the given SOAP object. |
static void |
addSOAP12RelayAttribute(XMLObject soapObject,
boolean relay)
Adds a
soap12:relay attribute to the given SOAP object. |
static void |
addSOAP12RoleAttribute(XMLObject soapObject,
String role)
Adds the
soap12:role attribute to the given soap object. |
static Fault |
buildSOAP11Fault(QName faultCode,
String faultString,
String faultActor,
List<XMLObject> detailChildren,
Map<QName,String> detailAttributes)
Build a SOAP 1.1.
|
static List<XMLObject> |
getInboundHeaderBlock(MessageContext msgContext,
QName headerName,
Set<String> targetNodes,
boolean isFinalDestination)
Get a header block from the SOAP envelope contained within the specified message context's
MessageContext.getInboundMessage(). |
static List<XMLObject> |
getOutboundHeaderBlock(MessageContext msgContext,
QName headerName,
Set<String> targetNodes,
boolean isFinalDestination)
Get a header block from the SOAP envelope contained within the specified message context's
MessageContext.getOutboundMessage(). |
static String |
getSOAP11ActorAttribute(XMLObject soapObject)
Gets the
soap11:actor attribute from a given SOAP object. |
static List<String> |
getSOAP11EncodingStyles(XMLObject soapObject)
Gets the list value of the
soap11:encodingStyle attribute from the given SOAP object. |
static List<XMLObject> |
getSOAP11HeaderBlock(Envelope envelope,
QName headerName,
Set<String> targetNodes,
boolean isFinalDestination)
Get a header block from the SOAP 1.1 envelope.
|
static boolean |
getSOAP11MustUnderstandAttribute(XMLObject soapObject)
Get the
soap11:mustUnderstand attribute from a given SOAP object. |
static String |
getSOAP12EncodingStyleAttribute(XMLObject soapObject)
Gets the
soap12:encodingStyle. |
static boolean |
getSOAP12MustUnderstandAttribute(XMLObject soapObject)
Get the
soap12:mustUnderstand attribute from a given SOAP object. |
static boolean |
getSOAP12RelayAttribute(XMLObject soapObject)
Get the
soap12:relay attribute from a given SOAP object. |
static String |
getSOAP12RoleAttribute(XMLObject soapObject)
Gets the
soap12:role. |
static boolean |
isInboundSOAPMessage(MessageContext messageContext)
Determine whether the inbound message represented by the message context
contains a SOAP Envelope.
|
static boolean |
isSOAP11HeaderTargetedToNode(XMLObject header,
Set<String> nodeActors,
boolean isFinalDestination)
Evaluate whether the specified header block is targeted to a SOAP 1.1 node given the specified
parameters.
|
public static void addSOAP11MustUnderstandAttribute(XMLObject soapObject, boolean mustUnderstand)
soap11:mustUnderstand attribute to the given SOAP object.soapObject - the SOAP object to add the attribute tomustUnderstand - whether mustUnderstand is true or falsepublic static boolean getSOAP11MustUnderstandAttribute(XMLObject soapObject)
soap11:mustUnderstand attribute from a given SOAP object.soapObject - the SOAP object to add the attribute topublic static void addSOAP11ActorAttribute(XMLObject soapObject, String actorURI)
soap11:actor attribute to the given SOAP object.soapObject - the SOAP object to add the attribute toactorURI - the URI of the actorpublic static String getSOAP11ActorAttribute(XMLObject soapObject)
soap11:actor attribute from a given SOAP object.soapObject - the SOAP object to add the attribute topublic static void addSOAP11EncodingStyle(XMLObject soapObject, String encodingStyle)
soap11:encodingStyle attribute
is present, the given style will be added to the existing list.soapObject - the SOAP object to add the attribute toencodingStyle - the encoding style to addpublic static void addSOAP11EncodingStyles(XMLObject soapObject, List<String> encodingStyles)
soap11:encodingStyle attribute to the given SOAP object.soapObject - the SOAP object to add the attribute toencodingStyles - the list of encoding styles to addpublic static List<String> getSOAP11EncodingStyles(XMLObject soapObject)
soap11:encodingStyle attribute from the given SOAP object.soapObject - the SOAP object to add the attribute topublic static void addSOAP12EncodingStyleAttribute(XMLObject soapObject, String style)
soap12:encodingStyle attribute to the given soap object.soapObject - object to which the encoding style attribute should be addedstyle - the encoding stylepublic static String getSOAP12EncodingStyleAttribute(XMLObject soapObject)
soap12:encodingStyle.soapObject - the SOAP object which may contain the encoding stylepublic static void addSOAP12MustUnderstandAttribute(XMLObject soapObject, boolean mustUnderstand)
soap12:mustUnderstand attribute to the given SOAP object.soapObject - the SOAP object to add the attribute tomustUnderstand - whether mustUnderstand is true or falsepublic static boolean getSOAP12MustUnderstandAttribute(XMLObject soapObject)
soap12:mustUnderstand attribute from a given SOAP object.soapObject - the SOAP object to add the attribute topublic static void addSOAP12RelayAttribute(XMLObject soapObject, boolean relay)
soap12:relay attribute to the given SOAP object.soapObject - the SOAP object to add the attribute torelay - whether relay is true or falsepublic static boolean getSOAP12RelayAttribute(XMLObject soapObject)
soap12:relay attribute from a given SOAP object.soapObject - the SOAP object to add the attribute topublic static void addSOAP12RoleAttribute(XMLObject soapObject, String role)
soap12:role attribute to the given soap object.soapObject - object to which the rol attribute should be addedrole - the rolepublic static String getSOAP12RoleAttribute(XMLObject soapObject)
soap12:role.soapObject - the SOAP object which may contain the rolepublic static void addActorAttribute(XMLObject soapObject, String actorURI)
addSOAP11ActorAttribute(XMLObject, String).soap11:actor attribute to the given SOAP object.soapObject - the SOAP object to add the attribute toactorURI - the URI of the actorpublic static void addEncodingStyle(XMLObject soapObject, String encodingStyle)
addSOAP11EncodingStyle(XMLObject, String).soap11:encodingStyle attribute
is present, the given style will be added to the existing list.soapObject - the SOAP object to add the attribute toencodingStyle - the encoding style to addpublic static void addEncodingStyles(XMLObject soapObject, List<String> encodingStyles)
addSOAP11EncodingStyles(XMLObject, List).soap11:encodingStyle attribute to the given SOAP object.soapObject - the SOAP object to add the attribute toencodingStyles - the list of encoding styles to addpublic static void addMustUnderstandAttribute(XMLObject soapObject, boolean mustUnderstand)
addSOAP11MustUnderstandAttribute(XMLObject, boolean).soap11:mustUnderstand attribute to the given SOAP object.soapObject - the SOAP object to add the attribute tomustUnderstand - whether mustUnderstand is true or falsepublic static void addHeaderBlock(MessageContext messageContext, XMLObject headerBlock)
MessageContext.getOutboundMessage().messageContext - the message context being processedheaderBlock - the header block to addpublic static void addSOAP11HeaderBlock(Envelope envelope, XMLObject headerBlock)
envelope - the SOAP 1.1 envelope to processheaderBlock - the header to addpublic static List<XMLObject> getInboundHeaderBlock(MessageContext msgContext, QName headerName, Set<String> targetNodes, boolean isFinalDestination)
MessageContext.getInboundMessage().msgContext - the message context being processedheaderName - the name of the header block to returntargetNodes - the explicitly specified SOAP node actors (1.1) or roles (1.2) for which the header is desiredisFinalDestination - true specifies that headers targeted for message final destination should be returned,
false means they should not be returnedpublic static List<XMLObject> getOutboundHeaderBlock(MessageContext msgContext, QName headerName, Set<String> targetNodes, boolean isFinalDestination)
MessageContext.getOutboundMessage().msgContext - the message context being processedheaderName - the name of the header block to returntargetNodes - the explicitly specified SOAP node actors (1.1) or roles (1.2) for which the header is desiredisFinalDestination - true specifies that headers targeted for message final destination should be returned,
false specifies they should not be returnedpublic static List<XMLObject> getSOAP11HeaderBlock(Envelope envelope, QName headerName, Set<String> targetNodes, boolean isFinalDestination)
envelope - the SOAP 1.1 envelope to processheaderName - the name of the header block to returntargetNodes - the explicitly specified SOAP node actors for which the header is desiredisFinalDestination - true specifies that headers targeted for message final destination should be returned,
false specifies they should not be returnedpublic static boolean isSOAP11HeaderTargetedToNode(XMLObject header, Set<String> nodeActors, boolean isFinalDestination)
header - the header to evaluatenodeActors - the explicitly specified node actors for which the header is desiredisFinalDestination - true specifies that headers targeted for message final destination should be returned,
false specifies they should not be returnedpublic static boolean isInboundSOAPMessage(MessageContext messageContext)
messageContext - the current message contextpublic static Fault buildSOAP11Fault(QName faultCode, String faultString, String faultActor, List<XMLObject> detailChildren, Map<QName,String> detailAttributes)
faultCode - the 'faultcode' QName (required)faultString - the 'faultstring' value (required)faultActor - the 'faultactor' value (may be null)detailChildren - the 'detail' child elementsdetailAttributes - the 'detail' element attributesCopyright © 2012. All Rights Reserved.