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, waitSE
public ServletServerHttpAsyncRequestControl(ServletServerHttpRequest request, ServletServerHttpResponse response)
ServletServerHttpRequest
および ServletServerHttpResponse
であると予想されるリクエストとレスポンスのペアを受け入れるコンストラクター。public boolean isStarted()
ServerHttpAsyncRequestControl
ServerHttpAsyncRequestControl
の isStarted
public boolean isCompleted()
ServerHttpAsyncRequestControl
ServerHttpAsyncRequestControl
の isCompleted
public void start()
ServerHttpAsyncRequestControl
ServerHttpAsyncRequestControl.complete()
への呼び出しが行われるか、サーバーがリクエストをタイムアウトするまで、レスポンスは開いたままになります。有効にすると、このメソッドへの追加の呼び出しは無視されます。ServerHttpAsyncRequestControl
の start
public void start(long timeout)
ServerHttpAsyncRequestControl
ServerHttpAsyncRequestControl.start()
のバリエーション。ServerHttpAsyncRequestControl.complete()
が指定された値内で呼び出されない場合、リクエストはタイムアウトします。ServerHttpAsyncRequestControl
の start
public void complete()
ServerHttpAsyncRequestControl
ServerHttpAsyncRequestControl
の complete
public void onComplete(AsyncEventEE event) throws IOExceptionSE
AsyncListenerEE
の onCompleteEE
IOExceptionSE
public void onStartAsync(AsyncEventEE event) throws IOExceptionSE
AsyncListenerEE
の onStartAsyncEE
IOExceptionSE
public void onError(AsyncEventEE event) throws IOExceptionSE
AsyncListenerEE
の onErrorEE
IOExceptionSE
public void onTimeout(AsyncEventEE event) throws IOExceptionSE
AsyncListenerEE
の onTimeoutEE
IOExceptionSE