|
||||||||||
| 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.JobResponseMessage
This class defines a method that will be provided in response to a job request. It specifies whether the request was accepted and, if not, the reason that it was rejected.
| Field Summary |
| Constructor Summary | |
JobResponseMessage(int messageID,
java.lang.String jobID,
int responseCode)
Creates a new job response message with the specified response code. |
|
JobResponseMessage(int messageID,
java.lang.String jobID,
int responseCode,
java.lang.String responseMessage)
Creates a new job response message with the specified response code and message. |
|
| Method Summary | |
static JobResponseMessage |
decodeJobResponse(int messageID,
ASN1Element element)
Decodes the provided ASN.1 element as a job response message. |
ASN1Element |
encode()
Encodes this message into an ASN.1 element. |
java.lang.String |
getJobID()
Retrieves the ID of the job for which the request was made. |
int |
getResponseCode()
Retrieves the response code for the job request. |
java.lang.String |
getResponseMessage()
Retrieves the message associated with this job 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 JobResponseMessage(int messageID,
java.lang.String jobID,
int responseCode)
messageID - The message ID for this message.jobID - The ID of the job for which the request was made.responseCode - The response code that indicates whether the
operation was successful and if not provides the
reason that it failed.
public JobResponseMessage(int messageID,
java.lang.String jobID,
int responseCode,
java.lang.String responseMessage)
messageID - The message ID for this message.jobID - The ID of the job for which the request was made.responseCode - The response code that indicates whether the
operation was successful and if not provides the
reason that it failed.responseMessage - A text message providing additonal information
about the status of the operation.| Method Detail |
public java.lang.String getJobID()
public int getResponseCode()
public java.lang.String getResponseMessage()
public java.lang.String toString()
toString in class Message
public static JobResponseMessage decodeJobResponse(int messageID,
ASN1Element element)
throws SLAMDException
messageID - The message ID to use for this message.element - The ASN.1 element containing the JobResponse sequence.
SLAMDException - If the provided ASN.1 element cannot be decoded
as a job response message.public ASN1Element encode()
JobResponse ::= [APPLICATION 4] SEQUENCE {
jobID OCTET STRING,
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 | |||||||||