public class ServletServerHttpAsyncRequestControl extends ObjectSE implements ServerHttpAsyncRequestControl, AsyncListenerEE
ServerHttpAsyncRequestControl。| コンストラクターと説明 |
|---|
ServletServerHttpAsyncRequestControl(ServletServerHttpRequest request, ServletServerHttpResponse response) それぞれ型 ServletServerHttpRequest および ServletServerHttpResponse であると予想されるリクエストとレスポンスのペアを受け入れるコンストラクター。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | complete() 非同期リクエスト処理を完了としてマークします。 |
boolean | isCompleted() 非同期リクエスト処理が完了したかどうかを返します。 |
boolean | isStarted() 非同期リクエスト処理が開始されているかどうかを返します。 |
void | onComplete(AsyncEventEE event) |
void | onError(AsyncEventEE event) |
void | onStartAsync(AsyncEventEE event) |
void | onTimeout(AsyncEventEE event) |
void | start() 非同期処理を有効にしてから、 ServerHttpAsyncRequestControl.complete() への呼び出しが行われるか、サーバーがリクエストをタイムアウトするまで、レスポンスは開いたままになります。 |
void | start(long timeout) 非同期処理に使用するタイムアウト値を指定できる ServerHttpAsyncRequestControl.start() のバリエーション。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic ServletServerHttpAsyncRequestControl(ServletServerHttpRequest request, ServletServerHttpResponse response)
ServletServerHttpRequest および ServletServerHttpResponse であると予想されるリクエストとレスポンスのペアを受け入れるコンストラクター。public boolean isStarted()
ServerHttpAsyncRequestControlServerHttpAsyncRequestControl の isStarted public boolean isCompleted()
ServerHttpAsyncRequestControlServerHttpAsyncRequestControl の isCompleted public void start()
ServerHttpAsyncRequestControlServerHttpAsyncRequestControl.complete() への呼び出しが行われるか、サーバーがリクエストをタイムアウトするまで、レスポンスは開いたままになります。有効にすると、このメソッドへの追加の呼び出しは無視されます。ServerHttpAsyncRequestControl の start public void start(long timeout)
ServerHttpAsyncRequestControlServerHttpAsyncRequestControl.start() のバリエーション。指定された値内に ServerHttpAsyncRequestControl.complete() が呼び出されない場合、リクエストはタイムアウトになります。ServerHttpAsyncRequestControl の start public void complete()
ServerHttpAsyncRequestControlServerHttpAsyncRequestControl の complete public void onStartAsync(AsyncEventEE event) throws IOExceptionSE
AsyncListenerEE の onStartAsyncEE IOExceptionSEpublic void onTimeout(AsyncEventEE event) throws IOExceptionSE
AsyncListenerEE の onTimeoutEE IOExceptionSEpublic void onError(AsyncEventEE event) throws IOExceptionSE
AsyncListenerEE の onErrorEE IOExceptionSEpublic void onComplete(AsyncEventEE event) throws IOExceptionSE
AsyncListenerEE の onCompleteEE IOExceptionSE