Package net.schmizz.sshj
Interface Service
- All Superinterfaces:
ErrorNotifiable,SSHPacketHandler
- All Known Implementing Classes:
AbstractService,ConnectionImpl,TransportImpl.NullService,UserAuthImpl
Represents a service running on top of the SSH transport layer.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.schmizz.sshj.common.ErrorNotifiable
ErrorNotifiable.Util -
Method Summary
Modifier and TypeMethodDescriptiongetName()voidnotifyUnimplemented(long seqNum) Notifies this service that aSSH_MSG_UNIMPLEMENTEDwas received for packet with given sequence number.voidrequest()Request and install this service with the associated transport.Methods inherited from interface net.schmizz.sshj.common.ErrorNotifiable
notifyErrorMethods inherited from interface net.schmizz.sshj.common.SSHPacketHandler
handle
-
Method Details
-
getName
String getName()- Returns:
- the assigned name for this SSH service.
-
notifyUnimplemented
Notifies this service that aSSH_MSG_UNIMPLEMENTEDwas 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
-
request
Request and install this service with the associated transport. Implementations should aim to make this method idempotent by first checking theTransport.getService()currently active service}.- Throws:
TransportException- if there is an error sending the service request
-