public class HttpResponseFormat extends Object implements org.fanout.pubcontrol.Format
| Modifier and Type | Field and Description |
|---|---|
byte[] |
body |
String |
code |
Map<String,String> |
headers |
String |
reason |
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
export()
Export the message into the required format.
|
String |
name()
The name used when publishing this format.
|
public HttpResponseFormat(String body) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic HttpResponseFormat(String body, Map<String,String> headers, String code, String reason) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic HttpResponseFormat(byte[] body)
public String name()
name in interface org.fanout.pubcontrol.Formatpublic Object export()
export in interface org.fanout.pubcontrol.FormatCopyright © 2015. All rights reserved.