SERVICE
- is the generic type of the service interface
.public class GenericRemoteInvocationRpcCallHandler<SERVICE extends RemoteInvocationService> extends GenericRemoteInvocationCallHandler<GenericRemoteInvocationRpcCall>
GenericRemoteInvocationCallHandler
for an
GenericRemoteInvocationRpcCall
. It therefore contains a Method
of a
RemoteInvocationService
.Modifier and Type | Field and Description |
---|---|
private Method |
method |
private SERVICE |
serviceImplementation |
private Class<SERVICE> |
serviceInterface |
private int |
signature |
Modifier | Constructor and Description |
---|---|
|
GenericRemoteInvocationRpcCallHandler(Class<SERVICE> serviceInterface,
SERVICE serviceImplementation,
AbstractGenericRemoteInvocationService<?,?,?,?> genericService,
Method method)
The constructor.
|
private |
GenericRemoteInvocationRpcCallHandler(Class<SERVICE> serviceInterface,
SERVICE serviceImplementation,
AbstractGenericRemoteInvocationService<?,?,?,?> genericService,
Method method,
int signature)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Set<? extends javax.validation.ConstraintViolation<?>> |
doValidate(GenericRemoteInvocationRpcCall call)
Called from
GenericRemoteInvocationCallHandler.validate(RemoteInvocationCall) to delegate to JSR303 (javax.validation). |
String |
getId()
This method gets an identifier for this service-method.
|
static String |
getId(GenericRemoteInvocationRpcCall call)
This method gets an identifier for the method specified by the given
call . |
(package private) static String |
getId(String serviceName,
String methodName,
int signature)
This method gets an identifier for the method with the given parameters.
|
SERVICE |
getServiceImplementation() |
Class<SERVICE> |
getServiceInterface() |
Method |
getServiceMethod() |
int |
getSignature() |
Object |
invoke(GenericRemoteInvocationRpcCall call)
Invokes the given
RemoteInvocationCall . |
Serializable |
invoke(Serializable[] arguments)
|
getGenericService, handleConstraintViolations, isLogin, isSecured, toString, validate
private final Class<SERVICE extends RemoteInvocationService> serviceInterface
getServiceInterface()
private final SERVICE extends RemoteInvocationService serviceImplementation
getServiceImplementation()
private final Method method
getServiceMethod()
private final int signature
getSignature()
public GenericRemoteInvocationRpcCallHandler(Class<SERVICE> serviceInterface, SERVICE serviceImplementation, AbstractGenericRemoteInvocationService<?,?,?,?> genericService, Method method)
serviceInterface
- - see getServiceInterface()
.serviceImplementation
- - see getServiceImplementation()
.method
- - see getServiceMethod()
.genericService
- - see GenericRemoteInvocationCallHandler.getGenericService()
.private GenericRemoteInvocationRpcCallHandler(Class<SERVICE> serviceInterface, SERVICE serviceImplementation, AbstractGenericRemoteInvocationService<?,?,?,?> genericService, Method method, int signature)
serviceInterface
- - see getServiceInterface()
.serviceImplementation
- - see getServiceImplementation()
.method
- - see getServiceMethod()
.genericService
- - see GenericRemoteInvocationCallHandler.getGenericService()
.signature
- - see getSignature()
.public SERVICE getServiceImplementation()
public Method getServiceMethod()
getServiceMethod
in class GenericRemoteInvocationCallHandler<GenericRemoteInvocationRpcCall>
public int getSignature()
signature
.public String getId()
getId
in interface AttributeReadId<String>
getId
in class GenericRemoteInvocationCallHandler<GenericRemoteInvocationRpcCall>
public static String getId(GenericRemoteInvocationRpcCall call)
call
.call
- is the GenericRemoteInvocationRpcCall
.static String getId(String serviceName, String methodName, int signature)
serviceName
- is the name
of the RemoteInvocationService
.methodName
- is the method name
.signature
- is the signature
.public Serializable invoke(Serializable[] arguments) throws Throwable
arguments
- are the method parameters.Throwable
- in case of any error.protected Set<? extends javax.validation.ConstraintViolation<?>> doValidate(GenericRemoteInvocationRpcCall call)
GenericRemoteInvocationCallHandler.validate(RemoteInvocationCall)
to delegate to JSR303 (javax.validation).doValidate
in class GenericRemoteInvocationCallHandler<GenericRemoteInvocationRpcCall>
call
- is the RemoteInvocationCall
to validate.Set
of ConstraintViolation
s. Will be empty
if valid.public Object invoke(GenericRemoteInvocationRpcCall call) throws Exception
RemoteInvocationCall
.invoke
in class GenericRemoteInvocationCallHandler<GenericRemoteInvocationRpcCall>
call
- is the RemoteInvocationCall
to execute.Exception
- if anything goes wrong.Copyright © 2001–2016 mmm-Team. All rights reserved.