|
||||||||||
| 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.ClassTransferResponseMessage
This class defines a class transfer response message that the SLAMD server uses to send Java class files to clients that do not have them. The class will be saved locally on the client system so that it is will not be necessary to request it again.
| Field Summary |
| Constructor Summary | |
ClassTransferResponseMessage(int messageID,
int responseCode,
java.lang.String className,
byte[] classData)
Creates a new class transfer response message with the specified information. |
|
| Method Summary | |
static ClassTransferResponseMessage |
decodeTransferResponse(int messageID,
ASN1Element element)
Decodes the provided ASN.1 element as a class transfer request message. |
ASN1Element |
encode()
Encodes this message into an ASN.1 element. |
byte[] |
getClassData()
Retrieves the encoded class data associated with this class transfer response. |
java.lang.String |
getClassName()
Retrieves the Java class name associated with this class transfer response message. |
int |
getResponseCode()
Retrieves the response code associated with this message. |
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 ClassTransferResponseMessage(int messageID,
int responseCode,
java.lang.String className,
byte[] classData)
messageID - The message ID for this message.responseCode - The response code that indicates whether the class
information has been provided.className - The name of the class file associated with this class
transfer response message.classData - The encoded class data.| Method Detail |
public int getResponseCode()
public java.lang.String getClassName()
public byte[] getClassData()
public java.lang.String toString()
toString in class Message
public static ClassTransferResponseMessage decodeTransferResponse(int messageID,
ASN1Element element)
throws SLAMDException
messageID - The message ID to use for this message.element - The ASN.1 element containing the encoded class name.
SLAMDException - If the provided ASN.1 element cannot be decoded
as a class transfer request message.public ASN1Element encode()
ClassTransferResponse ::= [APPLICATION 13] SEQUENCE {
responseCode INTEGER,
className OCTET STRING,
classData OCTET STRING }
encode in class Message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||