public class EntityResponse extends HttpResponse
Produces
を使用した場合に
レスポンスヘッダとステータスコードを指定したい場合に使用する。HttpResponse.Status
Result.ClientError, Result.Error, Result.MultiStatus, Result.NotFound, Result.Success
Modifier and Type | Method and Description |
---|---|
EntityResponse |
setEntity(java.lang.Object entity)
エンティティを設定する。
|
HttpResponse |
setStatusCode(int code)
HTTPレスポンスのステータスコードを設定する。
デフォルトのステータスコードは
200 である。 |
addCookie, getBodyStream, getBodyString, getContentDisposition, getContentLength, getContentPath, getContentType, getCookie, getHeader, getHeaderMap, getHttpCookies, getHttpVersion, getLocation, getMessage, getReasonPhrase, getStatusCode, isBodyEmpty, setBodyStream, 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)
HttpResponse
200
である。setStatusCode
in class HttpResponse
code
- HTTPステータスコード