|
|||||||||
| 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(String name)
|
|
| Method Summary | |
|---|---|
String |
getName()
|
void |
init(SessionChannel session)
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(com.maverick.ssh.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(String name)
| Method Detail |
|---|
public String getName()
getName in interface com.maverick.ssh.components.SshComponent
public void init(SessionChannel session)
throws IOException,
PermissionDeniedException
session - context -
IOException
PermissionDeniedException
protected void processMessage(byte[] data)
throws IOException
data -
IOExceptionprotected abstract void onSubsystemFree()
protected abstract void onMessageReceived(byte[] msg)
throws IOException
msg -
IOExceptionprotected void sendMessage(com.maverick.ssh.Packet packet)
msg -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||