Package com.sshtools.synergy.ssh
Interface GlobalRequestHandler<T extends SshContext>
public interface GlobalRequestHandler<T extends SshContext>
The SSH protocol allows for the sending of requests independently of
any communication channel. One of the main uses of this mechanism is to
request remote forwardings, however it can be used for any purpose.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbooleanprocessGlobalRequest(GlobalRequest request, ConnectionProtocol<T> connection, boolean wantsReply, com.sshtools.common.util.ByteArrayWriter response) Process a global request.String[]Returns an array of strings containing the supported global requests.
-
Method Details
-
processGlobalRequest
boolean processGlobalRequest(GlobalRequest request, ConnectionProtocol<T> connection, boolean wantsReply, com.sshtools.common.util.ByteArrayWriter response) throws GlobalRequestHandler.GlobalRequestHandlerException, IOException Process a global request.- Parameters:
request- GlobalRequestsessionid- byte[]- Returns:
- response if wantsReply is true. If no response is return but wantsReply is true, this is treated as an error.
- Throws:
GlobalRequestHandler.GlobalRequestHandlerException- if there is an error handling this requestIOException
-
supportedRequests
String[] supportedRequests()Returns an array of strings containing the supported global requests.- Returns:
- String[]
-