Class GenericInboundListener

java.lang.Object
org.wso2.carbon.inbound.endpoint.protocol.generic.GenericInboundListener
All Implemented Interfaces:
org.apache.synapse.inbound.InboundRequestProcessor

public abstract class GenericInboundListener extends Object implements org.apache.synapse.inbound.InboundRequestProcessor
  • Field Details

    • PARAM_INBOUND_ENDPOINT_BEHAVIOR

      public static final String PARAM_INBOUND_ENDPOINT_BEHAVIOR
      See Also:
    • PARAM_INBOUND_ENDPOINT_BEHAVIOR_LISTENING

      public static final String PARAM_INBOUND_ENDPOINT_BEHAVIOR_LISTENING
      See Also:
    • injectingSequence

      protected String injectingSequence
    • onErrorSequence

      protected String onErrorSequence
    • name

      protected String name
    • params

      protected org.apache.synapse.inbound.InboundProcessorParams params
    • startInPausedMode

      protected boolean startInPausedMode
  • Constructor Details

    • GenericInboundListener

      public GenericInboundListener(org.apache.synapse.inbound.InboundProcessorParams inboundParams)
  • Method Details

    • getInstance

      public static GenericInboundListener getInstance(org.apache.synapse.inbound.InboundProcessorParams inboundParams)
      This is to get the GenericInboundListener instance for given params
      Parameters:
      inboundParams -
      Returns:
    • isListeningInboundEndpoint

      public static boolean isListeningInboundEndpoint(org.apache.synapse.inbound.InboundProcessorParams inboundParameters)
      States whether generic endpoint is a listening Return true; if listening
      Parameters:
      inboundParameters - Inbound Parameters for endpoint
      Returns:
      boolean
    • handleException

      protected static void handleException(String msg, Exception e)
    • activate

      public boolean activate()
      Specified by:
      activate in interface org.apache.synapse.inbound.InboundRequestProcessor
    • deactivate

      public boolean deactivate()
      Specified by:
      deactivate in interface org.apache.synapse.inbound.InboundRequestProcessor
    • isDeactivated

      public boolean isDeactivated()
      Specified by:
      isDeactivated in interface org.apache.synapse.inbound.InboundRequestProcessor