public class RestOperation
extends java.lang.Object
This instance is the source for creating the LegacyService
annotations.
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
consumes
resourceModel.xml prgs:resource/prgs:operation[consumes]
|
(package private) boolean |
isClass |
(package private) java.util.List<RestLegacyParameter> |
legacyParams
wsad:ProcDetail/wsad:Parameter
|
(package private) java.util.List<RestParameterMapping> |
mappings
The mappings (to the request/response) for this operation's legacy parameters.
|
(package private) java.lang.String |
methodName
The name of the target method (in case of class).
|
(package private) java.lang.String |
name
resourceModel.xml prgs:resource/prgs:operation[name]
|
(package private) java.util.Map<java.lang.String,RestParameter> |
parameters
resourceModel.xml prgs:resource/prgs:operation/prgs:param
|
(package private) java.lang.String |
produces
resourceModel.xml prgs:resource/prgs:operation[produces]
|
(package private) RestResource |
rest
Back-reference to the
prgs:resource where this operation appears. |
(package private) RestLegacyParameter |
retVal
wsad:ProcDetail/wsad:ReturnValue
|
(package private) java.lang.String |
source
.restoe wsad:Operation - wsad:ProcPath/wsad:Name.wsad:Proc
|
(package private) java.lang.String |
verb
resourceModel.xml prgs:resource/prgs:operation[verb]
|
Constructor and Description |
---|
RestOperation(java.lang.String name,
java.lang.String verb,
java.lang.String consumes,
java.lang.String produces) |
Modifier and Type | Method and Description |
---|---|
RestParameterMappingRule |
findParameterMapping(RestLegacyParameter param)
Find a mapping rule for the specified legacy parameter.
|
final java.lang.String name
final java.lang.String verb
final java.lang.String consumes
final java.lang.String produces
final java.util.Map<java.lang.String,RestParameter> parameters
RestResource rest
prgs:resource
where this operation appears.final java.util.List<RestParameterMapping> mappings
java.lang.String source
boolean isClass
java.lang.String methodName
RestLegacyParameter retVal
java.util.List<RestLegacyParameter> legacyParams
public RestOperation(java.lang.String name, java.lang.String verb, java.lang.String consumes, java.lang.String produces)
public RestParameterMappingRule findParameterMapping(RestLegacyParameter param)
This rule will be used to identify what to use as the source (for INPUT) and what to use as the target (for OUTPUT).
param
- The legacy parameter to match.