Bug 6664 - upgrade draft15 to draft16 - renaming
[netconf.git] / restconf / sal-rest-connector / src / main / java / org / opendaylight / netconf / sal / rest / impl / AbstractIdentifierAwareJaxRsProvider.java
index 243858c9c20da3fee4e304ea908755cb958eff0e..80494561cbe66bcd07f05b7cadfa67f2a08f1412 100644 (file)
@@ -14,7 +14,13 @@ import javax.ws.rs.core.UriInfo;
 import org.opendaylight.netconf.sal.rest.api.RestconfConstants;
 import org.opendaylight.netconf.sal.restconf.impl.ControllerContext;
 import org.opendaylight.netconf.sal.restconf.impl.InstanceIdentifierContext;
+import org.opendaylight.restconf.utils.patch.Draft16AbstractIdentifierAwareJaxRsProvider;
 
+/**
+ * @deprecated This class will be replaced by
+ * {@link Draft16AbstractIdentifierAwareJaxRsProvider}
+ */
+@Deprecated
 public class AbstractIdentifierAwareJaxRsProvider {
 
     private static final String POST = "POST";
@@ -26,7 +32,7 @@ public class AbstractIdentifierAwareJaxRsProvider {
     private Request request;
 
     protected final String getIdentifier() {
-        return uriInfo.getPathParameters(false).getFirst(RestconfConstants.IDENTIFIER);
+        return this.uriInfo.getPathParameters(false).getFirst(RestconfConstants.IDENTIFIER);
     }
 
     protected InstanceIdentifierContext<?> getInstanceIdentifierContext() {
@@ -34,10 +40,10 @@ public class AbstractIdentifierAwareJaxRsProvider {
     }
 
     protected UriInfo getUriInfo() {
-        return uriInfo;
+        return this.uriInfo;
     }
 
     protected boolean isPost() {
-        return POST.equals(request.getMethod());
+        return POST.equals(this.request.getMethod());
     }
 }