public class EntityResponse extends HttpResponse
Producesを使用した場合に
レスポンスヘッダとステータスコードを指定したい場合に使用する。HttpResponse.StatusResult.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, 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)
HttpResponse200である。setStatusCode in class HttpResponsecode - HTTPステータスコード