org.activeio
Interface ChannelServer
- All Superinterfaces:
- Channel, Disposable, Service
- All Known Subinterfaces:
- AsynchChannelServer, SynchChannelServer
- All Known Implementing Classes:
- AIOSynchChannelServer, AsynchToSynchChannelServerAdapter, FilterAsynchChannelServer, FilterSynchChannelServer, SocketSynchChannelServer, SynchToAsynchChannelServerAdapter, VMPipeAsynchChannelServer
- public interface ChannelServer
- extends Channel
A ChannelServer is used to accept incoming requests to establish new Channel sessions.
Like a normal org.activeio.channel.Channel
, A ChannelServer comes in two falvors, either:
AsynchChannelServer
or
SynchChannelServer
.
- Version:
- $Revision$
Method Summary |
java.net.URI |
getBindURI()
The URI that was used when the channel was bound. |
java.net.URI |
getConnectURI()
Once bound, the channel may be able to construct a URI that is more sutible for when
a client needs to connect to the server. |
getBindURI
public java.net.URI getBindURI()
- The URI that was used when the channel was bound. This could be different
than what is used by a client to connect to the ChannelServer. For example,
the bind URI might be tcp://localhost:0 which means the channel should bind to
an anonymous port.
- Returns:
- The URI that was used when the channel was bound
getConnectURI
public java.net.URI getConnectURI()
- Once bound, the channel may be able to construct a URI that is more sutible for when
a client needs to connect to the server. For examle the port of the URI may be
updated to reflect the actual local port that the channel server is listening on.
- Returns:
- a URI that a client can use to connect to the server or null if the channel cannot construct the URI.
Copyright © -2005 The ActiveIO Project. All Rights Reserved.