Top Description Inners Fields Constructors Methods
org.apache.sshd.common.forward

public Class TcpipClientChannel

extends AbstractClientChannel
implements ForwardingTunnelEndpointsProvider
Class Inheritance
All Implemented Interfaces
org.apache.sshd.common.forward.ForwardingTunnelEndpointsProvider
Imports
java.io.IOException, java.net.InetSocketAddress, java.util.Collections, .EnumSet, .Objects, .Set, org.apache.sshd.client.channel.AbstractClientChannel, org.apache.sshd.client.future.DefaultOpenFuture, .OpenFuture, org.apache.sshd.common.Closeable, .NamedResource, .SshConstants, .SshException, org.apache.sshd.common.channel.ChannelAsyncInputStream, .ChannelAsyncOutputStream, .ChannelOutputStream, .LocalWindow, org.apache.sshd.common.future.CloseFuture, .DefaultCloseFuture, org.apache.sshd.common.io.IoSession, .IoWriteFuture, org.apache.sshd.common.session.Session, org.apache.sshd.common.util.buffer.Buffer, org.apache.sshd.common.util.net.SshdSocketAddress

TODO Add javadoc
Author
Apache MINA SSHD Project

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
TcpipClientChannel.Type

Type of channel being created.

Field Summary

Modifier and TypeField and Description
protected SshdSocketAddress
protected final ChannelToPortHandler
protected final SshdSocketAddress
private SshdSocketAddress
private SshdSocketAddress
private final TcpipClientChannel.Type
Inherited from org.apache.sshd.client.channel.AbstractClientChannel:
asyncErrasyncInasyncOuterrexitSignalHolderexitStatusHolderininvertedErrinvertedIninvertedOutopenedopenFailureLangopenFailureMsgopenFailureReasonopenFutureoutredirectErrorStreamstreaming

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected ChannelToPortHandler
protected synchronized void
protected void
protected void
protected Closeable
public TcpipClientChannel.Type
public SshdSocketAddress
public SshdSocketAddress
public void
public synchronized OpenFuture
public void
Inherited from org.apache.sshd.client.channel.AbstractClientChannel:
addChannelSignalRequestHandlersgetAsyncErrgetAsyncIngetAsyncOutgetChannelStategetChannelTypegetErrgetExitSignalgetExitStatusgetIngetInvertedErrgetInvertedIngetInvertedOutgetOutgetStreaminghandleOpenFailurehandleOpenSuccesshandleWindowAdjustisRedirectErrorStreammayWriteopensetErrsetInsetOutsetRedirectErrorStreamsetStreamingupdateCurrentChannelStatewaitFor

Field Detail

localEntryback to summary
protected SshdSocketAddress localEntry
portback to summary
protected final ChannelToPortHandler port
remoteback to summary
protected final SshdSocketAddress remote
tunnelEntranceback to summary
private SshdSocketAddress tunnelEntrance
tunnelExitback to summary
private SshdSocketAddress tunnelExit
typeEnumback to summary
private final TcpipClientChannel.Type typeEnum

Constructor Detail

TcpipClientChannelback to summary
public TcpipClientChannel(TcpipClientChannel.Type type, IoSession serverSession, SshdSocketAddress remote)

Method Detail

createChannelToPortHandlerback to summary
protected ChannelToPortHandler createChannelToPortHandler(IoSession session)
doOpenback to summary
protected synchronized void doOpen() throws IOException

Implements abstract org.apache.sshd.client.channel.AbstractClientChannel.doOpen.

Annotations
@Override
doWriteDataback to summary
protected void doWriteData(byte[] data, int off, long len) throws IOException

Overrides org.apache.sshd.client.channel.AbstractClientChannel.doWriteData.

Annotations
@Override
doWriteExtendedDataback to summary
protected void doWriteExtendedData(byte[] data, int off, long len) throws IOException

Overrides org.apache.sshd.client.channel.AbstractClientChannel.doWriteExtendedData.

Annotations
@Override
getInnerCloseableback to summary
protected Closeable getInnerCloseable()

Overrides org.apache.sshd.client.channel.AbstractClientChannel.getInnerCloseable.

Annotations
@Override
getTcpipChannelTypeback to summary
public TcpipClientChannel.Type getTcpipChannelType()
getTunnelEntranceback to summary
public SshdSocketAddress getTunnelEntrance()

Implements org.apache.sshd.common.forward.ForwardingTunnelEndpointsProvider.getTunnelEntrance.

Annotations
@Override
getTunnelExitback to summary
public SshdSocketAddress getTunnelExit()

Implements org.apache.sshd.common.forward.ForwardingTunnelEndpointsProvider.getTunnelExit.

Annotations
@Override
handleEofback to summary
public void handleEof() throws IOException

Overrides org.apache.sshd.common.channel.AbstractChannel.handleEof.

Implements org.apache.sshd.common.channel.Channel.handleEof.

Doc from org.apache.sshd.common.channel.Channel.handleEof.

Invoked when SSH_MSG_CHANNEL_EOF received

Annotations
@Override
Exceptions
IOException:
If failed to handle the message
openback to summary
public synchronized OpenFuture open() throws IOException

Overrides org.apache.sshd.client.channel.AbstractClientChannel.open.

Implements org.apache.sshd.client.channel.ClientChannel.open.

Annotations
@Override
updateLocalForwardingEntryback to summary
public void updateLocalForwardingEntry(LocalForwardingEntry entry)
org.apache.sshd.common.forward back to summary

public final Enum TcpipClientChannel.Type

extends Enum<TcpipClientChannel.Type>
implements NamedResource
Class Inheritance
All Implemented Interfaces
org.apache.sshd.common.NamedResource

Type of channel being created. The type's getName() method returns the SSH request type

Field Summary

Modifier and TypeField and Description
private final String
public static final TcpipClientChannel.Type
public static final TcpipClientChannel.Type
public static final Set<TcpipClientChannel.Type>

Constructor Summary

AccessConstructor and Description
private
Type(String channelType)

Method Summary

Modifier and TypeMethod and Description
public String
public static TcpipClientChannel.Type
public static TcpipClientChannel.Type[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

channelTypeback to summary
private final String channelType
Directback to summary
public static final TcpipClientChannel.Type Direct
Forwardedback to summary
public static final TcpipClientChannel.Type Forwarded
VALUESback to summary
public static final Set<TcpipClientChannel.Type> VALUES

Constructor Detail

Typeback to summary
private Type(String channelType)

Method Detail

getNameback to summary
public String getName()

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

Returns:String

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

The resource name

Annotations
@Override
valueOfback to summary
public static TcpipClientChannel.Type valueOf(String name)
valuesback to summary
public static TcpipClientChannel.Type[] values()