com.maverick.sshd
Interface Service

All Known Implementing Classes:
AuthenticationProtocol, ConnectionProtocol

public interface Service

A service is a protocol that operates on top of the TransportProtocol. There is only one active service at anyone time and the current SSH protocol defines the AuthenticationProtocol and the ConnectionProtocol.

Author:
Lee David Painter

Method Summary
 void idle(org.apache.mina.core.session.IdleStatus status)
          Called when the transport layer has been idle for 10 seconds
 void init(org.apache.mina.core.session.IoSession session, SshTransport transport)
          Initialize the service.
 boolean processMessage(byte[] msg)
          Process a transport message.
 void start()
          Start the service.
 void stop()
          Stop the service
 

Method Detail

init

void init(org.apache.mina.core.session.IoSession session,
          SshTransport transport)
          throws IOException
Initialize the service.

Parameters:
transport -
Throws:
IOException

processMessage

boolean processMessage(byte[] msg)
                       throws IOException
Process a transport message. When a message is received by the TransportProtocol 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.

Parameters:
msg -
Returns:
true if the message was processed, otherwise false
Throws:
IOException

idle

void idle(org.apache.mina.core.session.IdleStatus status)
Called when the transport layer has been idle for 10 seconds

Parameters:
status -

start

void start()
Start the service.


stop

void stop()
Stop the service



Copyright © 2012. All Rights Reserved.