java.lang.Object
ch.ralscha.extdirectspring.bean.BaseResponse
- Direct Known Subclasses:
ExtDirectPollResponse,ExtDirectResponse,ExtDirectResponseRaw
Superclass for response object that are sent to an Ext Direct client.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType()getWhere()voidsetMessage(String message) Sets an error message if type is "exception".voidSets the type of the response.voidContains a detailed description (stacktrace) of the error if type is "exception" and sendStacktrace is set to true inConfiguration.
-
Constructor Details
-
BaseResponse
public BaseResponse()
-
-
Method Details
-
getType
-
setType
Sets the type of the response. Valid values are:- "exception": when an error occurred on the server side
- "event": response from a polling method
- "rpc": response from a remote method call
- Parameters:
type- the new type of the response
- "exception": when an error occurred on the server side
-
getMessage
-
setMessage
Sets an error message if type is "exception". In all other cases this should not be called and message should be null.- Parameters:
message- the error message
-
getWhere
-
setWhere
Contains a detailed description (stacktrace) of the error if type is "exception" and sendStacktrace is set to true inConfiguration.- Parameters:
where- the detailed error description (stacktrace)- See Also:
-