java.lang.Object
io.getlime.core.rest.model.base.response.Response
Direct Known Subclasses:
ObjectResponse

public class Response
extends java.lang.Object
Simple status only response object.
Author:
Petr Dvorak, petr@wultra.com
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  Response.Status
    Response status string.
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected @NotBlank java.lang.String status
    Response status.
  • Constructor Summary

    Constructors
    Constructor Description
    Response()
    Default constructor.
    Response​(java.lang.String status)
    Constructor with response status and response object
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getStatus()
    Get response status.
    void setStatus​(java.lang.String status)
    Set response status.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • status

      @NotBlank protected @NotBlank java.lang.String status
      Response status.
  • Constructor Details

    • Response

      public Response()
      Default constructor.
    • Response

      public Response​(java.lang.String status)
      Constructor with response status and response object
      Parameters:
      status - Response status, use static constant from Response.Status class.
  • Method Details

    • getStatus

      public java.lang.String getStatus()
      Get response status.
      Returns:
      Response status.
    • setStatus

      public void setStatus​(java.lang.String status)
      Set response status.
      Parameters:
      status - Response status.