public class EntityResponse extends HttpResponse
Producesを使用した場合に
レスポンスヘッダとステータスコードを指定したい場合に使用する。HttpResponse.StatusResult.Success| Modifier and Type | Method and Description |
|---|---|
EntityResponse |
setEntity(java.lang.Object entity)
エンティティを設定する。
|
HttpResponse |
setStatusCode(int code)
HTTPレスポンスのステータスコードを設定する。
デフォルトのステータスコードは
200である。 |
addCookie, getContentLength, getContentPath, getContentType, getCookie, getHeader, getHeaderMap, getHttpVersion, getLocation, getMessage, getReasonPhrase, getStatusCode, setContentDisposition, setContentDisposition, setContentPath, setContentPath, setContentType, setCookie, setHeader, setLocation, write, write, write@Published public EntityResponse setEntity(java.lang.Object entity)
entity - エンティティ@Published public HttpResponse setStatusCode(int code)
HttpResponse200である。setStatusCode in class HttpResponsecode - HTTPステータスコード