Class ResponseForRequest

  • All Implemented Interfaces:

    
    public final class ResponseForRequest
    
                        

    Required response data to fulfill a request with.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Integer status
      private final Map<String, String> headers
      private final String contentType
      private final Object body
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Integer getStatus()
      final Map<String, String> getHeaders() Optional response headers.
      final String getContentType()
      final Object getBody()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResponseForRequest

        ResponseForRequest()
    • Method Detail

      • getHeaders

         final Map<String, String> getHeaders()

        Optional response headers. All values are converted to strings.