Class SamlOutboundInterceptor

java.lang.Object
com.webmethods.caf.wsclient.saml.SamlOutboundInterceptor
All Implemented Interfaces:
electric.soap.ISOAPInterceptor

public class SamlOutboundInterceptor extends Object implements 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 Details

    • SamlOutboundInterceptor

      public SamlOutboundInterceptor(IArtifactFactory factory)
      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, the ApplicationContext is used.
    • intercept

      public void intercept(electric.soap.SOAPMessage message, electric.util.Context messageContext)
      Implementation of ISOAPInterceptor. This method intercepts the outbound SOAP message to add the header element.
      Specified by:
      intercept in interface electric.soap.ISOAPInterceptor
      Parameters:
      message - the SOAPMessage object.
      messageContext - the context related to the SOAP message.