Constructor and Description |
---|
JsonResponseBuilder() |
Modifier and Type | Method and Description |
---|---|
javax.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) |
public JsonResponseBuilder setData(Object data)
public JsonResponseBuilder setCallback(String callback)
public JsonResponseBuilder setNeedSerialize(boolean needSerialize)
public JsonResponseBuilder setStatus(int status)
public JsonResponseBuilder setHeaders(Map<String,Object> headers)
public javax.ws.rs.core.Response build()
Build a Response based on given parameters.
Copyright © 2019 The Apache Software Foundation. All rights reserved.