|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.core.clientapi.server.content.ContentServiceResponse
public class ContentServiceResponse
Server/agent communications object to convey the result of a request for a content subsystem operation.
| Constructor Summary | |
|---|---|
ContentServiceResponse(int requestId)
Convenience constructor for a response that conveys a success. |
|
ContentServiceResponse(int requestId,
String errorMessage)
Convenience constructor for a response that conveys an error. |
|
ContentServiceResponse(int requestId,
Throwable error)
Convenience constructor for a response that conveys an error. |
|
| Method Summary | |
|---|---|
String |
getErrorMessage()
|
int |
getRequestId()
|
org.rhq.core.domain.content.ContentRequestStatus |
getStatus()
|
void |
setErrorMessage(String errorMessage)
|
void |
setErrorMessageFromThrowable(Throwable t)
Convienence method that sets the error message to the given throwable's stack trace dump. |
void |
setRequestId(int requestId)
|
void |
setStatus(org.rhq.core.domain.content.ContentRequestStatus status)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentServiceResponse(int requestId)
requestId - ID of the original request
public ContentServiceResponse(int requestId,
String errorMessage)
requestId - request the response applies toerrorMessage - message of the error encountered
public ContentServiceResponse(int requestId,
Throwable error)
requestId - request the response applies toerror - exception that occurred| Method Detail |
|---|
public int getRequestId()
public void setRequestId(int requestId)
public org.rhq.core.domain.content.ContentRequestStatus getStatus()
public void setStatus(org.rhq.core.domain.content.ContentRequestStatus status)
public String getErrorMessage()
public void setErrorMessage(String errorMessage)
public void setErrorMessageFromThrowable(Throwable t)
null, the error message will be set to null as if passing null to
setErrorMessage(String).
t - throwable whose message and stack trace will make up the error message (may be null)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||