net.officefloor.plugin.socket.server
Interface Connection

All Known Subinterfaces:
SslConnection
All Known Implementing Classes:
ConnectionImpl, SslConnectionImpl

public interface Connection

SocketChannel connection.

Author:
Daniel Sagenschneider

Method Summary
 InputBufferStream getInputBufferStream()
          Obtains the InputBufferStream to obtain data from the client.
 InetSocketAddress getLocalAddress()
          Obtains the local address for the Connection.
 Object getLock()
          Obtains the lock to synchronize for using this Connection.
 OutputBufferStream getOutputBufferStream()
          Obtains the OutputBufferStream to write data to the client.
 InetSocketAddress getRemoteAddress()
          Obtains the remote address for the Connection.
 boolean isSecure()
          Indicates if the connection is over a secure channel (e.g.
 

Method Detail

getLock

Object getLock()
Obtains the lock to synchronize for using this Connection.

Returns:
Lock for this Connection.

isSecure

boolean isSecure()
Indicates if the connection is over a secure channel (e.g. utilising SSL).

Returns:
true if connection is over a secure channel.

getLocalAddress

InetSocketAddress getLocalAddress()
Obtains the local address for the Connection.

Returns:
InetSocketAddress describing the local Socket for the Connection.

getRemoteAddress

InetSocketAddress getRemoteAddress()
Obtains the remote address for the Connection.

Returns:
InetSocketAddress describing the remote Socket for the Connection.

getInputBufferStream

InputBufferStream getInputBufferStream()
Obtains the InputBufferStream to obtain data from the client.

Returns:
InputBufferStream.

getOutputBufferStream

OutputBufferStream getOutputBufferStream()
Obtains the OutputBufferStream to write data to the client.

Returns:
OutputBufferStream.


Copyright © 2005-2011. All Rights Reserved.