T - レスポンス本体の型 public final class WebEndpointResponse<T> extends ObjectSE
WebEndpointResponse は、@EndpointWebExtension の操作によって返され、HTTP ステータスコードなどの追加の Web 固有の情報を提供できます。| 修飾子と型 | フィールドと説明 |
|---|---|
static int | STATUS_BAD_REQUEST400 Bad Request. |
static int | STATUS_INTERNAL_SERVER_ERROR500 Internal Server Error. |
static int | STATUS_NO_CONTENT204 No Content. |
static int | STATUS_NOT_FOUND404 Not Found. |
static int | STATUS_OK200 OK. |
static int | STATUS_SERVICE_UNAVAILABLE503 Service Unavailable. |
static int | STATUS_TOO_MANY_REQUESTS429 Too Many Requests. |
| コンストラクターと説明 |
|---|
WebEndpointResponse() 本体がなく、ステータスが 200(OK)の新しい WebEndpointResponse を作成します。 |
WebEndpointResponse(int status) ボディがなく、指定された status を持つ新しい WebEndpointResponse を作成します。 |
WebEndpointResponse(T body) ボディと 200(OK)ステータスが指定された新しい WebEndpointResponse を作成します。 |
WebEndpointResponse(T body, int status) ボディとステータスを指定して、新しい WebEndpointResponse を作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
T | getBody() レスポンスの本文を返します。 |
int | getStatus() レスポンスのステータスを返します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic 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, int status)
WebEndpointResponse を作成します。body - 体 status - HTTP ステータス public T getBody()
public int getStatus()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.