Package com.sshtools.server
Class ConnectionProtocolServer
java.lang.Object
com.sshtools.common.ssh.ExecutorOperationSupport<com.sshtools.synergy.ssh.SshContext>
com.sshtools.synergy.ssh.ConnectionProtocol<SshServerContext>
com.sshtools.server.ConnectionProtocolServer
- All Implemented Interfaces:
com.sshtools.synergy.ssh.Service
public class ConnectionProtocolServer
extends com.sshtools.synergy.ssh.ConnectionProtocol<SshServerContext>
-
Field Summary
Fields inherited from class com.sshtools.synergy.ssh.ConnectionProtocol
con, outstandingRequests, SERVICE_NAME, username
Fields inherited from class com.sshtools.common.ssh.ExecutorOperationSupport
CALLBACKS, EVENTS, MESSAGES_INCOMING, MESSAGES_OUTGOING
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionProtocolServer
(TransportProtocolServer transport, String username) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
createChannel
(String channeltype, com.sshtools.synergy.ssh.Connection<SshServerContext> con) getName()
protected boolean
isClient()
protected void
onStart()
protected void
onStop()
protected boolean
processTCPIPCancel
(com.sshtools.common.util.ByteArrayReader bar, com.sshtools.common.util.ByteArrayWriter msg) protected boolean
processTCPIPForward
(com.sshtools.common.util.ByteArrayReader bar, com.sshtools.common.util.ByteArrayWriter response) Methods inherited from class com.sshtools.synergy.ssh.ConnectionProtocol
addGlobalRequestHandler, disconnect, getActiveChannels, getConnection, getIdleLog, getIdleTimeoutSeconds, getLocalAddress, getLocalPort, getMaxChannels, getQueueSize, getRemoteAddress, getSessionIdentifier, getUsername, getUUID, idle, openChannel, processGlobalRequestFailure, processGlobalRequestSuccess, processMessage, sendChannelOpenConfirmation, sendChannelOpenFailure, sendGlobalRequest, start, stop
Methods inherited from class com.sshtools.common.ssh.ExecutorOperationSupport
addIncomingTask, addOutgoingTask, addTask, cleanupOperations
-
Constructor Details
-
ConnectionProtocolServer
-
-
Method Details
-
isClient
protected boolean isClient()- Specified by:
isClient
in classcom.sshtools.synergy.ssh.ConnectionProtocol<SshServerContext>
-
onStart
protected void onStart()- Specified by:
onStart
in classcom.sshtools.synergy.ssh.ConnectionProtocol<SshServerContext>
-
getContext
- Overrides:
getContext
in classcom.sshtools.synergy.ssh.ConnectionProtocol<SshServerContext>
-
getTransport
- Overrides:
getTransport
in classcom.sshtools.synergy.ssh.ConnectionProtocol<SshServerContext>
-
processTCPIPForward
protected boolean processTCPIPForward(com.sshtools.common.util.ByteArrayReader bar, com.sshtools.common.util.ByteArrayWriter response) throws IOException - Specified by:
processTCPIPForward
in classcom.sshtools.synergy.ssh.ConnectionProtocol<SshServerContext>
- Throws:
IOException
-
processTCPIPCancel
protected boolean processTCPIPCancel(com.sshtools.common.util.ByteArrayReader bar, com.sshtools.common.util.ByteArrayWriter msg) throws IOException - Specified by:
processTCPIPCancel
in classcom.sshtools.synergy.ssh.ConnectionProtocol<SshServerContext>
- Throws:
IOException
-
getName
-
createChannel
protected com.sshtools.synergy.ssh.ChannelNG<SshServerContext> createChannel(String channeltype, com.sshtools.synergy.ssh.Connection<SshServerContext> con) throws com.sshtools.common.ssh.UnsupportedChannelException, com.sshtools.common.permissions.PermissionDeniedException, com.sshtools.common.ssh.ChannelOpenException - Specified by:
createChannel
in classcom.sshtools.synergy.ssh.ConnectionProtocol<SshServerContext>
- Throws:
com.sshtools.common.ssh.UnsupportedChannelException
com.sshtools.common.permissions.PermissionDeniedException
com.sshtools.common.ssh.ChannelOpenException
-
onStop
protected void onStop()- Specified by:
onStop
in classcom.sshtools.synergy.ssh.ConnectionProtocol<SshServerContext>
-