JBoss Remoting 3 3.2.13.GA-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
 Connection getConnection()
          Get the connection corresponding to this connection handler context.
 ConnectionProviderContext getConnectionProviderContext()
          Get the connection provider context associated with this connection handler context.
 RegisteredService getRegisteredService(String serviceType)
          Get a registered service.
 OpenListener getServiceOpenListener(String serviceType)
          Deprecated. 
 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

getServiceOpenListener

@Deprecated
OpenListener getServiceOpenListener(String serviceType)
Deprecated. 

Get the open listener for a service. This method should return immediately.

Parameters:
serviceType - the service type string
Returns:
the open listener

getRegisteredService

RegisteredService getRegisteredService(String serviceType)
Get a registered service. This method will return immediately.

Parameters:
serviceType - the service type string
Returns:
the service information, or null if no such service is currently registered

remoteClosed

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


getConnection

Connection getConnection()
Get the connection corresponding to this connection handler context.

Returns:
the connection

JBoss Remoting 3 3.2.13.GA-redhat-1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.