public abstract class IELegacyService extends ProgRestService
Modifier and Type | Field and Description |
---|---|
protected boolean |
function
Flag identifying if we are invoking a function.
|
protected java.lang.String |
iename
The internal entry name.
|
protected LegacyService |
parent
The annotation at the service resource (i.e.
|
agentId, pname, resourceId
cfg, definitionParameters, key, ls, serviceSignature, timeout
Constructor and Description |
---|
IELegacyService(LegacyService ls,
java.lang.String pname,
LegacyService iels,
InternalEntry ie,
boolean function,
ServiceKey key,
int timeout)
Initialize with the details for an internal entry invocation.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExecutionMode()
Get the execution mode for this service.
|
protected java.util.List<Parameter> |
getParameters()
Get the
Parameter s as they are defined at the internal entry. |
abstract java.lang.Object |
invoke(AppServerHelper helper,
java.lang.String token,
java.lang.Object[] args)
Invoke this service.
|
reset, setResourceId
buildDefinitionParameters, getDefinitionParameters, getParser, getProcedureHandle, getRequestID, getSerializer, isPersistent, nextRequestId, resolveModes
protected final java.lang.String iename
protected final boolean function
protected final LegacyService parent
public IELegacyService(LegacyService ls, java.lang.String pname, LegacyService iels, InternalEntry ie, boolean function, ServiceKey key, int timeout)
ls
- The annotation at the Java class (defining the resource).pname
- The external program name.iels
- The annotation at the Java method (defining the operation).ie
- The target InternalEntry
for this service.function
- Flag identifying if we are invoking a function.key
- The service key.timeout
- The invocation timeout.public abstract java.lang.Object invoke(AppServerHelper helper, java.lang.String token, java.lang.Object[] args)
invoke
in class ProgRestService
helper
- The appserver helper used to execute the requests.token
- When not null, it represents the token of a FWD context created for an authenticated and
authorized web service call. The API call will be performed in that context.args
- The arguments.public java.lang.String getExecutionMode()
getExecutionMode
in class RestService
protected java.util.List<Parameter> getParameters()
Parameter
s as they are defined at the internal entry.getParameters
in class ProgRestService