public class ParamInfo extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ParamInfo.ParamRequestKind
Type of the parameter.
|
Modifier and Type | Method and Description |
---|---|
static ParamInfo |
fromPathVariable(String javaParamName,
String javaTypeName,
String pathVariableName,
boolean required,
String defaultValue,
String javaDoc) |
static ParamInfo |
fromRequestHeader(String javaParamName,
String javaTypeName,
String requestHeaderName,
boolean required,
String defaultValue,
String javaDoc) |
static ParamInfo |
fromRequestParam(String javaParamName,
String javaTypeName,
String queryParamName,
boolean required,
String defaultValue,
String javaDoc) |
String |
getDefaultValue()
NOTE: always null for path-variable.
|
String |
getJavaDoc() |
String |
getJavaParamName() |
String |
getJavaTypeName() |
ParamInfo.ParamRequestKind |
getRequestKind() |
String |
getRequestName()
One of this, path-variable, or header-name will not be null.
|
boolean |
isRequired()
NOTE: always true for path-variable.
|
public static ParamInfo fromRequestParam(String javaParamName, String javaTypeName, String queryParamName, boolean required, String defaultValue, String javaDoc)
public static ParamInfo fromPathVariable(String javaParamName, String javaTypeName, String pathVariableName, boolean required, String defaultValue, String javaDoc)
public static ParamInfo fromRequestHeader(String javaParamName, String javaTypeName, String requestHeaderName, boolean required, String defaultValue, String javaDoc)
public String getJavaParamName()
public String getJavaTypeName()
public ParamInfo.ParamRequestKind getRequestKind()
public String getRequestName()
public boolean isRequired()
public String getDefaultValue()
public String getJavaDoc()
This documentation content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.