|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.slamd.protocol.SLAMDMessage
com.sun.slamd.protocol.ClientUpgradeResponse
public class ClientUpgradeResponse
This class defines a SLAMD message that will be sent from the server to the client in response to an upgrade request. It will include a result code, and either the requested upgrade file or an error message.
| Constructor Summary | |
|---|---|
ClientUpgradeResponse()
Creates a new instance of this client upgrade response message which is intended for use in decoding a message transmitted between the server and the client. |
|
ClientUpgradeResponse(int messageID,
java.util.HashMap extraProperties,
int resultCode,
java.lang.String errorMessage,
byte[] upgradeFileData)
Creates a new instance of this client upgrade response message with the provided information. |
|
| Method Summary | |
|---|---|
void |
decodeMessagePayload(ASN1Element payloadElement)
Decodes the provided ASN.1 element and uses it as the payload for this SLAMD message. |
ASN1Element |
encodeMessagePayload()
Encodes the payload component of this SLAMD message to an ASN.1 element for inclusion in the message envelope. |
java.lang.String |
getErrorMessage()
Retrieves the error message for the client upgrade operation. |
int |
getResultCode()
Retrieves the result code for the client upgrade operation. |
byte[] |
getUpgradeFileData()
Retrieves the data for the requested upgrade file. |
void |
payloadToString(java.lang.StringBuffer buffer,
int indent)
Appends a string representation of the payload for this SLAMD message to the provided buffer. |
void |
setErrorMessage(java.lang.String errorMessage)
Specifies the error message for the client upgrade operation. |
void |
setResultCode(int resultCode)
Specifies the result code for the client upgrade operation. |
void |
setUpgradeFileData(byte[] upgradeFileData)
Specifies the data for the requested upgrade file. |
| Methods inherited from class com.sun.slamd.protocol.SLAMDMessage |
|---|
decode, decodeNameValuePair, decodeNameValuePairSequence, encode, encodeNameValuePair, getExtraProperties, getExtraProperty, getMessageID, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClientUpgradeResponse()
public ClientUpgradeResponse(int messageID,
java.util.HashMap extraProperties,
int resultCode,
java.lang.String errorMessage,
byte[] upgradeFileData)
messageID - The message ID for this SLAMD message.extraProperties - The "extra" properties for this SLAMD message.
Both the names and values for the properties must
be strings.resultCode - The result code for the client upgrade operation.errorMessage - The error message for the client upgrade
operation.upgradeFileData - The data for the requested upgrade file.| Method Detail |
|---|
public int getResultCode()
public void setResultCode(int resultCode)
resultCode - The result code for the client upgrade operation.public java.lang.String getErrorMessage()
null if none was provided.public void setErrorMessage(java.lang.String errorMessage)
errorMessage - The error message for the client upgrade operation.public byte[] getUpgradeFileData()
null if
it was not provided.public void setUpgradeFileData(byte[] upgradeFileData)
upgradeFileData - The data for the requested upgrade file.public ASN1Element encodeMessagePayload()
encodeMessagePayload in class SLAMDMessage
public void decodeMessagePayload(ASN1Element payloadElement)
throws SLAMDException
decodeMessagePayload in class SLAMDMessagepayloadElement - The ASN.1 element to decode as the payload for this
SLAMD message.
SLAMDException - If a problem occurs while attempting to decode the
provided ASN.1 element as the payload for this
SLAMD message.
public void payloadToString(java.lang.StringBuffer buffer,
int indent)
payloadToString in class SLAMDMessagebuffer - The buffer to which the string representation is to be
appended.indent - The number of spaces to indent the payload content.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||