Interface DlmsInvocationContext


  • public interface DlmsInvocationContext
    Exposes context information about the intercepted invocation and operations that enable interceptor methods to control the behavior of the invocation of an xDLMS action/ COSEM attribute or method access.
     
      public DataObject intercept(DlmsInvocationContext ctx) throws DlmsAccessException {
         ctx.get..
         ...
     
         DataObject res = ctx.proceed();
     
         ...
         return res;
      }
     
    See Also:
    DlmsInterceptor
    • Method Detail

      • getTarget

        CosemInterfaceObject getTarget()
        Get the target object of the xDLMS service invokation.
        Returns:
        the target class.
      • getParameters

        java.lang.Object[] getParameters()
        Get the parameters of the method which is going to be invoked. This may be empty in the case of a GET invocation.
        Returns:
        the parameters of the access.
      • setParameters

        void setParameters​(java.lang.Object[] params)
        Change the parameter of the invocation.
        Parameters:
        params - the new parameters.
        Throws:
        java.lang.IllegalArgumentException - if the new params don't match the type of the original method/field.
      • getCosemResourceDescriptor

        CosemResourceDescriptor getCosemResourceDescriptor()
        Get the COSEM resource descriptor.
        Returns:
        the resource descriptor.
      • getSecurityPolicy

        SecuritySuite.SecurityPolicy getSecurityPolicy()
        The policy in which the client is invoking the xDLMS service.
        Returns:
        the security policy.