public class MessageInterfaceBinding extends Object implements InterfaceBinding<MessageInterface>
MessageInterface into a JSON stream.| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_MESSAGE_LENGTH
Maximum length for a message.
|
| Constructor and Description |
|---|
MessageInterfaceBinding() |
| Modifier and Type | Method and Description |
|---|---|
void |
writeInterface(com.fasterxml.jackson.core.JsonGenerator generator,
MessageInterface messageInterface)
Encodes the content of a sentry interface into a JSON stream.
|
public static final int MAX_MESSAGE_LENGTH
public void writeInterface(com.fasterxml.jackson.core.JsonGenerator generator,
MessageInterface messageInterface)
throws IOException
InterfaceBindingwriteInterface in interface InterfaceBinding<MessageInterface>generator - JSON generator allowing to write JSON content.messageInterface - interface to encode.IOException - thrown in case of failure during the generation of JSON content.Copyright © 2012–2014. All rights reserved.