|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.lib.wsrs.Parameters
@InterfaceAudience.Private public class Parameters
Class that contains all parsed JAX-RS parameters.
Instances are created by theParametersProvider class.
| Constructor Summary | |
|---|---|
Parameters(Map<String,List<Param<?>>> params)
Constructor that receives the request parsed parameters. |
|
| Method Summary | ||
|---|---|---|
|
get(String name,
Class<T> klass)
Returns the value of a request parsed parameter. |
|
|
getValues(String name,
Class<T> klass)
Returns the values of a request parsed parameter. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Parameters(Map<String,List<Param<?>>> params)
params - the request parsed parameters.| Method Detail |
|---|
public <V,T extends Param<V>> V get(String name,
Class<T> klass)
name - parameter name.klass - class of the parameter, used for value casting.
public <V,T extends Param<V>> List<V> getValues(String name,
Class<T> klass)
name - parameter name.klass - class of the parameter, used for value casting.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||