|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.core.service.DefaultTransportMetadata
public class DefaultTransportMetadata
A default immutable implementation of TransportMetadata.
| Constructor Summary | |
|---|---|
DefaultTransportMetadata(String providerName,
String name,
boolean connectionless,
boolean fragmentation,
Class<? extends SocketAddress> addressType,
Class<? extends IoSessionConfig> sessionConfigType,
Class<?>... envelopeTypes)
|
|
| Method Summary | |
|---|---|
Class<? extends SocketAddress> |
getAddressType()
Returns the address type of the service. |
Set<Class<? extends Object>> |
getEnvelopeTypes()
Returns the set of the allowed message type when you write to an IoSession that is managed by the service. |
String |
getName()
Returns the name of the service. |
String |
getProviderName()
Returns the name of the service provider (e.g. |
Class<? extends IoSessionConfig> |
getSessionConfigType()
Returns the type of the IoSessionConfig of the service |
boolean |
hasFragmentation()
Returns true if the messages exchanged by the service can be
fragmented
or reassembled by its underlying transport. |
boolean |
isConnectionless()
Returns true if the session of this transport type is
connectionless. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTransportMetadata(String providerName,
String name,
boolean connectionless,
boolean fragmentation,
Class<? extends SocketAddress> addressType,
Class<? extends IoSessionConfig> sessionConfigType,
Class<?>... envelopeTypes)
| Method Detail |
|---|
public Class<? extends SocketAddress> getAddressType()
TransportMetadata
getAddressType in interface TransportMetadatapublic Set<Class<? extends Object>> getEnvelopeTypes()
TransportMetadataIoSession that is managed by the service.
getEnvelopeTypes in interface TransportMetadatapublic Class<? extends IoSessionConfig> getSessionConfigType()
TransportMetadataIoSessionConfig of the service
getSessionConfigType in interface TransportMetadatapublic String getProviderName()
TransportMetadata
getProviderName in interface TransportMetadatapublic String getName()
TransportMetadata
getName in interface TransportMetadatapublic boolean isConnectionless()
TransportMetadatatrue if the session of this transport type is
connectionless.
isConnectionless in interface TransportMetadatapublic boolean hasFragmentation()
TransportMetadatatrue if the messages exchanged by the service can be
fragmented
or reassembled by its underlying transport.
hasFragmentation in interface TransportMetadatapublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||