private static Map<String, String> mapValuesFromUri(final String identifier) {
final HashMap<String, String> result = new HashMap<>();
for (final String token : RestconfConstants.SLASH_SPLITTER.split(identifier)) {
- final String[] paramToken = token.split(String.valueOf(RestconfStreamsConstants.EQUAL));
+ final String[] paramToken = token.split("=");
if (paramToken.length == 2) {
result.put(paramToken[0], paramToken[1]);
}
// Unsecured HTTP and others go to unsecured WebSockets
uriBuilder.scheme("ws");
}
- return uriBuilder.replacePath(RestconfConstants.BASE_URI_PATTERN + RestconfConstants.SLASH + streamName)
- .build();
+ return uriBuilder.replacePath(RestconfConstants.BASE_URI_PATTERN + '/' + streamName).build();
}
/**
static boolean checkExist(final SchemaContext schemaContext,
final DOMDataTreeReadOperations readWriteTransaction) {
- boolean exist;
try {
return readWriteTransaction.exists(LogicalDatastoreType.OPERATIONAL,
IdentifierCodec.deserialize(MonitoringModule.PATH_TO_STREAMS, schemaContext)).get();