Package one.xingyi.core.http
Class ServiceResponse
- java.lang.Object
-
- one.xingyi.core.http.ServiceResponse
-
public class ServiceResponse extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringbodyjava.util.List<Header>headersintstatusCode
-
Constructor Summary
Constructors Constructor Description ServiceResponse()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServiceResponsehtml(int status, java.lang.String body)static <J> ServiceResponsejsonString(int status, java.lang.String json)static ServiceResponsenotFound(java.lang.String msg)
-
-
-
Field Detail
-
statusCode
public final int statusCode
-
body
public final java.lang.String body
-
headers
public final java.util.List<Header> headers
-
-
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)
-
-