*/
package org.opendaylight.transportpce.pce;
-import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev170426.PathComputationRequestInput;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev220615.PathComputationRequestInput;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/*
* Class to check RPCs Compliancy.
*/
-public class PceComplianceCheck {
+public final class PceComplianceCheck {
private static final Logger LOG = LoggerFactory.getLogger(PceComplianceCheck.class);
+ private PceComplianceCheck() {
+ }
+
/*
- * Check if a String is not
- * null and not equal to ''.
+ * Check if a String is not null and not equal to ''.
*
* @param value String value
+ *
* @return true if String ok
* false if not
*/
String message = "";
Boolean result = true;
if (input != null) {
+ LOG.info("New request {} for new service {}",
+ input.getServiceHandlerHeader().getRequestId(), input.getServiceName());
if (!checkString(input.getServiceName())) {
result = false;
message = "Service Name is not set";
}
}
-