public class NettyInteractiveRequest extends Object implements InteractiveRequest, WebSocketClientRequest
| Modifier and Type | Field and Description |
|---|---|
protected org.elasticsearch.common.xcontent.XContentBuilder |
builder |
protected Map<String,Object> |
data |
protected String |
type |
| Constructor and Description |
|---|
NettyInteractiveRequest() |
NettyInteractiveRequest(Map<String,Object> data) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
asMap() |
NettyInteractiveRequest |
data(org.elasticsearch.common.xcontent.XContentBuilder builder) |
boolean |
hasParam(String key) |
Object |
param(String key) |
boolean |
paramAsBoolean(String key) |
boolean |
paramAsBoolean(String key,
boolean defaultValue) |
long |
paramAsLong(String key) |
long |
paramAsLong(String key,
long defaultValue) |
String |
paramAsString(String key) |
String |
paramAsString(String key,
String defaultValue) |
org.elasticsearch.common.unit.TimeValue |
paramAsTime(String key) |
org.elasticsearch.common.unit.TimeValue |
paramAsTime(String key,
org.elasticsearch.common.unit.TimeValue defaultValue) |
void |
send(WebSocketClient client) |
NettyInteractiveRequest |
type(String type) |
protected org.elasticsearch.common.xcontent.XContentBuilder builder
public NettyInteractiveRequest()
public NettyInteractiveRequest(Map<String,Object> data)
public NettyInteractiveRequest type(String type)
type in interface WebSocketClientRequestpublic NettyInteractiveRequest data(org.elasticsearch.common.xcontent.XContentBuilder builder)
data in interface WebSocketClientRequestpublic void send(WebSocketClient client) throws IOException
send in interface WebSocketClientRequestIOExceptionpublic boolean hasParam(String key)
hasParam in interface InteractiveRequestpublic Object param(String key)
param in interface InteractiveRequestpublic String paramAsString(String key)
paramAsString in interface InteractiveRequestpublic String paramAsString(String key, String defaultValue)
paramAsString in interface InteractiveRequestpublic long paramAsLong(String key)
paramAsLong in interface InteractiveRequestpublic long paramAsLong(String key, long defaultValue)
paramAsLong in interface InteractiveRequestpublic boolean paramAsBoolean(String key)
paramAsBoolean in interface InteractiveRequestpublic boolean paramAsBoolean(String key, boolean defaultValue)
paramAsBoolean in interface InteractiveRequestpublic org.elasticsearch.common.unit.TimeValue paramAsTime(String key)
paramAsTime in interface InteractiveRequestpublic org.elasticsearch.common.unit.TimeValue paramAsTime(String key, org.elasticsearch.common.unit.TimeValue defaultValue)
paramAsTime in interface InteractiveRequestCopyright © 2012–2014. All rights reserved.