|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.sshd.Subsystem
public abstract class Subsystem
Defines the abstract attributes of an SSH Subsystem.
| Field Summary | |
|---|---|
protected SshContext |
context
|
protected SessionChannel |
session
|
| Constructor Summary | |
|---|---|
Subsystem(java.lang.String name)
|
|
| Method Summary | |
|---|---|
protected void |
init(SessionChannel session,
SshContext context)
Initialize the subsystem with the current session and configuration. |
protected abstract void |
onMessageReceived(byte[] msg)
Called when a subsystem message has been extracted from the incoming data stream. |
protected abstract void |
onSubsystemFree()
The subsystem has been closed and all resources should be freed. |
protected void |
processMessage(byte[] data)
Process channel data and transform into a subsystem message when enough data has arrived. |
protected void |
sendMessage(Packet packet)
Send a subsystem message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SessionChannel session
protected SshContext context
| Constructor Detail |
|---|
public Subsystem(java.lang.String name)
| Method Detail |
|---|
protected void init(SessionChannel session,
SshContext context)
throws java.io.IOException
session - context -
java.io.IOException
protected void processMessage(byte[] data)
throws java.io.IOException
data -
java.io.IOExceptionprotected abstract void onSubsystemFree()
protected abstract void onMessageReceived(byte[] msg)
throws java.io.IOException
msg -
java.io.IOExceptionprotected void sendMessage(Packet packet)
msg -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||