Class ConsoleOperations

java.lang.Object
org.ff4j.web.embedded.ConsoleOperations

public final class ConsoleOperations extends Object
  • Method Details

    • createFeature

      public static void createFeature(FF4j ff4j, jakarta.servlet.http.HttpServletRequest req)
      User action to create a new Feature.
      Parameters:
      req - http request containing operation parameters
    • updateProperty

      public static void updateProperty(FF4j ff4j, jakarta.servlet.http.HttpServletRequest req)
      Sample Element should be updated like name, description, value
      Parameters:
      ff4j -
      req -
    • createProperty

      public static void createProperty(FF4j ff4j, jakarta.servlet.http.HttpServletRequest req)
      Create new property in store.
      Parameters:
      ff4j - current ff4j instance.
      req - current http request
    • updateFeatureDescription

      public static void updateFeatureDescription(FF4j ff4j, jakarta.servlet.http.HttpServletRequest req)
      User action to update a target feature's description.
      Parameters:
      req - http request containing operation parameters
    • importFile

      @Deprecated public static void importFile(FF4j ff4j, InputStream in) throws IOException
      Deprecated.
      Please use importFile(FF4j ff4j, FF4jConfiguration config) and get a FF4jConfiguration with a FF4jConfigurationParser: - XmlParser : new XmlParser().parseConfigurationFile(InputStream) - YamlParser - PropertiesParser
      Throws:
      IOException
    • importFile

      public static void importFile(FF4j ff4j, FF4jConfiguration config) throws IOException
      User action to import Features from a properties files.
      Parameters:
      in - inpustream from configuration file
      Throws:
      IOException - Error raised if the configuration cannot be read
    • exportConfiguration

      public static void exportConfiguration(FF4j ff4j, jakarta.servlet.http.HttpServletResponse res, String format) throws IOException
      Export configuration.
      Parameters:
      ff4j - feature flags for java
      res - http response
      format - format
      Throws:
      IOException - error occured when exporting
    • exportFile

      public static void exportFile(FF4j ff4j, jakarta.servlet.http.HttpServletResponse res) throws IOException
      Build Http response when invoking export features.
      Parameters:
      res - http response
      Throws:
      IOException - error when building response