class OORestService extends RestService
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<? extends _BaseObject_> |
cls
The target class.
|
private java.lang.reflect.Method |
method
The target method.
|
private LegacyService |
parent
The annotation at the REST resource (i.e.
|
cfg, definitionParameters, key, ls, serviceSignature, timeout
Constructor and Description |
---|
OORestService(LegacyService ls,
java.lang.Class<? extends _BaseObject_> cls,
LegacyService mls,
java.lang.reflect.Method m,
ServiceKey key,
int timeout)
Initialize with the details for a OO method invocation.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExecutionMode()
Get the execution mode for this service.
|
java.lang.Object |
invoke(AppServerHelper helper,
java.lang.String token,
java.lang.Object[] args)
Invoke this service.
|
buildDefinitionParameters, getDefinitionParameters, getParser, getProcedureHandle, getRequestID, getSerializer, isPersistent, nextRequestId, reset, resolveModes
private final java.lang.Class<? extends _BaseObject_> cls
private final java.lang.reflect.Method method
private final LegacyService parent
public OORestService(LegacyService ls, java.lang.Class<? extends _BaseObject_> cls, LegacyService mls, java.lang.reflect.Method m, ServiceKey key, int timeout)
ls
- The annotation at the Java class (defining the resource).cls
- The class reference.mls
- The annotation at the Java method (defining the operation).m
- The associated method.key
- The service key.timeout
- The invocation timeout.public java.lang.String getExecutionMode()
getExecutionMode
in class RestService
public java.lang.Object invoke(AppServerHelper helper, java.lang.String token, java.lang.Object[] args)
invoke
in class RestService
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.