public abstract class PoolableResourceClient extends ResourceClient
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CONFIG_CLIENT_AUTH_KEY |
protected static String |
CONFIG_CONN_ROUTE_KEY |
protected static String |
CONFIG_CONN_TIMEOUT |
protected static String |
CONFIG_CONN_TOTAL_KEY |
protected static String |
CONFIG_CONN_TTL_KEY |
protected static String |
CONFIG_KEYSTORE_KEY |
protected static String |
CONFIG_KEYSTORE_PASS_KEY |
protected static String |
CONFIG_PORT_KEY |
protected static String |
CONFIG_SELFSIGNED |
protected static String |
CONFIG_SO_TIMEOUT |
protected static String |
CONFIG_SSL_KEY |
protected static String |
CONFIG_TRUSTSTORE_KEY |
protected static String |
CONFIG_TRUSTSTORE_PASS_KEY |
protected boolean |
isSSL |
protected static org.slf4j.Logger |
log |
protected int |
port |
protected SharedSecret |
ss |
LOGIN_TOKEN| Constructor and Description |
|---|
PoolableResourceClient() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(Map<String,Object> config)
Provide the desired configurations.
|
protected void |
bindSharedSecret(SharedSecret service) |
protected org.apache.http.client.HttpClient |
client() |
protected void |
deactivate()
Shut down the connection manager.
|
LoginContext |
login() |
protected void |
modified(Map<String,Object> config) |
protected void |
unbindSharedSecret(SharedSecret service) |
protected static final org.slf4j.Logger log
@Property(boolValue=true) protected static final String CONFIG_SSL_KEY
@Property(intValue=8443) protected static final String CONFIG_PORT_KEY
@Property(value="/opt/sdn/admin/keystore") protected static final String CONFIG_KEYSTORE_KEY
@Property(value="ENC()") protected static final String CONFIG_KEYSTORE_PASS_KEY
@Property(value="/opt/sdn/admin/truststore") protected static final String CONFIG_TRUSTSTORE_KEY
@Property(value="ENC()") protected static final String CONFIG_TRUSTSTORE_PASS_KEY
@Property(boolValue=false) protected static final String CONFIG_CLIENT_AUTH_KEY
@Property(boolValue=false) protected static final String CONFIG_SELFSIGNED
@Property(intValue=5000) protected static final String CONFIG_CONN_TTL_KEY
@Property(intValue=20) protected static final String CONFIG_CONN_TOTAL_KEY
@Property(intValue=2) protected static final String CONFIG_CONN_ROUTE_KEY
@Property(intValue=0) protected static final String CONFIG_CONN_TIMEOUT
@Property(intValue=120000) protected static final String CONFIG_SO_TIMEOUT
protected boolean isSSL
protected int port
@Reference(name="SharedSecret",
policy=DYNAMIC,
cardinality=MANDATORY_UNARY)
protected volatile SharedSecret ss
protected void bindSharedSecret(SharedSecret service)
protected void unbindSharedSecret(SharedSecret service)
public LoginContext login()
@Activate protected void activate(Map<String,Object> config)
config - desired configuration@Deactivate protected void deactivate()
protected org.apache.http.client.HttpClient client()
client in class ResourceClientCopyright © 2014. All Rights Reserved.