Class HttpResponse
- java.lang.Object
-
- org.jobrunr.dashboard.server.http.HttpResponse
-
public class HttpResponse extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description HttpResponse(com.sun.net.httpserver.HttpExchange httpExchange, JsonMapper jsonMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponse
asJson(java.lang.Object object)
HttpResponse
error(java.lang.Throwable t)
void
statusCode(int i)
-
-
-
Constructor Detail
-
HttpResponse
public HttpResponse(com.sun.net.httpserver.HttpExchange httpExchange, JsonMapper jsonMapper)
-
-
Method Detail
-
asJson
public HttpResponse asJson(java.lang.Object object)
-
error
public HttpResponse error(java.lang.Throwable t)
-
statusCode
public void statusCode(int i)
-
-