public final class SOAPSupport
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
SOAPSupport()
Private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addHeaderBlock(MessageContext messageContext,
XMLObject headerBlock)
Add a header block to the SOAP envelope contained within the specified message context's
SOAP subcontext.
|
static void |
addSOAP11ActorAttribute(XMLObject soapObject,
java.lang.String actorURI)
Adds a
soap11:actor attribute to the given SOAP object. |
static void |
addSOAP11EncodingStyle(XMLObject soapObject,
java.lang.String encodingStyle)
Adds a single encoding style to the given SOAP object.
|
static void |
addSOAP11EncodingStyles(XMLObject soapObject,
java.util.List<java.lang.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,
java.lang.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,
java.lang.String role)
Adds the
soap12:role attribute to the given soap object. |
static Fault |
buildSOAP11Fault(javax.xml.namespace.QName faultCode,
java.lang.String faultString,
java.lang.String faultActor,
java.util.List<XMLObject> detailChildren,
java.util.Map<javax.xml.namespace.QName,java.lang.String> detailAttributes)
Build a SOAP 1.1.
|
static java.util.List<XMLObject> |
getInboundHeaderBlock(MessageContext messageContext,
javax.xml.namespace.QName headerName,
java.util.Set<java.lang.String> targetNodes,
boolean isFinalDestination)
Get a header block from the SOAP envelope contained within the specified message context's
SOAP subcontext.
|
static java.lang.String |
getSOAP11ActorAttribute(XMLObject soapObject)
Gets the
soap11:actor attribute from a given SOAP object. |
static java.util.List<java.lang.String> |
getSOAP11EncodingStyles(XMLObject soapObject)
Gets the list value of the
soap11:encodingStyle attribute from the given SOAP object. |
static java.util.List<XMLObject> |
getSOAP11HeaderBlock(Envelope envelope,
javax.xml.namespace.QName headerName,
java.util.Set<java.lang.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 java.lang.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 java.lang.String |
getSOAP12RoleAttribute(XMLObject soapObject)
Gets the
soap12:role. |
static boolean |
isSOAP11HeaderTargetedToNode(XMLObject header,
java.util.Set<java.lang.String> nodeActors,
boolean isFinalDestination)
Evaluate whether the specified header block is targeted to a SOAP 1.1 node given the specified
parameters.
|
static boolean |
isSOAPMessage(MessageContext<? extends XMLObject> messageContext)
Determine whether the message represented by the message context
contains a SOAP Envelope.
|
public static void addSOAP11MustUnderstandAttribute(@Nonnull
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(@Nonnull
XMLObject soapObject)
soap11:mustUnderstand attribute from a given SOAP object.soapObject - the SOAP object to add the attribute topublic static void addSOAP11ActorAttribute(@Nonnull
XMLObject soapObject,
@Nonnull
java.lang.String actorURI)
soap11:actor attribute to the given SOAP object.soapObject - the SOAP object to add the attribute toactorURI - the URI of the actor@Nullable
public static java.lang.String getSOAP11ActorAttribute(@Nonnull
XMLObject soapObject)
soap11:actor attribute from a given SOAP object.soapObject - the SOAP object to add the attribute topublic static void addSOAP11EncodingStyle(@Nonnull
XMLObject soapObject,
@Nonnull
java.lang.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(@Nonnull
XMLObject soapObject,
@Nonnull
java.util.List<java.lang.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 add@Nullable
public static java.util.List<java.lang.String> getSOAP11EncodingStyles(@Nonnull
XMLObject soapObject)
soap11:encodingStyle attribute from the given SOAP object.soapObject - the SOAP object to add the attribute topublic static void addSOAP12EncodingStyleAttribute(@Nonnull
XMLObject soapObject,
@Nonnull
java.lang.String style)
soap12:encodingStyle attribute to the given soap object.soapObject - object to which the encoding style attribute should be addedstyle - the encoding style@Nullable
public static java.lang.String getSOAP12EncodingStyleAttribute(@Nonnull
XMLObject soapObject)
soap12:encodingStyle.soapObject - the SOAP object which may contain the encoding stylepublic static void addSOAP12MustUnderstandAttribute(@Nonnull
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(@Nonnull
XMLObject soapObject)
soap12:mustUnderstand attribute from a given SOAP object.soapObject - the SOAP object to add the attribute topublic static void addSOAP12RelayAttribute(@Nonnull
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(@Nonnull
XMLObject soapObject)
soap12:relay attribute from a given SOAP object.soapObject - the SOAP object to add the attribute topublic static void addSOAP12RoleAttribute(@Nonnull
XMLObject soapObject,
@Nonnull
java.lang.String role)
soap12:role attribute to the given soap object.soapObject - object to which the rol attribute should be addedrole - the role@Nullable
public static java.lang.String getSOAP12RoleAttribute(@Nonnull
XMLObject soapObject)
soap12:role.soapObject - the SOAP object which may contain the rolepublic static void addHeaderBlock(@Nonnull
MessageContext messageContext,
@Nonnull
XMLObject headerBlock)
messageContext - the message context being processedheaderBlock - the header block to addpublic static void addSOAP11HeaderBlock(@Nonnull
Envelope envelope,
@Nonnull
XMLObject headerBlock)
envelope - the SOAP 1.1 envelope to processheaderBlock - the header to add@Nonnull public static java.util.List<XMLObject> getInboundHeaderBlock(@Nonnull MessageContext messageContext, @Nonnull javax.xml.namespace.QName headerName, @Nullable java.util.Set<java.lang.String> targetNodes, boolean isFinalDestination)
messageContext - 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 returned@Nonnull public static java.util.List<XMLObject> getSOAP11HeaderBlock(@Nonnull Envelope envelope, @Nonnull javax.xml.namespace.QName headerName, @Nullable java.util.Set<java.lang.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(@Nonnull
XMLObject header,
@Nullable
java.util.Set<java.lang.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 isSOAPMessage(@Nonnull
MessageContext<? extends XMLObject> messageContext)
messageContext - the current message contextpublic static Fault buildSOAP11Fault(@Nonnull javax.xml.namespace.QName faultCode, @Nonnull java.lang.String faultString, @Nullable java.lang.String faultActor, @Nullable java.util.List<XMLObject> detailChildren, @Nullable java.util.Map<javax.xml.namespace.QName,java.lang.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 attributes