Class BaseResponse

java.lang.Object
ch.ralscha.extdirectspring.bean.BaseResponse
Direct Known Subclasses:
ExtDirectPollResponse, ExtDirectResponse, ExtDirectResponseRaw

public class BaseResponse extends Object
Superclass for response object that are sent to an Ext Direct client.
See Also:
  • Constructor Details

    • BaseResponse

      public BaseResponse()
  • Method Details

    • getType

      public String getType()
    • setType

      public void setType(String type)
      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
    • getMessage

      public String getMessage()
    • setMessage

      public void setMessage(String message)
      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

      public String getWhere()
    • setWhere

      public void setWhere(String where)
      Contains a detailed description (stacktrace) of the error if type is "exception" and sendStacktrace is set to true in Configuration.
      Parameters:
      where - the detailed error description (stacktrace)
      See Also: