|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lens.server.model.LensResourceMethod
public class LensResourceMethod
Model object wrapping ResourceMethod. Adds utility methods.
| Constructor Summary | |
|---|---|
LensResourceMethod()
|
|
| Method Summary | |
|---|---|
String |
getDefaultValueForParam(String paramName)
Extract default value of a parameter from the parameter annotations of the handler method |
com.google.common.base.Optional<String> |
getMultiPurposeFormParam()
if handler method is annotated with MultiPurposeResource, extract
that and return MultiPurposeResource.formParamName() |
String |
name()
className.methodname.httpmethod |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LensResourceMethod()
| Method Detail |
|---|
public com.google.common.base.Optional<String> getMultiPurposeFormParam()
MultiPurposeResource, extract
that and return MultiPurposeResource.formParamName()
public String name()
public String getDefaultValueForParam(String paramName)
paramName - value of FormDataParam annotation on the handler
method. Which will be the name of the argument in the request parameters
DefaultValue annotation on the handler method
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||