Class WriteProtectionScanner

  • All Implemented Interfaces:
    javax.ws.rs.container.DynamicFeature

    @PreMatching
    @Priority(3000)
    public class WriteProtectionScanner
    extends java.lang.Object
    implements javax.ws.rs.container.DynamicFeature
    Scanner that prevents Write APIs to be invoked on secondary site. All resource methods must be annotated with the WriteProtection annotation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configure​(javax.ws.rs.container.ResourceInfo resourceInfo, javax.ws.rs.core.FeatureContext context)  
      • Methods inherited from class java.lang.Object

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

      • WriteProtectionScanner

        public WriteProtectionScanner​(AlertService alertService,
                                      boolean isReadOnly)
    • Method Detail

      • configure

        public void configure​(javax.ws.rs.container.ResourceInfo resourceInfo,
                              javax.ws.rs.core.FeatureContext context)
        Specified by:
        configure in interface javax.ws.rs.container.DynamicFeature