import org.opendaylight.netconf.sal.restconf.impl.ControllerContext;
import org.opendaylight.netconf.sal.restconf.impl.InstanceIdentifierContext;
+/**
+ * @deprecated This class will be replaced by
+ * {@link org.opendaylight.restconf.jersey.providers.AbstractIdentifierAwareJaxRsProvider}
+ */
+@Deprecated
public class AbstractIdentifierAwareJaxRsProvider {
private static final String POST = "POST";
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() {
}
protected UriInfo getUriInfo() {
- return uriInfo;
+ return this.uriInfo;
}
protected boolean isPost() {
- return POST.equals(request.getMethod());
+ return POST.equals(this.request.getMethod());
+ }
+
+ Request getRequest() {
+ return this.request;
}
}