パッケージ org.fanout.gripcontrol
クラス HttpResponseFormat
java.lang.Object
org.fanout.gripcontrol.HttpResponseFormat
- すべての実装されたインタフェース:
org.fanout.pubcontrol.Format
public class HttpResponseFormat extends Object implements org.fanout.pubcontrol.Format
Used to publish messages to HTTP response clients connected to a GRIP proxy.
-
フィールドの概要
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 HttpResponseFormat(byte[] body)Initialize with the body.HttpResponseFormat(byte[] body, Map<String,String> headers, String code, String reason)Initialize with the body, headers, code and reason.HttpResponseFormat(String body)Initialize with the body.HttpResponseFormat(String body, Map<String,String> headers, String code, String reason)Initialize with the body, headers, code and reason. -
メソッドの概要
-
フィールド詳細
-
body
public byte[] body -
headers
-
code
-
reason
-
-
コンストラクタの詳細
-
HttpResponseFormat
Initialize with the body. -
HttpResponseFormat
public HttpResponseFormat(String body, Map<String,String> headers, String code, String reason) throws UnsupportedEncodingExceptionInitialize with the body, headers, code and reason. -
HttpResponseFormat
public HttpResponseFormat(byte[] body)Initialize with the body. -
HttpResponseFormat
Initialize with the body, headers, code and reason.
-
-
メソッドの詳細
-
name
The name used when publishing this format.- 定義:
nameインタフェース内org.fanout.pubcontrol.Format
-
export
Export the message into the required format. Include only the fields that are set. The body is exported as base64 if the byte array is binary.- 定義:
exportインタフェース内org.fanout.pubcontrol.Format
-