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 onComplete(AsyncEventEE event) throws IOExceptionSE
AsyncListenerEE 内の onCompleteEE IOExceptionSEpublic void onStartAsync(AsyncEventEE event) throws IOExceptionSE
AsyncListenerEE 内の onStartAsyncEE IOExceptionSEpublic void onError(AsyncEventEE event) throws IOExceptionSE
AsyncListenerEE 内の onErrorEE IOExceptionSEpublic void onTimeout(AsyncEventEE event) throws IOExceptionSE
AsyncListenerEE 内の onTimeoutEE IOExceptionSE