| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
void |
addGlobalRequestHandler(GlobalRequestHandler handler) |
void |
disconnect()
Disconnect the current connection.
|
protected void |
doProcessMessage(byte[] msg) |
List<Channel> |
getActiveChannels() |
SshContext |
getContext()
Get the connections
ConfigurationContext. |
int |
getIdleTimeoutSeconds()
How long does the service allow idle for?
|
SocketAddress |
getLocalAddress()
Get the local address to which the remote socket is connected.
|
int |
getLocalPort()
Get the local port ro which the remote socket is connected.
|
int |
getMaxChannels() |
int |
getQueueSize() |
SocketAddress |
getRemoteAddress()
Get the address of the remote client.
|
static RemoteForwardingManager |
getRemoteForwardingManager() |
String |
getSessionIdentifier() |
TransportProtocol |
getTransport()
Get the underlying transport.
|
String |
getUsername()
Get the username for the connected user.
|
String |
getUUID() |
void |
idle()
Transport level idle
|
void |
init(TransportProtocol transport)
Initialize the service.
|
boolean |
openChannel(Channel channel) |
boolean |
processMessage(byte[] msg)
Process a transport message.
|
void |
sendChannelOpenConfirmation(Channel channel,
byte[] responsedata) |
void |
sendChannelOpenFailure(Channel channel,
int reason,
String desc) |
void |
sendGlobalRequest(GlobalRequest request) |
void |
start()
Start the service.
|
void |
stop()
Stop the service
|
public static final String SERVICE_NAME
public void init(TransportProtocol transport) throws IOException
Serviceinit in interface ServiceIOExceptionpublic void addGlobalRequestHandler(GlobalRequestHandler handler)
public void idle()
Servicepublic static RemoteForwardingManager getRemoteForwardingManager()
public SocketAddress getRemoteAddress()
public SocketAddress getLocalAddress()
public int getLocalPort()
public String getUsername()
public void stop()
Servicepublic String getSessionIdentifier()
public boolean openChannel(Channel channel)
public int getMaxChannels()
public void disconnect()
public boolean processMessage(byte[] msg)
throws IOException
ServiceTransportProtocol that is not a transport level message the
message is passed onto the active service using this method. The service
processes the message and returns a value to indicate whether the message
was used.processMessage in interface ServiceIOExceptionprotected void doProcessMessage(byte[] msg)
throws IOException
IOExceptionpublic void sendGlobalRequest(GlobalRequest request)
public int getQueueSize()
public void sendChannelOpenConfirmation(Channel channel, byte[] responsedata)
public SshContext getContext()
ConfigurationContext.public TransportProtocol getTransport()
public void start()
Servicepublic String getUUID()
public int getIdleTimeoutSeconds()
ServicegetIdleTimeoutSeconds in interface ServiceCopyright © 2025. All rights reserved.