public class RestconfClientImpl extends Object implements org.opendaylight.yangtools.restconf.client.api.RestconfClientContext, org.opendaylight.yangtools.yang.model.api.SchemaContextListener
| Constructor and Description |
|---|
RestconfClientImpl(URL url,
org.opendaylight.yangtools.yang.model.api.SchemaContextHolder schemaContextHolder) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected String |
constructPath(String path) |
protected <T> com.google.common.util.concurrent.ListenableFuture<T> |
delete(String path,
com.google.common.base.Function<com.sun.jersey.api.client.ClientResponse,T> processingFunction) |
protected <T> com.google.common.util.concurrent.ListenableFuture<T> |
delete(String path,
String mediaType,
com.google.common.base.Function<com.sun.jersey.api.client.ClientResponse,T> processingFunction) |
protected <T> com.google.common.util.concurrent.ListenableFuture<T> |
get(String path,
com.google.common.base.Function<com.sun.jersey.api.client.ClientResponse,T> processingFunction) |
protected <T> com.google.common.util.concurrent.ListenableFuture<T> |
get(String path,
String mediaType,
com.google.common.base.Function<com.sun.jersey.api.client.ClientResponse,T> processingFunction) |
com.google.common.util.concurrent.ListenableFuture<Set<org.opendaylight.yangtools.restconf.client.api.event.EventStreamInfo>> |
getAvailableEventStreams() |
org.opendaylight.yangtools.restconf.client.api.data.ConfigurationDatastore |
getConfigurationDatastore() |
protected URI |
getDefaultUri() |
org.opendaylight.yangtools.restconf.client.api.event.ListenableEventStreamContext |
getEventStreamContext(org.opendaylight.yangtools.restconf.client.api.event.EventStreamInfo info) |
protected org.opendaylight.yangtools.binding.data.codec.impl.BindingNormalizedNodeCodecRegistry |
getMappingService() |
org.opendaylight.yangtools.restconf.client.api.data.OperationalDatastore |
getOperationalDatastore() |
protected com.google.common.util.concurrent.ListeningExecutorService |
getPool() |
<T extends org.opendaylight.yangtools.yang.binding.RpcService> |
getRpcServiceContext(Class<T> rpcService) |
com.google.common.util.concurrent.ListenableFuture<Set<Class<? extends org.opendaylight.yangtools.yang.binding.RpcService>>> |
getRpcServices() |
org.opendaylight.yangtools.yang.model.api.SchemaContext |
getSchemaContext() |
protected org.opendaylight.yangtools.yang.model.api.SchemaContextHolder |
getSchemaContextHolder() |
void |
onGlobalContextUpdated(org.opendaylight.yangtools.yang.model.api.SchemaContext context) |
protected <T> com.google.common.util.concurrent.ListenableFuture<T> |
post(String path,
String payload,
com.google.common.base.Function<com.sun.jersey.api.client.ClientResponse,T> processingFunction) |
protected <T> com.google.common.util.concurrent.ListenableFuture<T> |
post(String path,
String payload,
String mediaType,
com.google.common.base.Function<com.sun.jersey.api.client.ClientResponse,T> processingFunction) |
protected <T> com.google.common.util.concurrent.ListenableFuture<T> |
put(String path,
String payload,
com.google.common.base.Function<com.sun.jersey.api.client.ClientResponse,T> processingFunction) |
protected <T> com.google.common.util.concurrent.ListenableFuture<T> |
put(String path,
String payload,
String mediaType,
com.google.common.base.Function<com.sun.jersey.api.client.ClientResponse,T> processingFunction) |
void |
setAuthenticationHolder(org.opendaylight.yangtools.restconf.client.api.auth.AuthenticationHolder authenticationHolder) |
public RestconfClientImpl(URL url, org.opendaylight.yangtools.yang.model.api.SchemaContextHolder schemaContextHolder)
protected URI getDefaultUri()
protected com.google.common.util.concurrent.ListeningExecutorService getPool()
protected org.opendaylight.yangtools.yang.model.api.SchemaContextHolder getSchemaContextHolder()
protected org.opendaylight.yangtools.binding.data.codec.impl.BindingNormalizedNodeCodecRegistry getMappingService()
public com.google.common.util.concurrent.ListenableFuture<Set<Class<? extends org.opendaylight.yangtools.yang.binding.RpcService>>> getRpcServices()
getRpcServices in interface org.opendaylight.yangtools.restconf.client.api.RestconfClientContextpublic <T extends org.opendaylight.yangtools.yang.binding.RpcService> org.opendaylight.yangtools.restconf.client.api.rpc.RpcServiceContext<T> getRpcServiceContext(Class<T> rpcService)
getRpcServiceContext in interface org.opendaylight.yangtools.restconf.client.api.RestconfClientContextpublic com.google.common.util.concurrent.ListenableFuture<Set<org.opendaylight.yangtools.restconf.client.api.event.EventStreamInfo>> getAvailableEventStreams()
getAvailableEventStreams in interface org.opendaylight.yangtools.restconf.client.api.RestconfClientContextpublic org.opendaylight.yangtools.restconf.client.api.event.ListenableEventStreamContext getEventStreamContext(org.opendaylight.yangtools.restconf.client.api.event.EventStreamInfo info)
getEventStreamContext in interface org.opendaylight.yangtools.restconf.client.api.RestconfClientContextpublic org.opendaylight.yangtools.restconf.client.api.data.ConfigurationDatastore getConfigurationDatastore()
getConfigurationDatastore in interface org.opendaylight.yangtools.restconf.client.api.RestconfClientContextpublic org.opendaylight.yangtools.restconf.client.api.data.OperationalDatastore getOperationalDatastore()
getOperationalDatastore in interface org.opendaylight.yangtools.restconf.client.api.RestconfClientContextpublic void setAuthenticationHolder(org.opendaylight.yangtools.restconf.client.api.auth.AuthenticationHolder authenticationHolder)
public void close()
close in interface AutoCloseableclose in interface org.opendaylight.yangtools.restconf.client.api.RestconfClientContextpublic void onGlobalContextUpdated(org.opendaylight.yangtools.yang.model.api.SchemaContext context)
onGlobalContextUpdated in interface org.opendaylight.yangtools.yang.model.api.SchemaContextListenerpublic org.opendaylight.yangtools.yang.model.api.SchemaContext getSchemaContext()
protected <T> com.google.common.util.concurrent.ListenableFuture<T> get(String path, com.google.common.base.Function<com.sun.jersey.api.client.ClientResponse,T> processingFunction)
protected <T> com.google.common.util.concurrent.ListenableFuture<T> get(String path, String mediaType, com.google.common.base.Function<com.sun.jersey.api.client.ClientResponse,T> processingFunction)
protected <T> com.google.common.util.concurrent.ListenableFuture<T> post(String path, String payload, com.google.common.base.Function<com.sun.jersey.api.client.ClientResponse,T> processingFunction)
protected <T> com.google.common.util.concurrent.ListenableFuture<T> post(String path, String payload, String mediaType, com.google.common.base.Function<com.sun.jersey.api.client.ClientResponse,T> processingFunction)
protected <T> com.google.common.util.concurrent.ListenableFuture<T> put(String path, String payload, com.google.common.base.Function<com.sun.jersey.api.client.ClientResponse,T> processingFunction)
protected <T> com.google.common.util.concurrent.ListenableFuture<T> put(String path, String payload, String mediaType, com.google.common.base.Function<com.sun.jersey.api.client.ClientResponse,T> processingFunction)
protected <T> com.google.common.util.concurrent.ListenableFuture<T> delete(String path, com.google.common.base.Function<com.sun.jersey.api.client.ClientResponse,T> processingFunction)
protected <T> com.google.common.util.concurrent.ListenableFuture<T> delete(String path, String mediaType, com.google.common.base.Function<com.sun.jersey.api.client.ClientResponse,T> processingFunction)
Copyright © 2015. All rights reserved.