Class OAuthConfiguredHTTPEndpoint

    • Constructor Detail

      • OAuthConfiguredHTTPEndpoint

        public OAuthConfiguredHTTPEndpoint​(AuthHandler authHandler)
    • Method Detail

      • send

        public void send​(MessageContext synCtx)
        Description copied from interface: Endpoint
        Sends the message context according to an endpoint specific behavior.
        Specified by:
        send in interface Endpoint
        Overrides:
        send in class HTTPEndpoint
        Parameters:
        synCtx - MessageContext to be sent.
      • retryCallWithNewToken

        public MessageContext retryCallWithNewToken​(MessageContext synCtx)
        This method is called when we need to retry a call to the resource with a new token
        Parameters:
        synCtx - Original Synapse MessageContext that went through this endpoint
        Returns:
        MessageContext response obtained after a retry
      • processUrlTemplate

        protected void processUrlTemplate​(MessageContext synCtx)
                                   throws com.damnhandy.uri.template.VariableExpansionException
        Overrides:
        processUrlTemplate in class HTTPEndpoint
        Throws:
        com.damnhandy.uri.template.VariableExpansionException