T
- レスポンス本体の型 public final class WebEndpointResponse<T> extends ObjectSE
WebEndpointResponse
は、@EndpointWebExtension
の操作によって返され、HTTP ステータスコードなどの追加の Web 固有の情報を提供できます。修飾子と型 | フィールドと説明 |
---|---|
static int | STATUS_BAD_REQUEST 400 Bad Request . |
static int | STATUS_INTERNAL_SERVER_ERROR 500 Internal Server Error . |
static int | STATUS_NO_CONTENT 204 No Content . |
static int | STATUS_NOT_FOUND 404 Not Found . |
static int | STATUS_OK 200 OK . |
static int | STATUS_SERVICE_UNAVAILABLE 503 Service Unavailable . |
static int | STATUS_TOO_MANY_REQUESTS 429 Too Many Requests . |
コンストラクターと説明 |
---|
WebEndpointResponse() 本体がなく、ステータスが 200(OK)の新しい WebEndpointResponse を作成します。 |
WebEndpointResponse(int status) ボディがなく、指定された status を持つ新しい WebEndpointResponse を作成します。 |
WebEndpointResponse(T body) 指定された本文と 200 (OK) ステータスで新しい WebEndpointResponse を作成します。 |
WebEndpointResponse(T body, int status) 指定されたボディとステータスで新しい WebEndpointResponse を作成します。 |
WebEndpointResponse(T body, int status, MimeType contentType) 指定されたボディとステータスで新しい WebEndpointResponse を作成します。 |
WebEndpointResponse(T body, MimeType contentType) 指定された本文とコンテンツ型、および 200 (OK) ステータスで新しい WebEndpointResponse を作成します。 |
WebEndpointResponse(T body, Producible<?> producible) 指定された本文とコンテンツ型、および 200 (OK) ステータスで新しい WebEndpointResponse を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
T | getBody() レスポンスの本文を返します。 |
MimeType | getContentType() レスポンスのコンテンツ型を返します。 |
int | getStatus() レスポンスのステータスを返します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public static final int STATUS_OK
200 OK
.public static final int STATUS_NO_CONTENT
204 No Content
.public static final int STATUS_BAD_REQUEST
400 Bad Request
.public static final int STATUS_NOT_FOUND
404 Not Found
.public static final int STATUS_TOO_MANY_REQUESTS
429 Too Many Requests
.public static final int STATUS_INTERNAL_SERVER_ERROR
500 Internal Server Error
.public static final int STATUS_SERVICE_UNAVAILABLE
503 Service Unavailable
.public WebEndpointResponse()
WebEndpointResponse
を作成します。public WebEndpointResponse(int status)
status
を持つ新しい WebEndpointResponse
を作成します。status
- HTTP ステータス public WebEndpointResponse(T body)
WebEndpointResponse
を作成します。body
- 体 public WebEndpointResponse(T body, Producible<?> producible)
WebEndpointResponse
を作成します。body
- 体 producible
- コンテンツ型を提供する生産物 public WebEndpointResponse(T body, MimeType contentType)
WebEndpointResponse
を作成します。body
- 体 contentType
- レスポンスのコンテンツ型 public WebEndpointResponse(T body, int status)
WebEndpointResponse
を作成します。body
- 体 status
- HTTP ステータス