public class FeaturesResource extends java.lang.Object implements FF4jWebConstants
RemoteHttpFeatureStore to perform operations upon features. Call are done though http so
please consider to use some cache to limitLOCATION, OPERATION_ADDGROUP, OPERATION_DISABLE, OPERATION_ENABLE, OPERATION_FLIP, OPERATION_GRANTROLE, OPERATION_REMOVEGROUP, OPERATION_REMOVEROLE, POST_PARAMNAME_CUSTOM_PREFIX, POST_PARAMNAME_FEATURE_UID, POST_PARAMNAME_FLIPSTRATEGY, POST_PARAMNAME_GROUPNAME, POST_PARAMNAME_ROLENAME, RESOURCE_FEATURES, RESOURCE_GROUPS, RESOURCE_MONITORING, RESOURCE_STORE| Constructor and Description |
|---|
FeaturesResource()
Defaut constructor.
|
FeaturesResource(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
FeatureStore store)
Constructor by Parent resource
|
| Modifier and Type | Method and Description |
|---|---|
FeatureResource |
getFeature(java.lang.String uid)
Access
FeatureResource from path pattern |
FeatureStore |
getStore()
Getter accessor for attribute 'ff4j'.
|
javax.ws.rs.core.Response |
readAll()
Allows to retrieve feature by its id.
|
void |
setStore(FeatureStore store)
Setter accessor for attribute 'store'.
|
public FeaturesResource()
public FeaturesResource(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
FeatureStore store)
uriInfo - current uriInforequest - current requeststore - current storepublic FeatureResource getFeature(java.lang.String uid)
FeatureResource from path patternuid - target identifierpublic javax.ws.rs.core.Response readAll()
featId - target feature identifierpublic FeatureStore getStore()
public void setStore(FeatureStore store)
store - new value for 'store 'Copyright © 2013-2014 Ff4J. All Rights Reserved.