Package com.webmethods.caf.wsclient.saml
Class SamlOutboundInterceptor
java.lang.Object
com.webmethods.caf.wsclient.saml.SamlOutboundInterceptor
- All Implemented Interfaces:
electric.soap.ISOAPInterceptor
Implementation of a generic client side request interceptor
ISOAPInterceptor
to
add a Element
containing a single SAML artifact attribute
to the outbound SOAP message header.-
Constructor Summary
ConstructorsConstructorDescriptionSamlOutboundInterceptor
(IArtifactFactory factory) Construct a new interceptor, specifying the IArtifactFactory instance used to generate SAML artifacts -
Method Summary
Modifier and TypeMethodDescriptionvoid
attachToContext
(electric.util.Context context) Register the request interceptor with the context.void
intercept
(electric.soap.SOAPMessage message, electric.util.Context messageContext) Implementation ofISOAPInterceptor
.
-
Constructor Details
-
SamlOutboundInterceptor
Construct a new interceptor, specifying the IArtifactFactory instance used to generate SAML artifacts- Parameters:
factory
-
-
-
Method Details
-
attachToContext
public void attachToContext(electric.util.Context context) Register the request interceptor with the context.- Parameters:
context
-electic.glue.ProxyContext
object. Could be null. If null, theApplicationContext
is used.
-
intercept
public void intercept(electric.soap.SOAPMessage message, electric.util.Context messageContext) Implementation ofISOAPInterceptor
. This method intercepts the outbound SOAP message to add the header element.- Specified by:
intercept
in interfaceelectric.soap.ISOAPInterceptor
- Parameters:
message
- theSOAPMessage
object.messageContext
- the context related to the SOAP message.
-