public final class SOAPSupport extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addHeaderBlock(org.opensaml.messaging.context.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,
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(org.opensaml.messaging.context.MessageContext messageContext,
QName headerName,
Set<String> targetNodes,
boolean isFinalDestination)
Get a header block from the SOAP envelope contained within the specified message context's
SOAP subcontext.
|
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 |
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.
|
static boolean |
isSOAPMessage(org.opensaml.messaging.context.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 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 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 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 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 add@Nullable public static List<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 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 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 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 String getSOAP12RoleAttribute(@Nonnull XMLObject soapObject)
soap12:role
.soapObject
- the SOAP object which may contain the rolepublic static void addHeaderBlock(@Nonnull org.opensaml.messaging.context.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 List<XMLObject> getInboundHeaderBlock(@Nonnull org.opensaml.messaging.context.MessageContext messageContext, @Nonnull QName headerName, @Nullable Set<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 List<XMLObject> getSOAP11HeaderBlock(@Nonnull Envelope envelope, @Nonnull QName headerName, @Nullable 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(@Nonnull XMLObject header, @Nullable 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 isSOAPMessage(@Nonnull org.opensaml.messaging.context.MessageContext<? extends XMLObject> messageContext)
messageContext
- the current message contextpublic static Fault buildSOAP11Fault(@Nonnull QName faultCode, @Nonnull String faultString, @Nullable String faultActor, @Nullable List<XMLObject> detailChildren, @Nullable 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 © 2016 JBoss by Red Hat. All rights reserved.