|
||||||||||
| 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.StopClientResponseMessage
This class defines a message that will be sent as a response to a stop client message. It provides a response code that indicates whether the request was processed successfully, or if not the reason that it was not successful. It may also optionally contain a message explaining the reason for the failure.
| Field Summary |
| Constructor Summary | |
StopClientResponseMessage(int messageID,
int responseCode)
Creates a new stop client response message with the specified response code. |
|
StopClientResponseMessage(int messageID,
int responseCode,
java.lang.String responseMessage)
Creates a new stop client response message with the specified response code and message |
|
| Method Summary | |
static StopClientResponseMessage |
decodeStopClientResponse(int messageID,
ASN1Element element)
Decodes the provided ASN.1 element as a stop client response message. |
ASN1Element |
encode()
Encodes this message into an ASN.1 element. |
int |
getResponseCode()
Retrieves the response code associated with this message. |
java.lang.String |
getResponseMessage()
Retrieves the text message included in this stop client response. |
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 StopClientResponseMessage(int messageID,
int responseCode)
messageID - The message ID for this message.responseCode - The response code to include in this response
message.
public StopClientResponseMessage(int messageID,
int responseCode,
java.lang.String responseMessage)
messageID - The message ID for this message.responseCode - The response code to include in this response
message.responseMessage - The text to include in this response message.| Method Detail |
public int getResponseCode()
public java.lang.String getResponseMessage()
public java.lang.String toString()
toString in class Message
public static StopClientResponseMessage decodeStopClientResponse(int messageID,
ASN1Element element)
throws SLAMDException
messageID - The message ID to use for this message.element - The ASN.1 element containing the StopClientResponse
sequence.
SLAMDException - If the provided ASN.1 element cannot be decoded
as a stop client response message.public ASN1Element encode()
StopClientResponse ::= [APPLICATION 16] SEQUENCE {
responseCode ResponseCode,
responseMessage OCTET STRING }
encode in class Message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||