public class NettyHttpTuple extends Object implements INettyTuple<Map<String,Object>>
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT
Field used to pass the data received from POST requests.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ack()
Acknowledge that NettyData.
|
void |
fail()
Signal the peer about the failure to process that NettyData.
|
io.netty.channel.ChannelHandlerContext |
getChannel() |
Map<String,Object> |
getData()
The general case is to receive a Json document (as is, or lumberjack encoded),
made of key value pairs.
|
int |
getDataLength() |
boolean |
getDirectResponse() |
boolean |
getKeepAlive() |
InetSocketAddress |
getLocalAddress()
Get the local (i.e.
|
InetSocketAddress |
getRemoteAddress()
Get the remote (i.e.
|
String |
getUniqueID() |
void |
setDirectResponse(boolean directResponse) |
void |
setKeepAlive(boolean ka) |
void |
setUniqueID(String s) |
String |
toString() |
public static final String CONTENT
public InetSocketAddress getLocalAddress()
INettyTuplegetLocalAddress in interface INettyTuple<Map<String,Object>>public InetSocketAddress getRemoteAddress()
INettyTuplegetRemoteAddress in interface INettyTuple<Map<String,Object>>public Map<String,Object> getData()
INettyTupleIf however a single String is received, for instance from a syslog plain client, then you will find a single entry. To avoid the burden and the performance penalty to always retrieve it from a map, you can use the getSingleData method.
getData in interface INettyTuple<Map<String,Object>>public io.netty.channel.ChannelHandlerContext getChannel()
public void setKeepAlive(boolean ka)
public boolean getKeepAlive()
public void setUniqueID(String s)
public String getUniqueID()
public void fail()
INettyTupleWhat action will be taken is up to the underlying connector. It will be a no-operation if the connector does not support an acknowledged mode.
fail in interface INettyTuple<Map<String,Object>>public void ack()
INettyTupleWhat happens is up to the underlying connector. It will be a no-operation if the connector does not support an acknowledged mode.
ack in interface INettyTuple<Map<String,Object>>public void setDirectResponse(boolean directResponse)
public boolean getDirectResponse()
public int getDataLength()
getDataLength in interface INettyTuple<Map<String,Object>>Copyright © 2023. All rights reserved.