Package org.apache.storm.daemon.common
Class JsonResponseBuilder
- java.lang.Object
-
- org.apache.storm.daemon.common.JsonResponseBuilder
-
-
Constructor Summary
Constructors Constructor Description JsonResponseBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.Response
build()
Build a Response based on given parameters.JsonResponseBuilder
setCallback(String callback)
JsonResponseBuilder
setData(Object data)
JsonResponseBuilder
setHeaders(Map<String,Object> headers)
JsonResponseBuilder
setNeedSerialize(boolean needSerialize)
JsonResponseBuilder
setStatus(int status)
-
-
-
Method Detail
-
setData
public JsonResponseBuilder setData(Object data)
-
setCallback
public JsonResponseBuilder setCallback(String callback)
-
setNeedSerialize
public JsonResponseBuilder setNeedSerialize(boolean needSerialize)
-
setStatus
public JsonResponseBuilder setStatus(int status)
-
setHeaders
public JsonResponseBuilder setHeaders(Map<String,Object> headers)
-
build
public jakarta.ws.rs.core.Response build()
Build a Response based on given parameters.- Returns:
- A Response.
-
-