Class Resource

    • Constructor Detail

      • Resource

        public Resource()
    • Method Detail

      • getName

        public String getName()
      • getInSequenceKey

        public String getInSequenceKey()
      • setInSequenceKey

        public void setInSequenceKey​(String inSequenceKey)
      • getOutSequenceKey

        public String getOutSequenceKey()
      • setOutSequenceKey

        public void setOutSequenceKey​(String outSequenceKey)
      • setFaultSequence

        public void setFaultSequence​(SequenceMediator faultSequence)
      • getFaultSequenceKey

        public String getFaultSequenceKey()
      • setFaultSequenceKey

        public void setFaultSequenceKey​(String faultSequenceKey)
      • addMethod

        public boolean addMethod​(String method)
      • getMethods

        public String[] getMethods()
      • hasMatchingMethod

        public boolean hasMatchingMethod​(String method)
        Helper method to check whether API supports the incoming HTTP method.
        Parameters:
        method -
        Returns:
        true if support false otherwise.
      • setDispatcherHelper

        public void setDispatcherHelper​(DispatcherHelper dispatcherHelper)
      • getContentType

        public String getContentType()
      • setContentType

        public void setContentType​(String contentType)
      • getUserAgent

        public String getUserAgent()
      • setUserAgent

        public void setUserAgent​(String userAgent)
      • getProtocol

        public int getProtocol()
      • setProtocol

        public void setProtocol​(int protocol)
      • getBindsTo

        public Set<String> getBindsTo()
      • addAllBindsTo

        public void addAllBindsTo​(Set<String> inboundEndpointBindings)
      • registerFaultHandler

        public void registerFaultHandler​(MessageContext synCtx)
      • init

        public void init​(SynapseEnvironment se)
        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:
        se - 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
      • setComponentStatisticsId

        public void setComponentStatisticsId​(ArtifactHolder holder)
      • getResourceClassName

        public String getResourceClassName()
        Returns the name of the class of Resource.
        Returns:
        Resource class name.