public class ConnectionProtocolServer extends ConnectionProtocol<SshServerContext>
con, SERVICE_NAME, username
Constructor and Description |
---|
ConnectionProtocolServer(TransportProtocolServer transport,
String username) |
Modifier and Type | Method and Description |
---|---|
protected Channel<SshServerContext> |
createChannel(String channeltype,
Connection<SshServerContext> con) |
SshServerContext |
getContext()
Get the connections
ConfigurationContext . |
String |
getName()
The service name
|
TransportProtocolServer |
getTransport()
Get the underlying transport.
|
protected void |
onStart() |
protected boolean |
processTCPIPCancel(ByteArrayReader bar,
ByteArrayWriter msg) |
protected boolean |
processTCPIPForward(ByteArrayReader bar,
ByteArrayWriter response) |
addGlobalRequestHandler, addTask, disconnect, getActiveChannels, getConnection, getIdleTimeoutSeconds, getLocalAddress, getLocalPort, getMaxChannels, getQueueSize, getRemoteAddress, getSessionIdentifier, getUsername, getUUID, openChannel, processGlobalRequestFailure, processGlobalRequestSuccess, processMessage, sendChannelOpenConfirmation, sendChannelOpenFailure, sendGlobalRequest, start, stop
public ConnectionProtocolServer(TransportProtocolServer transport, String username)
protected void onStart()
onStart
in class ConnectionProtocol<SshServerContext>
public SshServerContext getContext()
ConnectionProtocol
ConfigurationContext
.getContext
in class ConnectionProtocol<SshServerContext>
public TransportProtocolServer getTransport()
ConnectionProtocol
getTransport
in class ConnectionProtocol<SshServerContext>
protected boolean processTCPIPForward(ByteArrayReader bar, ByteArrayWriter response) throws IOException
processTCPIPForward
in class ConnectionProtocol<SshServerContext>
IOException
protected boolean processTCPIPCancel(ByteArrayReader bar, ByteArrayWriter msg) throws IOException
processTCPIPCancel
in class ConnectionProtocol<SshServerContext>
IOException
public String getName()
Service
protected Channel<SshServerContext> createChannel(String channeltype, Connection<SshServerContext> con) throws UnsupportedChannelException, PermissionDeniedException
createChannel
in class ConnectionProtocol<SshServerContext>
UnsupportedChannelException
PermissionDeniedException
Copyright © 2016. All rights reserved.