public class EntityResponse extends HttpResponse
Producesを使用した場合に
 レスポンスヘッダとステータスコードを指定したい場合に使用する。HttpResponse.StatusResult.ClientError, Result.Error, Result.MultiStatus, Result.NotFound, Result.SuccessCONTENT_DISPOSITION, LS| Constructor and Description | 
|---|
EntityResponse()  | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.Object | 
getEntity()
エンティティを取得する。 
 | 
boolean | 
isStatusCodeSet()
ステータスコードが設定されたかを判定する。 
 | 
EntityResponse | 
setEntity(java.lang.Object entity)
エンティティを設定する。 
 | 
HttpResponse | 
setStatusCode(int code)
HTTPレスポンスのステータスコードを設定する。
 
 デフォルトのステータスコードは 
200である。 | 
addCookie, cleanup, getBodyStream, getBodyString, getCharset, getContentDisposition, getContentLength, getContentPath, getContentType, getCookie, getCookieList, getHeader, getHeaderMap, getHttpCookies, getHttpVersion, getLocation, getMessage, getReasonPhrase, getStatusCode, getTransferEncoding, isBodyEmpty, isSuccess, parse, parse, setBodyStream, setContentDisposition, setContentDisposition, setContentPath, setContentPath, setContentType, setCookie, setHeader, setHttpVersion, setLocation, setTransferEncoding, toString, write, write, writepublic java.lang.Object getEntity()
@Published public EntityResponse setEntity(java.lang.Object entity)
entity - エンティティ@Published public HttpResponse setStatusCode(int code)
HttpResponse200である。setStatusCode in class HttpResponsecode - HTTPステータスコードpublic boolean isStatusCodeSet()