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

public Class TcpipServerChannel

extends AbstractServerChannel
implements ForwardingTunnelEndpointsProvider
Class Inheritance
All Implemented Interfaces
org.apache.sshd.common.forward.ForwardingTunnelEndpointsProvider
Imports
java.io.IOException, java.net.ConnectException, .SocketAddress, java.util.Collections, .Objects, org.apache.sshd.client.future.DefaultOpenFuture, .OpenFuture, org.apache.sshd.common.Closeable, .FactoryManager, .RuntimeSshException, .SshConstants, org.apache.sshd.common.channel.Channel, .ChannelAsyncOutputStream, .ChannelFactory, org.apache.sshd.common.channel.exception.SshChannelOpenException, org.apache.sshd.common.forward.ChannelToPortHandler, .Forwarder, .ForwardingTunnelEndpointsProvider, org.apache.sshd.common.future.CloseFuture, .DefaultCloseFuture, org.apache.sshd.common.io.IoConnectFuture, .IoConnector, .IoHandler, .IoServiceFactory, .IoSession, .IoWriteFuture, org.apache.sshd.common.session.Session, org.apache.sshd.common.util.ExceptionUtils, .Readable, org.apache.sshd.common.util.buffer.Buffer, .ByteArrayBuffer, org.apache.sshd.common.util.closeable.AbstractCloseable, org.apache.sshd.common.util.net.SshdSocketAddress, org.apache.sshd.common.util.threads.CloseableExecutorService, .ExecutorServiceCarrier, .ThreadUtils, org.apache.sshd.server.channel.AbstractServerChannel, org.apache.sshd.server.forward.TcpForwardingFilter.Type

TODO Add javadoc
Author
Apache MINA SSHD Project

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class
public abstract static class

Field Summary

Modifier and TypeField and Description
private IoConnector
private SocketAddress
private SshdSocketAddress
private ChannelAsyncOutputStream
private ChannelToPortHandler
private SshdSocketAddress
private SshdSocketAddress
private final TcpForwardingFilter.Type
Inherited from org.apache.sshd.server.channel.AbstractServerChannel:
exitStatusSent

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected ChannelToPortHandler
protected OpenFuture
protected void
doWriteData(byte[] data, int off, long len)

Implements abstract org.apache.sshd.common.channel.AbstractChannel.doWriteData.

protected void
protected Closeable
public SocketAddress
public SshdSocketAddress
public TcpForwardingFilter.Type
public SshdSocketAddress
public SshdSocketAddress
protected void
protected void
protected void
public void
public void
handleWindowAdjust(Buffer
The rest of the message data Buffer after decoding the channel identifiers
buffer
)

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

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

Invoked when SSH_MSG_CHANNEL_WINDOW_ADJUST received

protected boolean
public void
Inherited from org.apache.sshd.server.channel.AbstractServerChannel:
handleOpenFailurehandleOpenSuccessopensendExitStatus

Field Detail

connectorback to summary
private IoConnector connector
localAddressback to summary
private SocketAddress localAddress
originatorAddressback to summary
private SshdSocketAddress originatorAddress
outback to summary
private ChannelAsyncOutputStream out
portback to summary
private ChannelToPortHandler port
tunnelEntranceback to summary
private SshdSocketAddress tunnelEntrance
tunnelExitback to summary
private SshdSocketAddress tunnelExit
typeback to summary
private final TcpForwardingFilter.Type type

Constructor Detail

TcpipServerChannelback to summary
public TcpipServerChannel(TcpForwardingFilter.Type type, CloseableExecutorService executor)

Method Detail

createChannelToPortHandlerback to summary
protected ChannelToPortHandler createChannelToPortHandler(IoSession session)
doInitback to summary
protected OpenFuture doInit(Buffer buffer)

Overrides org.apache.sshd.server.channel.AbstractServerChannel.doInit.

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

Implements abstract org.apache.sshd.common.channel.AbstractChannel.doWriteData.

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

Implements abstract org.apache.sshd.common.channel.AbstractChannel.doWriteExtendedData.

Annotations
@Override
getInnerCloseableback to summary
protected Closeable getInnerCloseable()

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

