| com.sshtools.j2ssh.transport.AsyncService com.sshtools.j2ssh.connection.ConnectionProtocol
ConnectionProtocol | public class ConnectionProtocol extends AsyncService (Code) | | author: $author$ version: $Revision: 1.68 $ |
Method Summary | |
public void | addChannelFactory(String channelName, ChannelFactory cf) | public void | allowGlobalRequest(String requestName, GlobalRequestHandler handler) | protected void | closeChannel(Channel channel) | public boolean | containsChannelFactory(String channelName) | protected void | freeChannel(Channel channel) | protected int[] | getAsyncMessageFilter() | public boolean | isConnected() | protected void | onGlobalRequest(String requestName, boolean wantReply, byte[] requestData) | protected void | onMessageReceived(SshMessage msg) | protected void | onServiceAccept() | protected void | onServiceInit(int startMode) | protected void | onServiceRequest() | protected synchronized void | onStop() | public synchronized boolean | openChannel(Channel channel) | public synchronized boolean | openChannel(Channel channel, ChannelEventListener eventListener) | public void | removeChannelFactory(String channelName) | public synchronized void | sendChannelData(Channel channel, byte[] data) | public void | sendChannelEOF(Channel channel) | public synchronized void | sendChannelExtData(Channel channel, int extendedType, byte[] data) | protected void | sendChannelFailure(Channel channel) | protected void | sendChannelOpenConfirmation(Channel channel) | protected void | sendChannelOpenFailure(long remoteChannelId, long reasonCode, String additionalInfo, String languageTag) | public synchronized boolean | sendChannelRequest(Channel channel, String requestType, boolean wantReply, byte[] requestData) | public void | sendChannelRequestFailure(Channel channel) | public void | sendChannelRequestSuccess(Channel channel) | public void | sendChannelWindowAdjust(Channel channel, long bytesToAdd) | public synchronized byte[] | sendGlobalRequest(String requestName, boolean wantReply, byte[] requestData) | protected void | sendGlobalRequestFailure() | protected void | sendGlobalRequestSuccess(byte[] requestData) |
ConnectionProtocol | public ConnectionProtocol()(Code) | | Creates a new ConnectionProtocol object.
|
containsChannelFactory | public boolean containsChannelFactory(String channelName)(Code) | | Parameters: channelName - |
freeChannel | protected void freeChannel(Channel channel)(Code) | | Parameters: channel - |
getAsyncMessageFilter | protected int[] getAsyncMessageFilter()(Code) | | |
isConnected | public boolean isConnected()(Code) | | |
onGlobalRequest | protected void onGlobalRequest(String requestName, boolean wantReply, byte[] requestData) throws IOException(Code) | | Parameters: requestName - Parameters: wantReply - Parameters: requestData - throws: IOException - |
onServiceAccept | protected void onServiceAccept()(Code) | | |
onServiceRequest | protected void onServiceRequest()(Code) | | |
onStop | protected synchronized void onStop()(Code) | | |
removeChannelFactory | public void removeChannelFactory(String channelName)(Code) | | Parameters: channelName - |
sendChannelExtData | public synchronized void sendChannelExtData(Channel channel, int extendedType, byte[] data) throws IOException(Code) | | Parameters: channel - Parameters: extendedType - Parameters: data - throws: IOException - |
sendChannelOpenFailure | protected void sendChannelOpenFailure(long remoteChannelId, long reasonCode, String additionalInfo, String languageTag) throws IOException(Code) | | Parameters: remoteChannelId - Parameters: reasonCode - Parameters: additionalInfo - Parameters: languageTag - throws: IOException - |
sendChannelRequest | public synchronized boolean sendChannelRequest(Channel channel, String requestType, boolean wantReply, byte[] requestData) throws IOException(Code) | | Parameters: channel - Parameters: requestType - Parameters: wantReply - Parameters: requestData - throws: IOException - throws: SshException - |
sendChannelWindowAdjust | public void sendChannelWindowAdjust(Channel channel, long bytesToAdd) throws IOException(Code) | | Parameters: channel - Parameters: bytesToAdd - throws: IOException - |
sendGlobalRequest | public synchronized byte[] sendGlobalRequest(String requestName, boolean wantReply, byte[] requestData) throws IOException(Code) | | Parameters: requestName - Parameters: wantReply - Parameters: requestData - throws: IOException - throws: SshException - |
sendGlobalRequestSuccess | protected void sendGlobalRequestSuccess(byte[] requestData) throws IOException(Code) | | Parameters: requestData - throws: IOException - |
|
|