Class BaseResponse<T extends BaseResponse<?>>

java.lang.Object
ca.cdr.api.fhirgw.model.BaseResponse<T>
Direct Known Subclasses:
BaseWriteResponse, OperationResponse, ReadResponse, SearchResponse, SearchSingleTargetResponse

public abstract class BaseResponse<T extends BaseResponse<?>> extends Object
  • Constructor Details

    • BaseResponse

      public BaseResponse()
      Constructor - Create an empty object
    • BaseResponse

      public BaseResponse(T theResponse)
      Copy constructor - Creates a shallow copy only
  • Method Details

    • isDeclinedToHandle

      public boolean isDeclinedToHandle()
      If true, the target has declined to try handling this request
    • setDeclinedToHandle

      public T setDeclinedToHandle(boolean theDeclinedToHandle)
      If true, the target has declined to try handling this request
    • clone

      public abstract T clone()
      Create a clone of this object using a shallow copy only. Values are copied by reference only, so things like Resources should only be modified if you are sure that the changes won't affect the value stored in cache.
      Overrides:
      clone in class Object
    • setCacheHit

      public void setCacheHit(boolean theCacheHit)
    • isCacheHit

      public boolean isCacheHit()