final class EndpointImpl.LocalConnectionContext extends java.lang.Object implements ConnectionHandlerContext
| Modifier and Type | Field and Description |
|---|---|
private Connection |
connection |
private ConnectionProviderContext |
connectionProviderContext |
| Constructor and Description |
|---|
LocalConnectionContext(ConnectionProviderContext connectionProviderContext,
Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection()
Get the connection corresponding to this connection handler context.
|
ConnectionProviderContext |
getConnectionProviderContext()
Get the connection provider context associated with this connection handler context.
|
EndpointImpl.RegisteredServiceImpl |
getRegisteredService(java.lang.String serviceType)
Get a registered service.
|
OpenListener |
getServiceOpenListener(java.lang.String serviceType)
Deprecated.
|
void |
remoteClosed()
Indicate that the remote side has terminated the connection, so the local side should be closed as well.
|
private final ConnectionProviderContext connectionProviderContext
private final Connection connection
LocalConnectionContext(ConnectionProviderContext connectionProviderContext, Connection connection)
public ConnectionProviderContext getConnectionProviderContext()
ConnectionHandlerContextgetConnectionProviderContext in interface ConnectionHandlerContext@Deprecated public OpenListener getServiceOpenListener(java.lang.String serviceType)
ConnectionHandlerContextgetServiceOpenListener in interface ConnectionHandlerContextserviceType - the service type stringpublic EndpointImpl.RegisteredServiceImpl getRegisteredService(java.lang.String serviceType)
ConnectionHandlerContextgetRegisteredService in interface ConnectionHandlerContextserviceType - the service type stringnull if no such service is currently registeredpublic Connection getConnection()
ConnectionHandlerContextgetConnection in interface ConnectionHandlerContextpublic void remoteClosed()
ConnectionHandlerContextremoteClosed in interface ConnectionHandlerContext