Package org.apache.storm.daemon.common
Class JsonResponseBuilder
java.lang.Object
org.apache.storm.daemon.common.JsonResponseBuilder
Response builder for JSON. It utilizes
UIHelpers
to construct JSON body and headers.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
build()
Build a Response based on given parameters.setCallback
(String callback) setHeaders
(Map<String, Object> headers) setNeedSerialize
(boolean needSerialize) setStatus
(int status)
-
Constructor Details
-
JsonResponseBuilder
public JsonResponseBuilder()
-
-
Method Details
-
setData
-
setCallback
-
setNeedSerialize
-
setStatus
-
setHeaders
-
build
public javax.ws.rs.core.Response build()Build a Response based on given parameters.- Returns:
- A Response.
-