public final class ConsoleOperations extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
createFeature(FF4j ff4j,
javax.servlet.http.HttpServletRequest req)
User action to create a new Feature.
|
static void |
createProperty(FF4j ff4j,
javax.servlet.http.HttpServletRequest req)
Create new property in store.
|
static void |
exportConfiguration(FF4j ff4j,
javax.servlet.http.HttpServletResponse res,
String format)
Export configuration.
|
static void |
exportFile(FF4j ff4j,
javax.servlet.http.HttpServletResponse res)
Build Http response when invoking export features.
|
static void |
importFile(FF4j ff4j,
FF4jConfiguration config)
User action to import Features from a properties files.
|
static void |
importFile(FF4j ff4j,
InputStream in)
Deprecated.
|
static void |
updateFeatureDescription(FF4j ff4j,
javax.servlet.http.HttpServletRequest req)
User action to update a target feature's description.
|
static void |
updateProperty(FF4j ff4j,
javax.servlet.http.HttpServletRequest req)
Sample Element should be updated like name, description, value
|
public static void createFeature(FF4j ff4j, javax.servlet.http.HttpServletRequest req)
req - http request containing operation parameterspublic static void updateProperty(FF4j ff4j, javax.servlet.http.HttpServletRequest req)
ff4j - req - public static void createProperty(FF4j ff4j, javax.servlet.http.HttpServletRequest req)
ff4j - current ff4j instance.req - current http requestpublic static void updateFeatureDescription(FF4j ff4j, javax.servlet.http.HttpServletRequest req)
req - http request containing operation parameters@Deprecated public static void importFile(FF4j ff4j, InputStream in) throws IOException
FF4jConfiguration with a FF4jConfigurationParser:
- XmlParser : new XmlParser().parseConfigurationFile(InputStream)
- YamlParser
- PropertiesParserIOExceptionpublic static void importFile(FF4j ff4j, FF4jConfiguration config) throws IOException
in - inpustream from configuration fileIOException - Error raised if the configuration cannot be readpublic static void exportConfiguration(FF4j ff4j, javax.servlet.http.HttpServletResponse res, String format) throws IOException
ff4j - feature flags for javares - http responseformat - formatIOException - error occured when exportingpublic static void exportFile(FF4j ff4j, javax.servlet.http.HttpServletResponse res) throws IOException
res - http responseIOException - error when building responseCopyright © 2013–2021 FF4J. All rights reserved.