org.elasticsearch.rest.support
Class AbstractRestRequest
java.lang.Object
org.elasticsearch.rest.support.AbstractRestRequest
- All Implemented Interfaces:
- ToXContent.Params, RestRequest
- Direct Known Subclasses:
- NettyHttpRequest
public abstract class AbstractRestRequest
- extends Object
- implements RestRequest
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRestRequest
public AbstractRestRequest()
path
public final String path()
- Description copied from interface:
RestRequest
- The path part of the URI (without the query string), decoded.
- Specified by:
path
in interface RestRequest
paramAsFloat
public float paramAsFloat(String key,
float defaultValue)
- Specified by:
paramAsFloat
in interface RestRequest
paramAsInt
public int paramAsInt(String key,
int defaultValue)
- Specified by:
paramAsInt
in interface RestRequest
paramAsLong
public long paramAsLong(String key,
long defaultValue)
- Specified by:
paramAsLong
in interface RestRequest
paramAsBoolean
public boolean paramAsBoolean(String key,
boolean defaultValue)
- Specified by:
paramAsBoolean
in interface ToXContent.Params
- Specified by:
paramAsBoolean
in interface RestRequest
paramAsBooleanOptional
public Boolean paramAsBooleanOptional(String key,
Boolean defaultValue)
- Specified by:
paramAsBooleanOptional
in interface ToXContent.Params
- Specified by:
paramAsBooleanOptional
in interface RestRequest
paramAsTime
public TimeValue paramAsTime(String key,
TimeValue defaultValue)
- Specified by:
paramAsTime
in interface RestRequest
paramAsSize
public ByteSizeValue paramAsSize(String key,
ByteSizeValue defaultValue)
- Specified by:
paramAsSize
in interface RestRequest
paramAsStringArray
public String[] paramAsStringArray(String key,
String[] defaultValue)
- Specified by:
paramAsStringArray
in interface RestRequest
Copyright © 2009-2012. All Rights Reserved.