Class RemoteCacheResponse<T>

java.lang.Object
org.apache.commons.jcs3.auxiliary.remote.value.RemoteCacheResponse<T>
All Implemented Interfaces:
Serializable

public class RemoteCacheResponse<T> extends Object implements Serializable
This is the response wrapper. The servlet wraps all different type of responses in one of these objects.
See Also:
  • Constructor Details

  • Method Details

    • setSuccess

      public void setSuccess(boolean success)
      Parameters:
      success - the success to set
    • isSuccess

      public boolean isSuccess()
      Returns:
      the success
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
      Parameters:
      errorMessage - the errorMessage to set
    • getErrorMessage

      Returns:
      the errorMessage
    • setPayload

      public void setPayload(T payload)
      Parameters:
      payload - the payload to set
    • getPayload

      public T getPayload()
      Returns:
      the payload
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      string