|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.slamd.message.Message
com.sun.slamd.message.KeepAliveMessage
This class defines a keepalive message that is used to ensure that a connection is still alive, and in some cases to ensure that the connection does not get closed (e.g., if a firewall between the client and server automatically closes idle connections).
| Field Summary |
| Constructor Summary | |
KeepAliveMessage(int messageID)
Creates a new keepalive message. |
|
| Method Summary | |
static KeepAliveMessage |
decodeKeepAlive(int messageID,
ASN1Element element)
Decodes the provided ASN.1 element as a keepalive message. |
ASN1Element |
encode()
Encodes this message into an ASN.1 element. |
java.lang.String |
toString()
Retrieves a string representation of this message. |
| Methods inherited from class com.sun.slamd.message.Message |
decode, getMessageID, getMessageType, send |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public KeepAliveMessage(int messageID)
messageID - The message ID for this message.| Method Detail |
public java.lang.String toString()
toString in class Message
public static KeepAliveMessage decodeKeepAlive(int messageID,
ASN1Element element)
throws SLAMDException
messageID - The message ID to use for this message.element - The ASN.1 keepalive element.
SLAMDException - If the provided ASN.1 element cannot be decoded
as a keepalive message.public ASN1Element encode()
KeepAlive ::= [APPLICATION 11] NULL
encode in class Message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||