exit-XXX"
requests. Once such a request has been successfully processed, an EventNotifier can be invoked indicating the
processed event.
| Modifier and Type | Field and Description |
|---|---|
| protected final AtomicReference | |
| protected final EventNotifier |
| Access | Constructor and Description |
|---|---|
| protected | AbstractChannelExitRequestHandler(AtomicReference<V>
An holder, EventNotifier<? super String> AtomicReference that will hold the extracted request dataAn notifier)EventNotifier to be invoked when request is successfully processed and the holder has
been updated with the processed request data
|
| Modifier and Type | Method and Description |
|---|---|
| protected String | |
| protected void | notifyStateChanged(Channel
The channel, String Channel through which the request was receivedThe processed request request, V The processed value value)Notifies that some change has been made to the data in the holder. |
| public RequestHandler. | process(Channel
The input parameter channel, String The request string request, boolean Whether a reply is requested wantReply, Buffer The buffer)Buffer with request specific dataImplements org. Process an SSH request. |
| protected abstract V | Returns: The extracted data - ifnull then request is ignored and Unsupported is
returnedThe channel, String Channel through which the request was receivedThe received request - Note: guaranteed to match the handler's name if invoked from
request, Buffer process(Channel, String, boolean, Buffer)The received buffer)Buffer for extracting the dataInvoked by default from |
| holder | back to summary |
|---|---|
| protected final AtomicReference<V> holder | |
| notifier | back to summary |
|---|---|
| protected final EventNotifier<? super String> notifier | |
| AbstractChannelExitRequestHandler | back to summary |
|---|---|
protected AbstractChannelExitRequestHandler(AtomicReference<V> holder, EventNotifier<? super String> notifier)
| |
| getEvent | back to summary |
|---|---|
| protected String getEvent(Channel channel, String request, V value) | |
| notifyStateChanged | back to summary |
|---|---|
| protected void notifyStateChanged(Channel channel, String request, V value) Notifies that some change has been made to the data in the holder. The reported event is obtained via the
| |
| process | back to summary |
|---|---|
| public RequestHandler. Implements org. Doc from org. Process an SSH request. If an exception is thrown, the ConnectionService will send a failure message if needed and the request will be considered handled.
| |
| processRequestValue | back to summary |
|---|---|
| protected abstract V processRequestValue(Channel channel, String request, Buffer buffer) throws Exception Invoked by default from
| |