Annotations
@Override
getLocalAddressback to summary
public SocketAddress getLocalAddress()
getOriginatorAddressback to summary
public SshdSocketAddress getOriginatorAddress()
getTcpipChannelTypeback to summary
public TcpForwardingFilter.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
handleChannelConnectResultback to summary
protected void handleChannelConnectResult(OpenFuture f, IoConnectFuture future)
handleChannelOpenFailureback to summary
protected void handleChannelOpenFailure(OpenFuture f, Throwable problem)
handleChannelOpenSuccessback to summary
protected void handleChannelOpenSuccess(OpenFuture f, IoSession session)
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
handleWindowAdjustback to summary
public void handleWindowAdjust(Buffer buffer) throws IOException

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

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

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

Invoked when SSH_MSG_CHANNEL_WINDOW_ADJUST received

Parameters
buffer:Buffer

The rest of the message data Buffer after decoding the channel identifiers

Annotations
@Override
Exceptions
IOException:
If failed to handle the message
mayWriteback to summary
protected boolean mayWrite()

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

Annotations
@Override
setLocalAddressback to summary
public void setLocalAddress(SocketAddress localAddress)
org.apache.sshd.server.forward back to summary

pack-priv Class TcpipServerChannel.PortIoHandler

extends Object
implements IoHandler
Class Inheritance
  • java.lang.Object
  • org.apache.sshd.server.forward.TcpipServerChannel.PortIoHandler
All Implemented Interfaces
org.apache.sshd.common.io.IoHandler

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PortIoHandlerback to summary
pack-priv PortIoHandler()

Method Detail

exceptionCaughtback to summary
public void exceptionCaught(IoSession session, Throwable cause) throws Exception

Implements org.apache.sshd.common.io.IoHandler.exceptionCaught.

Annotations
@Override
messageReceivedback to summary
public void messageReceived(IoSession session, Readable message) throws Exception

Implements org.apache.sshd.common.io.IoHandler.messageReceived.

Annotations
@Override
sessionClosedback to summary
public void sessionClosed(IoSession session) throws Exception

Implements org.apache.sshd.common.io.IoHandler.sessionClosed.

Annotations
@Override
sessionCreatedback to summary
public void sessionCreated(IoSession session) throws Exception

Implements org.apache.sshd.common.io.IoHandler.sessionCreated.

Annotations
@Override
org.apache.sshd.server.forward back to summary

public abstract Class TcpipServerChannel.TcpipFactory

extends Object
implements ChannelFactory, ExecutorServiceCarrier
Class Inheritance
  • java.lang.Object
  • org.apache.sshd.server.forward.TcpipServerChannel.TcpipFactory
All Implemented Interfaces
org.apache.sshd.common.util.threads.ExecutorServiceCarrier, org.apache.sshd.common.channel.ChannelFactory, org.apache.sshd.common.NamedResource
Known Direct Subclasses
org.apache.sshd.server.forward.DirectTcpipFactory, org.apache.sshd.server.forward.ForwardedTcpipFactory

Field Summary

Modifier and TypeField and Description
private final TcpForwardingFilter.Type

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public Channel
createChannel(Session
The Session through which the request is made
session
)

Implements org.apache.sshd.common.channel.ChannelFactory.createChannel.

public CloseableExecutorService
public final String
public final TcpForwardingFilter.Type
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

typeback to summary
private final TcpForwardingFilter.Type type

Constructor Detail

TcpipFactoryback to summary
protected TcpipFactory(TcpForwardingFilter.Type type)

Method Detail

createChannelback to summary
public Channel createChannel(Session session) throws IOException

Implements org.apache.sshd.common.channel.ChannelFactory.createChannel.

Parameters
session:Session

Doc from org.apache.sshd.common.channel.ChannelFactory.createChannel.

The Session through which the request is made

Returns:Channel

Doc from org.apache.sshd.common.channel.ChannelFactory.createChannel.

The relevant Channel

Annotations
@Override
Exceptions
IOException:

Doc from org.apache.sshd.common.channel.ChannelFactory.createChannel.

If failed to create the requested instance

getExecutorServiceback to summary
public CloseableExecutorService getExecutorService()

Implements org.apache.sshd.common.util.threads.ExecutorServiceCarrier.getExecutorService.

Returns:CloseableExecutorService

Doc from org.apache.sshd.common.util.threads.ExecutorServiceCarrier.getExecutorService.

The CloseableExecutorService to use

Annotations
@Override
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
getTypeback to summary
public final TcpForwardingFilter.Type getType()