summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemigiusz Janeczek <remigiusz.janeczek@nokia.com>2021-03-25 12:05:00 +0000
committerGerrit Code Review <gerrit@onap.org>2021-03-25 12:05:00 +0000
commitc262059f399914c1b82667a0f4aec745e65062f8 (patch)
treeab7e2dc3a8966bfa155ebef805dea7c94f90eb6e
parent5e65336f6c828dd3dac615cb0d6c08d2d18222ea (diff)
parenteb4cf54acb2a7ed9d3052c3bf73aebe48aeafd4b (diff)
Merge "Update documentation regarding authorized topics configuration in dmaap-client."
-rw-r--r--docs/sections/sdk/apis.rst48
1 files changed, 48 insertions, 0 deletions
diff --git a/docs/sections/sdk/apis.rst b/docs/sections/sdk/apis.rst
index 8f20a0ab..823027f2 100644
--- a/docs/sections/sdk/apis.rst
+++ b/docs/sections/sdk/apis.rst
@@ -291,6 +291,54 @@ The default custom persistent connection configuration (connectionPool=16, maxLi
ImmutableDmaapConnectionPoolConfig.builder().build()
+***************************************
+Configure request for authorized topics
+***************************************
+
+* publisher:
+
+.. code-block:: java
+
+ final MessageRouterSink sink = ImmutableMessageRouterSink.builder()
+ .aafCredentials(ImmutableAafCredentials.builder()
+ .username("username")
+ .password("password").build())
+ .
+ .
+ .
+ .build();
+
+ final MessageRouterPublishRequest request = ImmutableMessageRouterPublishRequest.builder()
+ .sinkDefinition(sink)
+ .
+ .
+ .
+ .build();
+
+* subscriber:
+
+.. code-block:: java
+
+ final MessageRouterSource sourceDefinition = ImmutableMessageRouterSource.builder()
+ .aafCredentials(ImmutableAafCredentials.builder()
+ .username("username")
+ .password("password")
+ .build())
+ .
+ .
+ .
+ .build();
+
+ final MessageRouterSubscribeRequest request = ImmutableMessageRouterSubscribeRequest.builder()
+ .sourceDefinition(sourceDefinition)
+ .
+ .
+ .
+ .build();
+
+AAF Credentials are optional for subscribe/publish requests.
+Username and password are used for basic authentication header during sending HTTP request to dmaap-mr.
+
hvvesclient-producer - a reference Java implementation of High Volume VES Collector client
------------------------------------------------------------------------------------------
This library is used in xNF simulator which helps us test HV VES Collector in CSIT tests. You may use it as a reference when implementing your code in non-JVM language or directly when using Java/Kotlin/etc.