Class CalloutMediator

    • Constructor Detail

      • CalloutMediator

        public CalloutMediator()
    • Method Detail

      • mediate

        public boolean mediate​(MessageContext synCtx)
        Description copied from interface: Mediator
        Invokes the mediator passing the current message for mediation. Each mediator performs its mediation action, and returns true if mediation should continue, or false if further mediation should be aborted.
        Specified by:
        mediate in interface Mediator
        Parameters:
        synCtx - the current message for mediation
        Returns:
        true if further mediation should continue
      • init

        public void init​(SynapseEnvironment synEnv)
        Description copied from interface: ManagedLifecycle
        This method should implement the initialization of the implemented parts of the configuration.
        Specified by:
        init in interface ManagedLifecycle
        Parameters:
        synEnv - SynapseEnvironment to be used for initialization
      • destroy

        public void destroy()
        Description copied from interface: ManagedLifecycle
        This method should implement the destroying of the implemented parts of the configuration.
        Specified by:
        destroy in interface ManagedLifecycle
      • getServiceURL

        public String getServiceURL()
      • setServiceURL

        public void setServiceURL​(String serviceURL)
      • getAction

        public String getAction()
      • setAction

        public void setAction​(String action)
      • getUseServerConfig

        public String getUseServerConfig()
      • setUseServerConfig

        public void setUseServerConfig​(String useServerConfig)
      • getRequestKey

        public String getRequestKey()
      • setRequestKey

        public void setRequestKey​(String requestKey)
      • setRequestXPath

        public void setRequestXPath​(SynapseXPath requestXPath)
                             throws org.jaxen.JaxenException
        Throws:
        org.jaxen.JaxenException
      • setTargetXPath

        public void setTargetXPath​(SynapseXPath targetXPath)
                            throws org.jaxen.JaxenException
        Throws:
        org.jaxen.JaxenException
      • getTargetKey

        public String getTargetKey()
      • setTargetKey

        public void setTargetKey​(String targetKey)
      • getClientRepository

        public String getClientRepository()
      • setClientRepository

        public void setClientRepository​(String clientRepository)
      • getAxis2xml

        public String getAxis2xml()
      • setAxis2xml

        public void setAxis2xml​(String axis2xml)
      • setEndpointKey

        public void setEndpointKey​(String key)
      • getEndpointKey

        public String getEndpointKey()
      • getInitClientOptions

        public boolean getInitClientOptions()
      • setInitClientOptions

        public void setInitClientOptions​(boolean initClientOptions)
      • isUseEnvelopeAsSource

        public boolean isUseEnvelopeAsSource()
      • setUseEnvelopeAsSource

        public void setUseEnvelopeAsSource​(boolean useEnvelopeAsSource)
      • isSecurityOn

        public boolean isSecurityOn()
        Is WS-Security turned on on this endpoint?
        Returns:
        true if on
      • setSecurityOn

        public void setSecurityOn​(boolean securityOn)
        Request that WS-Sec be turned on/off on this endpoint
        Parameters:
        securityOn - a boolean flag indicating security is on or not
      • getWsSecPolicyKey

        public String getWsSecPolicyKey()
        Return the Rampart Security configuration policys' 'key' to be used (See Rampart)
        Returns:
        the Rampart Security configuration policys' 'key' to be used (See Rampart)
      • setWsSecPolicyKey

        public void setWsSecPolicyKey​(String wsSecPolicyKey)
        Set the Rampart Security configuration policys' 'key' to be used (See Rampart)
        Parameters:
        wsSecPolicyKey - the Rampart Security configuration policys' 'key' to be used
      • getOutboundWsSecPolicyKey

        public String getOutboundWsSecPolicyKey()
        Get the outbound security policy key. This is used when we specify different policies for inbound and outbound.
        Returns:
        outbound security policy key
      • setOutboundWsSecPolicyKey

        public void setOutboundWsSecPolicyKey​(String outboundWsSecPolicyKey)
        Set the outbound security policy key.This is used when we specify different policies for inbound and outbound.
        Parameters:
        outboundWsSecPolicyKey - outbound security policy key.
      • getInboundWsSecPolicyKey

        public String getInboundWsSecPolicyKey()
        Get the inbound security policy key. This is used when we specify different policies for inbound and outbound.
        Returns:
        inbound security policy key
      • setInboundWsSecPolicyKey

        public void setInboundWsSecPolicyKey​(String inboundWsSecPolicyKey)
        Set the inbound security policy key. This is used when we specify different policies for inbound and outbound.
        Parameters:
        inboundWsSecPolicyKey - inbound security policy key.
      • getEndpoint

        public Endpoint getEndpoint()
        Get the defined endpoint
        Returns:
        endpoint
      • setEndpoint

        public void setEndpoint​(Endpoint endpoint)
        Set the defined endpoint
        Parameters:
        endpoint - defined endpoint