public class PropertyStoreHttp
extends org.ff4j.property.store.AbstractPropertyStore
| Modifier and Type | Field and Description |
|---|---|
protected javax.ws.rs.client.Client |
jerseyClient
Jersey Client.
|
static String |
OCCURED |
| Constructor and Description |
|---|
PropertyStoreHttp()
Default construtor
|
PropertyStoreHttp(String rootApiUrl)
Initialization from URL.
|
PropertyStoreHttp(String rootApiUrl,
String apiKey)
Authentication through APIKEY.
|
PropertyStoreHttp(String rootApiUrl,
String username,
String password)
Authentication through login/password.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
buildAuthorization4ApiKey(String apiKey)
Build Authorization header for technical user.
|
static String |
buildAuthorization4UserName(String username,
String password)
Build Authorization header for final user.
|
void |
clear() |
<T> void |
createProperty(org.ff4j.property.Property<T> value) |
void |
createSchema() |
void |
deleteProperty(String name) |
boolean |
existProperty(String name) |
javax.ws.rs.client.Client |
getJerseyClient()
Initilialization of jersey.
|
Set<String> |
listPropertyNames() |
Map<String,org.ff4j.property.Property<?>> |
readAllProperties() |
org.ff4j.property.Property<?> |
readProperty(String name) |
public static final String OCCURED
protected javax.ws.rs.client.Client jerseyClient
public PropertyStoreHttp()
public PropertyStoreHttp(String rootApiUrl)
rootApiUrl - target root URLpublic PropertyStoreHttp(String rootApiUrl, String apiKey)
rootApiUrl - target urlapiKey - target apipublic javax.ws.rs.client.Client getJerseyClient()
public boolean existProperty(String name)
public <T> void createProperty(org.ff4j.property.Property<T> value)
public org.ff4j.property.Property<?> readProperty(String name)
public void deleteProperty(String name)
public void clear()
public void createSchema()
createSchema in interface org.ff4j.property.store.PropertyStorecreateSchema in class org.ff4j.property.store.AbstractPropertyStorepublic static String buildAuthorization4ApiKey(String apiKey)
apiKey - target apiKeyCopyright © 2013–2022 FF4J. All rights reserved.