protected static class HttpTunnelServer.HttpConnection extends ObjectSE
| コンストラクターと説明 |
|---|
HttpConnection(ServerHttpRequest request, ServerHttpResponse response) |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected void | complete() リクエストが完了すると呼び出されます。 |
ServerHttpRequest | getRequest() 基になるリクエストを返します。 |
protected ServerHttpResponse | getResponse() 基になるレスポンスを返します。 |
boolean | isDisconnectRequest() リクエストが実際に切断するシグナルであるかどうかを検出します。 |
boolean | isOlderThan(int time) 接続が指定された時間より古いかどうかを判別します。 |
void | respond(HttpStatus status)HTTP ステータスレスポンスを送信します。 |
void | respond(HttpTunnelPayload payload) ペイロードレスポンスを送信します。 |
protected ServerHttpAsyncRequestControl | startAsync() 非同期サポートを開始するか、使用できない場合は null を返して、waitForResponse() をブロックします。 |
void | waitForResponse() リクエストをブロックするか、非同期メソッドを使用して、レスポンスが利用可能になるまで待機します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic HttpConnection(ServerHttpRequest request, ServerHttpResponse response)
protected ServerHttpAsyncRequestControl startAsync()
null を返して、waitForResponse() をブロックします。public final ServerHttpRequest getRequest()
protected final ServerHttpResponse getResponse()
public boolean isOlderThan(int time)
time - チェックする時間 true public void waitForResponse()
public boolean isDisconnectRequest()
public void respond(HttpStatus status) throws IOExceptionSE
status - 送信するステータス IOExceptionSE - I/O エラーの場合 public void respond(HttpTunnelPayload payload) throws IOExceptionSE
payload - 送信するペイロード IOExceptionSE - I/O エラーの場合 protected void complete()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.