|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NetworkChannel
Interface for all transport channel classes. Implementations of this
interface are typically returned by services that offer the
TransportChannelFactory
service.
Method Summary | |
---|---|
void |
bind(ChannelEndpoint endpoint)
bind the network channel to a channel endpoint. |
void |
close()
close the network channel. |
URI |
getLocalAddress()
get the URI of the local address. |
java.lang.String |
getProtocol()
get the protocol that this channel uses on the transport layer. |
URI |
getRemoteAddress()
get the URI of the remote address. |
void |
sendMessage(RemoteOSGiMessage message)
send a message through the channel. |
Method Detail |
---|
java.lang.String getProtocol()
String
. Should be in
lowercase.URI getRemoteAddress()
URI getLocalAddress()
void bind(ChannelEndpoint endpoint)
endpoint
- the channel endpoint.void close() throws java.io.IOException
java.io.IOException
- if something goes wrong.void sendMessage(RemoteOSGiMessage message) throws java.io.IOException
message
- the message to be sent.
java.io.IOException
- if the transport fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |