Class Callbacks


  • public class Callbacks
    extends java.lang.Object
    Wrapper around the callbacks provided by the Orthanc SDK.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  Callbacks.OnChange
      Callback to react to changes.
      static interface  Callbacks.OnRestRequest
      Callback to serve a resource in the REST API.
    • Constructor Summary

      Constructors 
      Constructor Description
      Callbacks()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void register​(Callbacks.OnChange callback)
      Register a callback to monitor changes.
      static void register​(java.lang.String pathRegularExpression, Callbacks.OnRestRequest callback)
      Register a REST callback.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Callbacks

        public Callbacks()
    • Method Detail

      • register

        public static void register​(Callbacks.OnChange callback)
        Register a callback to monitor changes.
        Parameters:
        callback - The callback to handle the change.
      • register

        public static void register​(java.lang.String pathRegularExpression,
                                    Callbacks.OnRestRequest callback)
        Register a REST callback. Note that the callback will NOT be invoked in mutual exclusion.
        Parameters:
        pathRegularExpression - Regular expression for the URI. May contain groups.
        callback - The callback to handle the REST call.