public class LensResourceMethod extends Object
Constructor and Description |
---|
LensResourceMethod(org.glassfish.jersey.server.model.ResourceMethod resourceMethod) |
Modifier and Type | Method and Description |
---|---|
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
|
@ConstructorProperties(value="resourceMethod") @Generated(value="lombok") public LensResourceMethod(@NonNull org.glassfish.jersey.server.model.ResourceMethod resourceMethod)
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 parametersDefaultValue
annotation on the handler methodCopyright © 2014–2015 Apache Software Foundation. All rights reserved.