public class HttpStreamFormat extends Object implements org.fanout.pubcontrol.Format
| Constructor and Description |
|---|
HttpStreamFormat(byte[] content)
Initialize with byte array content.
|
HttpStreamFormat(HttpStreamAction action)
Initialize with an action.
|
HttpStreamFormat(String content)
Initialize with string content.
|
| 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 byte[] content
public Boolean isClose
public HttpStreamFormat(HttpStreamAction action) throws IllegalArgumentException
IllegalArgumentExceptionpublic HttpStreamFormat(String content) throws UnsupportedEncodingException, IllegalArgumentException
public HttpStreamFormat(byte[] content)
throws IllegalArgumentException
IllegalArgumentExceptionpublic String name()
name in interface org.fanout.pubcontrol.Formatpublic Object export()
export in interface org.fanout.pubcontrol.FormatCopyright © 2015. All rights reserved.