|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.mindbright.ssh2.SSH2ConnectionEventAdapter
This class is an adapter for the interface
SSH2ConnectionEventHandler.
SSH2ConnectionEventHandler| Constructor Summary | |
SSH2ConnectionEventAdapter()
|
|
| Method Summary | |
void |
channelAdded(SSH2Connection connection,
SSH2Channel channel)
Called when a new channel is added (i.e. |
void |
channelClosed(SSH2Connection connection,
SSH2Channel channel)
Called when a channel is closed (i.e. |
void |
channelConnect(java.lang.Object originator,
SSH2Channel channel,
java.net.Socket fwdSocket)
Called when a channel is connected to a Socket. |
void |
channelDeleted(SSH2Connection connection,
SSH2Channel channel)
Called when a channel is deleted (i.e. |
boolean |
listenerAccept(SSH2Listener listener,
java.net.Socket fwdSocket)
Called when a listener accepts a new connection (i.e. |
void |
localChannelOpenFailure(SSH2Connection connection,
SSH2Channel channel,
int reasonCode,
java.lang.String reasonText,
java.lang.String languageTag)
Called on either side when a locally originating channel gets a channel open failure indication from peer. |
void |
localDirectConnect(SSH2Connection connection,
SSH2Listener listener,
SSH2Channel channel)
Called on the client side when a local forward channel is confirmed to be open. |
void |
localForwardedConnect(SSH2Connection connection,
SSH2Listener listener,
SSH2Channel channel)
Called on the server side when a remote forward channel is confirmed to be open. |
void |
localSessionConnect(SSH2Connection connection,
SSH2Channel channel)
Called on the client side when a session channel is confirmed to be open. |
void |
localX11Connect(SSH2Connection connection,
SSH2Listener listener,
SSH2Channel channel)
Called on the server side when an X11 channel is confirmed to be open. |
void |
remoteChannelOpenFailure(SSH2Connection connection,
java.lang.String channelType,
java.lang.String targetAddr,
int targetPort,
java.lang.String originAddr,
int originPort,
SSH2Exception cause)
Called on either side when there is a problem opening a remotely originating channel resulting in a channel open failure indication beeing sent back to peer. |
void |
remoteDirectConnect(SSH2Connection connection,
SSH2Channel channel)
|
void |
remoteForwardedConnect(SSH2Connection connection,
java.lang.String remoteAddr,
int remotePort,
SSH2Channel channel)
Called on the client side when a remote forward channel has been confirmed to be open. |
void |
remoteSessionConnect(SSH2Connection connection,
java.lang.String remoteAddr,
int remotePort,
SSH2Channel channel)
|
void |
remoteX11Connect(SSH2Connection connection,
SSH2Channel channel)
|
void |
setSocketOptions(int channelType,
java.net.Socket s)
Called to set socket options on newly connected port forward channels |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SSH2ConnectionEventAdapter()
| Method Detail |
public void channelAdded(SSH2Connection connection,
SSH2Channel channel)
SSH2ConnectionEventHandler
channelAdded in interface SSH2ConnectionEventHandlerconnection - the connection layer responsiblechannel - the channel which was added
public void channelDeleted(SSH2Connection connection,
SSH2Channel channel)
SSH2ConnectionEventHandler
channelDeleted in interface SSH2ConnectionEventHandlerconnection - the connection layer responsiblechannel - the channel which was deleted
public void channelConnect(java.lang.Object originator,
SSH2Channel channel,
java.net.Socket fwdSocket)
SSH2ConnectionEventHandlerSocket.
channelConnect in interface SSH2ConnectionEventHandleroriginator - the responsible listener/connectorchannel - the created channelfwdSocket - the socket which is connected to
public void channelClosed(SSH2Connection connection,
SSH2Channel channel)
SSH2ConnectionEventHandler
channelClosed in interface SSH2ConnectionEventHandlerconnection - the connection layer responsiblechannel - the channel which was deleted
public boolean listenerAccept(SSH2Listener listener,
java.net.Socket fwdSocket)
SSH2ConnectionEventHandlertrue or false.
listenerAccept in interface SSH2ConnectionEventHandlerlistener - the responsible listenerfwdSocket - the socket which resulted
boolean indicating wether to process connection or
not.
public void localForwardedConnect(SSH2Connection connection,
SSH2Listener listener,
SSH2Channel channel)
SSH2ConnectionEventHandler
localForwardedConnect in interface SSH2ConnectionEventHandlerconnection - the connection layer responsiblelistener - the responsible listenerchannel - the channel which was opened
public void localDirectConnect(SSH2Connection connection,
SSH2Listener listener,
SSH2Channel channel)
SSH2ConnectionEventHandler
localDirectConnect in interface SSH2ConnectionEventHandlerconnection - the connection layer responsiblelistener - the responsible listenerchannel - the channel which was opened
public void localSessionConnect(SSH2Connection connection,
SSH2Channel channel)
SSH2ConnectionEventHandler
localSessionConnect in interface SSH2ConnectionEventHandlerconnection - the connection layer responsiblechannel - the channel which was opened
public void localX11Connect(SSH2Connection connection,
SSH2Listener listener,
SSH2Channel channel)
SSH2ConnectionEventHandler
localX11Connect in interface SSH2ConnectionEventHandlerconnection - the connection layer responsiblelistener - the responsible listenerchannel - the channel which was opened
public void localChannelOpenFailure(SSH2Connection connection,
SSH2Channel channel,
int reasonCode,
java.lang.String reasonText,
java.lang.String languageTag)
SSH2ConnectionEventHandlerSSH2 for
reason codes.
localChannelOpenFailure in interface SSH2ConnectionEventHandlerconnection - the connection layer responsiblechannel - the channel which was openedreasonCode - the reason codereasonText - languageTag - SSH2
public void remoteForwardedConnect(SSH2Connection connection,
java.lang.String remoteAddr,
int remotePort,
SSH2Channel channel)
SSH2ConnectionEventHandler
remoteForwardedConnect in interface SSH2ConnectionEventHandlerconnection - the connection layer responsibleremoteAddr - remotePort - channel - the channel which was opened
public void remoteDirectConnect(SSH2Connection connection,
SSH2Channel channel)
remoteDirectConnect in interface SSH2ConnectionEventHandler
public void remoteSessionConnect(SSH2Connection connection,
java.lang.String remoteAddr,
int remotePort,
SSH2Channel channel)
remoteSessionConnect in interface SSH2ConnectionEventHandler
public void remoteX11Connect(SSH2Connection connection,
SSH2Channel channel)
remoteX11Connect in interface SSH2ConnectionEventHandler
public void remoteChannelOpenFailure(SSH2Connection connection,
java.lang.String channelType,
java.lang.String targetAddr,
int targetPort,
java.lang.String originAddr,
int originPort,
SSH2Exception cause)
SSH2ConnectionEventHandler
remoteChannelOpenFailure in interface SSH2ConnectionEventHandlerconnection - the connection layer responsiblechannelType - the type of channeltargetAddr - the address which should have been connected totargetPort - the port which should have been connected tooriginAddr - the address where the channel originated (depends on type)originPort - the port where the channel originated (depends on type)cause - the exception which was the cause of the problem
public void setSocketOptions(int channelType,
java.net.Socket s)
SSH2ConnectionEventHandler
setSocketOptions in interface SSH2ConnectionEventHandlerchannelType - the type of the channels - socket to manipulate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||