Class MCRJerseyBaseFeature

java.lang.Object
org.mycore.frontend.jersey.feature.MCRJerseyBaseFeature
All Implemented Interfaces:
jakarta.ws.rs.container.DynamicFeature
Direct Known Subclasses:
MCRJerseyDefaultFeature

public abstract class MCRJerseyBaseFeature extends Object implements jakarta.ws.rs.container.DynamicFeature
  • Constructor Details

    • MCRJerseyBaseFeature

      public MCRJerseyBaseFeature()
  • Method Details

    • isStaticContent

      protected boolean isStaticContent(Class<?> resourceClass, Method resourceMethod)
      Checks if the class/method is annotated by MCRStaticContent.
      Parameters:
      resourceClass - the class to check
      resourceMethod - the method to check
      Returns:
      true if one of both is annotated as static
    • getPackages

      protected List<String> getPackages()
      Returns a list of packages which will be used to scan for components.
      Returns:
      a list of java package names
    • addFilter

      protected void addFilter(jakarta.ws.rs.core.FeatureContext context, MCRRestrictedAccess restrictedAccess)
      Register a MCRRestrictedAccess filter to the context.
      Parameters:
      context - the context to add the restricted access too
      restrictedAccess - the restricted access