Class OkResponse<T>

java.lang.Object
com.fredriksonsound.iot_backoffice_auth.web.OkResponse<T>
Type Parameters:
T - response body type
All Implemented Interfaces:
Response<T>

public class OkResponse<T>
extends java.lang.Object
implements Response<T>
More ergonomic response
  • Constructor Summary

    Constructors 
    Constructor Description
    OkResponse​(T body)  
  • Method Summary

    Modifier and Type Method Description
    org.springframework.http.ResponseEntity<T> collect()  
    static OkResponse<com.google.gson.JsonObject> JsonFromMessage​(java.lang.String message)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait