public class MinaSession extends org.apache.sshd.common.util.closeable.AbstractInnerCloseable implements IoSession
| Modifier and Type | Class and Description |
|---|---|
static class |
MinaSession.Future |
org.apache.sshd.common.util.closeable.AbstractCloseable.State| Modifier and Type | Field and Description |
|---|---|
static Field |
NIO_SESSION_CHANNEL_FIELD |
closeFuture, futureLock, statelogCLOSE_WAIT_TIMEOUT, DEFAULT_CLOSE_WAIT_TIMEOUT| Constructor and Description |
|---|
MinaSession(MinaService service,
org.apache.mina.core.session.IoSession session,
SocketAddress acceptanceAddress) |
| Modifier and Type | Method and Description |
|---|---|
SocketAddress |
getAcceptanceAddress() |
Object |
getAttribute(Object key) |
long |
getId() |
protected Closeable |
getInnerCloseable() |
SocketAddress |
getLocalAddress() |
SocketAddress |
getRemoteAddress() |
IoService |
getService() |
org.apache.mina.core.session.IoSession |
getSession() |
Object |
removeAttribute(Object key) |
Object |
setAttribute(Object key,
Object value) |
Object |
setAttributeIfAbsent(Object key,
Object value) |
void |
shutdownOutputStream() |
void |
suspend() |
String |
toString() |
IoWriteFuture |
write(byte[] data) |
IoWriteFuture |
write(byte[] data,
int offset,
int len) |
IoWriteFuture |
write(org.apache.mina.core.buffer.IoBuffer buffer) |
IoWriteFuture |
writePacket(org.apache.sshd.common.util.buffer.Buffer buffer) |
doCloseGracefully, doCloseImmediatelyaddCloseFutureListener, builder, close, getFutureLock, isClosed, isClosing, preClose, removeCloseFutureListenergetSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcalculatePadLengthaddCloseFutureListener, close, close, close, getMaxCloseWaitTime, isClosed, isClosing, isOpen, removeCloseFutureListenerpublic static final Field NIO_SESSION_CHANNEL_FIELD
public MinaSession(MinaService service, org.apache.mina.core.session.IoSession session, SocketAddress acceptanceAddress)
public org.apache.mina.core.session.IoSession getSession()
public void suspend()
public Object getAttribute(Object key)
getAttribute in interface IoSessionpublic Object setAttribute(Object key, Object value)
setAttribute in interface IoSessionpublic Object setAttributeIfAbsent(Object key, Object value)
setAttributeIfAbsent in interface IoSessionpublic Object removeAttribute(Object key)
removeAttribute in interface IoSessionpublic SocketAddress getRemoteAddress()
getRemoteAddress in interface org.apache.sshd.common.util.net.ConnectionEndpointsIndicatorpublic SocketAddress getLocalAddress()
getLocalAddress in interface org.apache.sshd.common.util.net.ConnectionEndpointsIndicatorpublic SocketAddress getAcceptanceAddress()
getAcceptanceAddress in interface IoSessionprotected Closeable getInnerCloseable()
getInnerCloseable in class org.apache.sshd.common.util.closeable.AbstractInnerCloseablepublic IoWriteFuture write(byte[] data)
public IoWriteFuture write(byte[] data, int offset, int len)
public IoWriteFuture writePacket(org.apache.sshd.common.util.buffer.Buffer buffer)
writePacket in interface PacketWriterpublic IoWriteFuture write(org.apache.mina.core.buffer.IoBuffer buffer)
public IoService getService()
getService in interface IoSessionpublic void shutdownOutputStream()
throws IOException
shutdownOutputStream in interface IoSessionIOExceptionCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.