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 |
exportFile(FF4j ff4j,
javax.servlet.http.HttpServletResponse res)
Build Http response when invoking export features.
|
static void |
importFile(FF4j ff4j,
InputStream in)
User action to import Features from a properties files.
|
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 parameterspublic static void importFile(FF4j ff4j, InputStream in) throws IOException
in - inpustream from configuration fileIOException - Error raised if the configuration cannot be readpublic static void exportFile(FF4j ff4j, javax.servlet.http.HttpServletResponse res) throws IOException
res - http responseIOException - error when building responseCopyright © 2013–2019 FF4J. All rights reserved.