Package | Description |
---|---|
org.apache.mina.api |
Base API for the MINA library.
|
org.apache.mina.session | |
org.apache.mina.transport.nio |
Transport implementations base on NIO (New I/O),
Channel |
Modifier and Type | Field and Description |
---|---|
static AttributeKey<SslHelper> |
IoSession.SSL_HELPER
The SslHelper instance name, stored in the session's attributes
|
Modifier and Type | Method and Description |
---|---|
Set<AttributeKey<?>> |
IoSession.getAttributeKeys()
|
Modifier and Type | Method and Description |
---|---|
<T> T |
IoSession.getAttribute(AttributeKey<T> key)
Returns the value of the user-defined attribute for the given
key .If the there is no attribute with
the specified key null will be returned. |
<T> T |
IoSession.getAttribute(AttributeKey<T> key,
T defaultValue)
Returns the value of the user-defined attribute for the given
key .If the there is no attribute with
the specified key the defaultValue will be returned. |
<T> T |
IoSession.removeAttribute(AttributeKey<T> key)
Removes the specified Attribute from this container.
|
<T> T |
IoSession.setAttribute(AttributeKey<? extends T> key,
T value)
Sets a user-defined attribute.
|
Modifier and Type | Method and Description |
---|---|
static <T> AttributeKey<T> |
AttributeKey.createKey(Class<T> attributeType,
String attributeName)
Creates a new
AttributeKey with the given parameters. |
Modifier and Type | Method and Description |
---|---|
Set<AttributeKey<?>> |
AbstractIoSession.getAttributeKeys()
|
Modifier and Type | Method and Description |
---|---|
<T> T |
AbstractIoSession.getAttribute(AttributeKey<T> key)
Returns the value of the user-defined attribute for the given
key .If the there is no attribute with
the specified key null will be returned. |
<T> T |
AbstractIoSession.getAttribute(AttributeKey<T> key,
T defaultValue)
Returns the value of the user-defined attribute for the given
key .If the there is no attribute with
the specified key the defaultValue will be returned. |
<T> T |
AbstractIoSession.removeAttribute(AttributeKey<T> key)
Removes the specified Attribute from this container.
|
<T> T |
AbstractIoSession.setAttribute(AttributeKey<? extends T> key,
T value)
Sets a user-defined attribute.
|
Modifier and Type | Field and Description |
---|---|
static AttributeKey<Boolean> |
SslHelper.NEED_CLIENT_AUTH |
static AttributeKey<InetSocketAddress> |
SslHelper.PEER_ADDRESS
A session attribute key that should be set to an
InetSocketAddress . |
static AttributeKey<Boolean> |
SslHelper.WANT_CLIENT_AUTH |
Copyright © 2009–2013 Apache MINA Project. All rights reserved.