JBoss Remoting 3 3.2.0.Beta2-redhat-1

org.jboss.remoting3.spi
Interface ConnectionHandlerContext


public interface ConnectionHandlerContext

The context for connection handlers. Used to inform the endpoint of incoming events on an established connection.


Method Summary
 ConnectionProviderContext getConnectionProviderContext()
          Get the connection provider context associated with this connection handler context.
 void openService(Channel newChannel, String serviceType)
          Open a service.
 void remoteClosed()
          Indicate that the remote side has terminated the connection, so the local side should be closed as well.
 

Method Detail

getConnectionProviderContext

ConnectionProviderContext getConnectionProviderContext()
Get the connection provider context associated with this connection handler context.

Returns:
the connection provider context

openService

void openService(Channel newChannel,
                 String serviceType)
                 throws ServiceNotFoundException
Open a service. This method should return immediately.

Parameters:
newChannel - the new incoming channel
serviceType - the service type string
Throws:
ServiceNotFoundException - if the service is not found

remoteClosed

void remoteClosed()
Indicate that the remote side has terminated the connection, so the local side should be closed as well.


JBoss Remoting 3 3.2.0.Beta2-redhat-1

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.