Class InboundHttpListener
java.lang.Object
org.wso2.carbon.inbound.endpoint.protocol.http.InboundHttpListener
- All Implemented Interfaces:
org.apache.synapse.inbound.InboundRequestProcessor
- Direct Known Subclasses:
InboundHttpsListener
public class InboundHttpListener
extends Object
implements org.apache.synapse.inbound.InboundRequestProcessor
Listener class for HttpInboundEndpoint which is trigger by inbound core and
responsible for start ListeningEndpoint related to given port
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInboundHttpListener(org.apache.synapse.inbound.InboundProcessorParams params) -
Method Summary
Modifier and TypeMethodDescriptionbooleanactivate()booleanprotected voidvoiddestroy()protected voidhandleException(String msg, Exception e) voidinit()booleanprotected booleanisPortUsedByAnotherApplication(int port) voidpause()
-
Field Details
-
startInPausedMode
protected boolean startInPausedMode
-
-
Constructor Details
-
InboundHttpListener
public InboundHttpListener(org.apache.synapse.inbound.InboundProcessorParams params)
-
-
Method Details
-
init
public void init()- Specified by:
initin interfaceorg.apache.synapse.inbound.InboundRequestProcessor
-
destroy
public void destroy()- Specified by:
destroyin interfaceorg.apache.synapse.inbound.InboundRequestProcessor
-
pause
public void pause()- Specified by:
pausein interfaceorg.apache.synapse.inbound.InboundRequestProcessor
-
handleException
-
isPortUsedByAnotherApplication
protected boolean isPortUsedByAnotherApplication(int port) -
destoryInbound
protected void destoryInbound() -
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
-