@Deprecated public abstract class RestParam extends Object
Modifier | Constructor and Description |
---|---|
protected |
RestParam(RestParamType paramType,
String name,
Type type)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
forClass()
Deprecated.
Returns the parameter class type that this parameter resolver is meant for.
|
protected String |
getName()
Deprecated.
Returns the parameter name for this parameter as shown in the Swagger doc.
|
protected RestParamType |
getParamType()
Deprecated.
Returns the swagger parameter type for this parameter as shown in the Swagger doc.
|
Type |
getType()
Deprecated.
Returns the parameter class type.
|
abstract Object |
resolve(RestRequest req,
RestResponse res)
Deprecated.
Resolves the parameter object.
|
protected RestParam(RestParamType paramType, String name, Type type)
paramType
- The Swagger parameter type.name
- The parameter name.
Can be type
- The object type to convert the parameter to.public abstract Object resolve(RestRequest req, RestResponse res) throws Exception
req
- The rest request.res
- The rest response.Exception
protected Class<?> forClass()
Class
.protected RestParamType getParamType()
protected String getName()
Copyright © 2018 Apache. All rights reserved.