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 Summary
Fields Modifier and Type Field Description protected StringinjectingSequenceprotected Stringnameprotected StringonErrorSequencestatic StringPARAM_INBOUND_ENDPOINT_BEHAVIORstatic StringPARAM_INBOUND_ENDPOINT_BEHAVIOR_LISTENINGprotected org.apache.synapse.inbound.InboundProcessorParamsparamsprotected booleanstartInPausedMode
-
Constructor Summary
Constructors Constructor Description GenericInboundListener(org.apache.synapse.inbound.InboundProcessorParams inboundParams)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanactivate()booleandeactivate()static GenericInboundListenergetInstance(org.apache.synapse.inbound.InboundProcessorParams inboundParams)This is to get the GenericInboundListener instance for given paramsprotected static voidhandleException(String msg, Exception e)booleanisDeactivated()static booleanisListeningInboundEndpoint(org.apache.synapse.inbound.InboundProcessorParams inboundParameters)States whether generic endpoint is a listening Return true; if listening
-
-
-
Field Detail
-
PARAM_INBOUND_ENDPOINT_BEHAVIOR
public static final String PARAM_INBOUND_ENDPOINT_BEHAVIOR
- See Also:
- Constant Field Values
-
PARAM_INBOUND_ENDPOINT_BEHAVIOR_LISTENING
public static final String PARAM_INBOUND_ENDPOINT_BEHAVIOR_LISTENING
- See Also:
- Constant Field Values
-
injectingSequence
protected String injectingSequence
-
onErrorSequence
protected String onErrorSequence
-
name
protected String name
-
params
protected org.apache.synapse.inbound.InboundProcessorParams params
-
startInPausedMode
protected boolean startInPausedMode
-
-
Method Detail
-
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
-
activate
public boolean activate()
- Specified by:
activatein interfaceorg.apache.synapse.inbound.InboundRequestProcessor
-
deactivate
public boolean deactivate()
- Specified by:
deactivatein interfaceorg.apache.synapse.inbound.InboundRequestProcessor
-
isDeactivated
public boolean isDeactivated()
- Specified by:
isDeactivatedin interfaceorg.apache.synapse.inbound.InboundRequestProcessor
-
-