Package fr.gouv.vitam.storage.engine.server.rest.writeprotection

# Class WriteProtectionScanner

java.lang.Object
fr.gouv.vitam.storage.engine.server.rest.writeprotection.WriteProtectionScanner

All Implemented Interfaces:
  `jakarta.ws.rs.container.DynamicFeature`

@PreMatching @Priority(3000) public class WriteProtectionScanner extends Object implements jakarta.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.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `WriteProtectionScanner(AlertService alertService, boolean isReadOnly)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `configure(jakarta.ws.rs.container.ResourceInfo resourceInfo, jakarta.ws.rs.core.FeatureContext context)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### WriteProtectionScanner

    public WriteProtectionScanner(AlertService alertService, boolean isReadOnly)

- ## Method Details

  - ### configure

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