com.sun.jmx.remote.socket
Interface SocketConnectionIf

All Known Implementing Classes:
SocketConnection

public interface SocketConnectionIf

This interface specifies methods to manipulate the socket and its input/output streams in a socket-based connection.


Method Summary
 Socket getSocket()
          Returns a reference to the underlying socket.
 void replaceStreams(InputStream is, OutputStream os)
          Replaces the current socket's input/output streams by the ones provided.
 void setSocket(Socket s)
          Replaces the underlying socket.
 void setSubject(Subject subject)
          Sets the subject authenticated through this socket connection.
 

Method Detail

getSocket

Socket getSocket()
Returns a reference to the underlying socket.


setSocket

void setSocket(Socket s)
               throws IOException
Replaces the underlying socket.

Throws:
IOException

replaceStreams

void replaceStreams(InputStream is,
                    OutputStream os)
                    throws IOException
Replaces the current socket's input/output streams by the ones provided.

Throws:
IOException

setSubject

void setSubject(Subject subject)
Sets the subject authenticated through this socket connection.



Copyright © 2014 Terracotta, Inc.. All rights reserved.