Class ConsoleOperations

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

public final class ConsoleOperations extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    createFeature(org.ff4j.FF4j ff4j, jakarta.servlet.http.HttpServletRequest req)
    User action to create a new Feature.
    static void
    createProperty(org.ff4j.FF4j ff4j, jakarta.servlet.http.HttpServletRequest req)
    Create new property in store.
    static void
    exportConfiguration(org.ff4j.FF4j ff4j, jakarta.servlet.http.HttpServletResponse res, String format)
    Export configuration.
    static void
    exportFile(org.ff4j.FF4j ff4j, jakarta.servlet.http.HttpServletResponse res)
    Build Http response when invoking export features.
    static void
    importFile(org.ff4j.FF4j ff4j, InputStream in)
    Deprecated.
    static void
    importFile(org.ff4j.FF4j ff4j, org.ff4j.conf.FF4jConfiguration config)
    User action to import Features from a properties files.
    static void
    updateFeatureDescription(org.ff4j.FF4j ff4j, jakarta.servlet.http.HttpServletRequest req)
    User action to update a target feature's description.
    static void
    updateProperty(org.ff4j.FF4j ff4j, jakarta.servlet.http.HttpServletRequest req)
    Sample Element should be updated like name, description, value

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • createFeature

      public static void createFeature(org.ff4j.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(org.ff4j.FF4j ff4j, jakarta.servlet.http.HttpServletRequest req)
      Sample Element should be updated like name, description, value
      Parameters:
      ff4j -
      req -
    • createProperty

      public static void createProperty(org.ff4j.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(org.ff4j.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(org.ff4j.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(org.ff4j.FF4j ff4j, org.ff4j.conf.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(org.ff4j.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(org.ff4j.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