Code Review
/
transportpce.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Stubpce Update
[transportpce.git]
/
tests
/
stubpce
/
src
/
main
/
java
/
org
/
opendaylight
/
transportpce
/
stubpce
/
CompliancyCheck.java
diff --git
a/tests/stubpce/src/main/java/org/opendaylight/transportpce/stubpce/CompliancyCheck.java
b/tests/stubpce/src/main/java/org/opendaylight/transportpce/stubpce/CompliancyCheck.java
index 12d2b0dee6e86b9fc738779d65a108f67f72dd84..ccbc5ea244c0471cbe17fd3d983a9eb4dc964adf 100644
(file)
--- a/
tests/stubpce/src/main/java/org/opendaylight/transportpce/stubpce/CompliancyCheck.java
+++ b/
tests/stubpce/src/main/java/org/opendaylight/transportpce/stubpce/CompliancyCheck.java
@@
-9,20
+9,21
@@
package org.opendaylight.transportpce.stubpce;
package org.opendaylight.transportpce.stubpce;
-import org.opendaylight.yang.gen.v1.http.org.
opendaylight.transportpce.stubpce
.rev170426.PathComputationRequestInput;
+import org.opendaylight.yang.gen.v1.http.org.
transportpce.b.c._interface.servicepath
.rev170426.PathComputationRequestInput;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Class to check RPCs Compliancy.
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Class to check RPCs Compliancy.
+ *
* @author Martial Coulibaly ( martial.coulibaly@gfi.com ) on behalf of Orange
*
*/
public class CompliancyCheck {
* @author Martial Coulibaly ( martial.coulibaly@gfi.com ) on behalf of Orange
*
*/
public class CompliancyCheck {
- /* Logging. */
+ /*
*
Logging. */
private static final Logger LOG = LoggerFactory.getLogger(CompliancyCheck.class);
private static final Logger LOG = LoggerFactory.getLogger(CompliancyCheck.class);
- /* Response message from procedure. */
+ /*
*
Response message from procedure. */
private String message;
private PathComputationRequestInput input;
private String message;
private PathComputationRequestInput input;
@@
-31,7
+32,7
@@
public class CompliancyCheck {
input = prcInput;
}
input = prcInput;
}
- /*
+ /*
*
* Check if a String is not
* null and not equal to ''.
*
* Check if a String is not
* null and not equal to ''.
*
@@
-48,6
+49,14
@@
public class CompliancyCheck {
}
}
+ /**
+ * check if service name
+ * or ServiceHandlerHeader
+ * is set in RPC request.
+ *
+ * @return true if settings is ok,
+ * false if not
+ */
public Boolean check() {
Boolean result = true;
if (input != null) {
public Boolean check() {
Boolean result = true;
if (input != null) {