|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.protocol.simple.SimpleSgsProtocolDescriptor
public class SimpleSgsProtocolDescriptor
A protocol descriptor with an underlying transport descriptor. A protocol may use this class directly or extend it, overriding methods for protocol and/or transport-specific needs.
| Field Summary | |
|---|---|
protected TransportDescriptor |
transportDesc
The transport descriptor for this protocol. |
| Constructor Summary | |
|---|---|
SimpleSgsProtocolDescriptor(TransportDescriptor transportDesc)
Constructs an instance with the specified transport descriptor. |
|
| Method Summary | |
|---|---|
byte[] |
getConnectionData()
Return the protocol specific connection data as a byte array. |
boolean |
supportsProtocol(ProtocolDescriptor descriptor)
Returns true if the specified descriptor represents
a protocol supported by the protocol that this descriptor
represents, and returns false otherwise. |
String |
toString()
Returns a string representation of this descriptor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final TransportDescriptor transportDesc
| Constructor Detail |
|---|
public SimpleSgsProtocolDescriptor(TransportDescriptor transportDesc)
transportDesc - transport descriptor| Method Detail |
|---|
public boolean supportsProtocol(ProtocolDescriptor descriptor)
true if the specified descriptor represents
a protocol supported by the protocol that this descriptor
represents, and returns false otherwise. The determination
of whether the given protocol is supported is protocol specific.
This implementation returns true if the specified descriptor is an instance of this class and this descriptor's
underlying transport descriptor is compatible with the specified
descriptor's transport descriptor.
supportsProtocol in interface ProtocolDescriptordescriptor - a protocol descriptor
true if the specified descriptor represents
a protocol supported by the protocol that this descriptor
represents, and false otherwisepublic byte[] getConnectionData()
public String toString()
toString in class Object
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||