public interface

Service

implements ErrorNotifiable SSHPacketHandler
net.schmizz.sshj.Service
Known Indirect Subclasses

Class Overview

Represents a service running on top of the SSH transport layer.

Summary

Public Methods
abstract String getName()
abstract void notifyUnimplemented(long seqNum)
Notifies this service that a SSH_MSG_UNIMPLEMENTED was received for packet with given sequence number.
abstract void request()
Request and install this service with the associated transport.
[Expand]
Inherited Methods
From interface net.schmizz.sshj.common.ErrorNotifiable
From interface net.schmizz.sshj.common.SSHPacketHandler

Public Methods

public abstract String getName ()

Returns
  • the assigned name for this SSH service.

public abstract void notifyUnimplemented (long seqNum)

Notifies this service that a SSH_MSG_UNIMPLEMENTED was received for packet with given sequence number. Meant to be invoked as a callback by the transport layer.

Parameters
seqNum Sequence number of the packet which the server claims is unimplemented
Throws
SSHException if the packet is unexpected and may represent a disruption

public abstract void request ()

Request and install this service with the associated transport. Implementations should aim to make this method idempotent by first checking the getService() currently active service}.

Throws
TransportException if there is an error sending the service request