org.apache.synapse.transport.passthru.api
Class PassThroughInboundEndpointHandler

java.lang.Object
  extended by org.apache.synapse.transport.passthru.api.PassThroughInboundEndpointHandler

public class PassThroughInboundEndpointHandler
extends Object

API class for access PassThrough Core Inbound Endpoint management classes


Constructor Summary
PassThroughInboundEndpointHandler()
           
 
Method Summary
static boolean closeEndpoint(int port)
          Close ListeningEndpoint running on the given port
static SourceConfiguration getPassThroughSourceConfiguration()
           
static boolean isEndpointRunning(int port)
          Check Whether inbound endpoint is running for a particular port
static boolean startEndpoint(InetSocketAddress inetSocketAddress, org.apache.http.nio.NHttpServerEventHandler nHttpServerEventHandler, String endpointName)
          Start Endpoint Listen and events related to Endpoint handle by given NHttpServerEventHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassThroughInboundEndpointHandler

public PassThroughInboundEndpointHandler()
Method Detail

startEndpoint

public static boolean startEndpoint(InetSocketAddress inetSocketAddress,
                                    org.apache.http.nio.NHttpServerEventHandler nHttpServerEventHandler,
                                    String endpointName)
Start Endpoint Listen and events related to Endpoint handle by given NHttpServerEventHandler

Parameters:
inetSocketAddress - Socket Address of the Endpoint need to be start by underlying IOReactor
nHttpServerEventHandler - Event Handler for handle events for Endpoint
endpointName - Name of the Endpoint
Returns:
Is Endpoint started successfully

closeEndpoint

public static boolean closeEndpoint(int port)
Close ListeningEndpoint running on the given port

Parameters:
port - Port of ListeningEndpoint to be closed
Returns:
IS successfully closed

getPassThroughSourceConfiguration

public static SourceConfiguration getPassThroughSourceConfiguration()
                                                             throws Exception
Returns:
Pass Through SourceConfiguration registered by shared IO Reactor of PTT Listener
Throws:
Exception

isEndpointRunning

public static boolean isEndpointRunning(int port)
Check Whether inbound endpoint is running for a particular port

Parameters:
port - port
Returns:
whether inbound endpoint is running


Copyright © 2005–2015 Apache Software Foundation. All rights reserved.