Class ServiceResponse


  • public class ServiceResponse
    extends java.lang.Object
    • Field Detail

      • statusCode

        public final int statusCode
      • body

        public final java.lang.String body
      • headers

        public final java.util.List<Header> headers
    • Constructor Detail

      • ServiceResponse

        public ServiceResponse()
    • Method Detail

      • jsonString

        public static <J> ServiceResponse jsonString​(int status,
                                                     java.lang.String json)
      • html

        public static ServiceResponse html​(int status,
                                           java.lang.String body)
      • notFound

        public static ServiceResponse notFound​(java.lang.String msg)