public class GenericRemoteInvocationCommandCallHandler extends GenericRemoteInvocationCallHandler<RemoteInvocationCommand<?>>
GenericRemoteInvocationCallHandler for a
RemoteInvocationCommand. It simply delegates to a RemoteInvocationCommandHandler.| Modifier and Type | Field and Description |
|---|---|
private Method |
handleMethod
The implementation
RemoteInvocationCommandHandler.handle(RemoteInvocationCommand) Method. |
private RemoteInvocationCommandHandler<?,?> |
handler
The adapted
RemoteInvocationCommandHandler. |
| Constructor and Description |
|---|
GenericRemoteInvocationCommandCallHandler(AbstractGenericRemoteInvocationService<?,?,?,?> genericService,
RemoteInvocationCommandHandler<?,?> handler)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private Method |
detectHandleMethod(RemoteInvocationCommandHandler<?,?> commandHandler)
Detects the implementation of
RemoteInvocationCommandHandler.handle(RemoteInvocationCommand). |
protected Set<? extends javax.validation.ConstraintViolation<?>> |
doValidate(RemoteInvocationCommand<?> command)
Called from
GenericRemoteInvocationCallHandler.validate(RemoteInvocationCall) to delegate to JSR303 (javax.validation). |
protected Method |
getServiceMethod() |
Serializable |
invoke(RemoteInvocationCommand<?> command)
Invokes the given
RemoteInvocationCall. |
getGenericService, getId, handleConstraintViolations, isLogin, isSecured, toString, validateprivate final RemoteInvocationCommandHandler<?,?> handler
RemoteInvocationCommandHandler.private Method handleMethod
RemoteInvocationCommandHandler.handle(RemoteInvocationCommand) Method.public GenericRemoteInvocationCommandCallHandler(AbstractGenericRemoteInvocationService<?,?,?,?> genericService, RemoteInvocationCommandHandler<?,?> handler)
genericService - - see GenericRemoteInvocationCallHandler.getGenericService().handler - is the actual RemoteInvocationCommandHandler to adapt.protected Method getServiceMethod()
getServiceMethod in class GenericRemoteInvocationCallHandler<RemoteInvocationCommand<?>>Method of the remote invocation.private Method detectHandleMethod(RemoteInvocationCommandHandler<?,?> commandHandler)
RemoteInvocationCommandHandler.handle(RemoteInvocationCommand).commandHandler - is the RemoteInvocationCommandHandler implementation instance.Method.public Serializable invoke(RemoteInvocationCommand<?> command) throws Exception
RemoteInvocationCall.invoke in class GenericRemoteInvocationCallHandler<RemoteInvocationCommand<?>>command - is the RemoteInvocationCall to execute.Exception - if anything goes wrong.protected Set<? extends javax.validation.ConstraintViolation<?>> doValidate(RemoteInvocationCommand<?> command)
GenericRemoteInvocationCallHandler.validate(RemoteInvocationCall) to delegate to JSR303 (javax.validation).doValidate in class GenericRemoteInvocationCallHandler<RemoteInvocationCommand<?>>command - is the RemoteInvocationCall to validate.Set of ConstraintViolations. Will be empty if valid.Copyright © 2001–2016 mmm-Team. All rights reserved.