Top Fields Constructors Methods
org.apache.sshd.client.channel.exit

public Class ExitStatusChannelRequestHandler

extends AbstractChannelExitRequestHandler<Integer>
Class Inheritance
Imports
java.util.concurrent.atomic.AtomicReference, org.apache.sshd.common.channel.Channel, org.apache.sshd.common.util.EventNotifier, org.apache.sshd.common.util.buffer.Buffer

Author
Apache MINA SSHD Project
See Also
RFC4254 section 6.10

Field Summary

Modifier and TypeField and Description
public static final String
Inherited from org.apache.sshd.client.channel.exit.AbstractChannelExitRequestHandler:
holdernotifier

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final String
protected Integer
processRequestValue(Channel
The Channel through which the request was received
channel
,
String
The received request - Note: guaranteed to match the handler's name if invoked from process(Channel, String, boolean, Buffer)
request
,
Buffer
The received Buffer for extracting the data
buffer
)

Implements abstract org.apache.sshd.client.channel.exit.AbstractChannelExitRequestHandler.processRequestValue.

Invoked by default from process(Channel, String, boolean, Buffer) when a request matching the handler's name is received

protected Integer
processRequestValue(Channel channel, int exitStatus)

Inherited from org.apache.sshd.client.channel.exit.AbstractChannelExitRequestHandler:
getEventnotifyStateChangedprocess

Field Detail

NAMEback to summary
public static final String NAME

Constructor Detail

ExitStatusChannelRequestHandlerback to summary
public ExitStatusChannelRequestHandler(AtomicReference<Integer> holder, EventNotifier<? super String> notifier)

Method Detail

getNameback to summary
public final String getName()

Implements org.apache.sshd.common.NamedResource.getName.

Returns:String

Doc from org.apache.sshd.common.NamedResource.getName.

The resource name

Annotations
@Override
processRequestValueback to summary
protected Integer processRequestValue(Channel channel, String request, Buffer buffer) throws Exception

Implements abstract org.apache.sshd.client.channel.exit.AbstractChannelExitRequestHandler.processRequestValue.

Doc from org.apache.sshd.client.channel.exit.AbstractChannelExitRequestHandler.processRequestValue.

Invoked by default from process(Channel, String, boolean, Buffer) when a request matching the handler's name is received

Parameters
channel:Channel

The Channel through which the request was received

request:String

The received request - Note: guaranteed to match the handler's name if invoked from process(Channel, String, boolean, Buffer)

buffer:Buffer

The received Buffer for extracting the data

Returns:Integer

The extracted data - if null then request is ignored and Unsupported is returned

Annotations
@Override
Exceptions
Exception:
If failed to process the received request buffer
processRequestValueback to summary
protected Integer processRequestValue(Channel channel, int exitStatus) throws Exception