public interface DlmsInvocationContext
public DataObject intercept(DlmsInvocationContext ctx) throws DlmsAccessException { ctx.get.. ... DataObject res = ctx.proceed(); ... return res; }
DlmsInterceptor
Modifier and Type | Interface and Description |
---|---|
static class |
DlmsInvocationContext.XDlmsServiceType
The invocation type (service).
|
Modifier and Type | Method and Description |
---|---|
CosemResourceDescriptor |
getCosemResourceDescriptor()
Get the COSEM resource descriptor.
|
java.lang.reflect.Member |
getMember()
The member either
Method or Field which is being accessed. |
java.lang.Object[] |
getParameters()
Get the parameters of the method which is going to be invoked.
|
SecuritySuite.SecurityPolicy |
getSecurityPolicy()
The policy in which the client is invoking the xDLMS service.
|
CosemInterfaceObject |
getTarget()
Get the target object of the xDLMS service invokation.
|
DlmsInvocationContext.XDlmsServiceType |
getXDlmsServiceType()
The type of invocation.
|
DataObject |
proceed()
Invoke the actual COSEM resource.
|
void |
setParameters(java.lang.Object[] params)
Change the parameter of the invokation.
|
CosemInterfaceObject getTarget()
java.lang.Object[] getParameters()
void setParameters(java.lang.Object[] params) throws java.lang.IllegalArgumentException
params
- the new parameters.java.lang.IllegalArgumentException
- if the new params don't match the type of the original method/field.CosemResourceDescriptor getCosemResourceDescriptor()
java.lang.reflect.Member getMember()
Method
or Field
which is being accessed.
NOTE: if getXDlmsServiceType() is DlmsInvocationContext.XDlmsServiceType.ACTION the member must be an Method.
DlmsInvocationContext.XDlmsServiceType getXDlmsServiceType()
SecuritySuite.SecurityPolicy getSecurityPolicy()
DataObject proceed() throws DlmsAccessException
NOTE: The result of the invocation must be returned at DlmsInterceptor.intercept(DlmsInvocationContext)
DlmsAccessException
- if the call of the method throws a DlmsAccessException
.