org.elasticsearch.rest.support
Class AbstractRestRequest

java.lang.Object
  extended by org.elasticsearch.rest.support.AbstractRestRequest
All Implemented Interfaces:
ToXContent.Params, RestRequest
Direct Known Subclasses:
NettyHttpRequest

public abstract class AbstractRestRequest
extends Object
implements RestRequest


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.rest.RestRequest
RestRequest.Method
 
Constructor Summary
AbstractRestRequest()
           
 
Method Summary
 boolean paramAsBoolean(String key, boolean defaultValue)
           
 Boolean paramAsBooleanOptional(String key, Boolean defaultValue)
           
 float paramAsFloat(String key, float defaultValue)
           
 int paramAsInt(String key, int defaultValue)
           
 long paramAsLong(String key, long defaultValue)
           
 ByteSizeValue paramAsSize(String key, ByteSizeValue defaultValue)
           
 String[] paramAsStringArray(String key, String[] defaultValue)
           
 TimeValue paramAsTime(String key, TimeValue defaultValue)
           
 String path()
          The path part of the URI (without the query string), decoded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.rest.RestRequest
content, contentUnsafe, hasContent, hasParam, header, method, param, params, rawPath, uri
 
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent.Params
param
 

Constructor Detail

AbstractRestRequest

public AbstractRestRequest()
Method Detail

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.