2 * Copyright (c) 2017 Pantheon Technologies, s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.restconf.jersey.providers;
10 import com.google.common.annotations.Beta;
11 import javax.ws.rs.core.Request;
12 import javax.ws.rs.core.UriInfo;
13 import org.opendaylight.netconf.sal.restconf.impl.InstanceIdentifierContext;
14 import org.opendaylight.netconf.sal.restconf.impl.NormalizedNodeContext;
17 * Common superclass for readers producing {@link NormalizedNodeContext}.
19 * @author Robert Varga
22 public abstract class AbstractNormalizedNodeBodyReader
23 extends AbstractIdentifierAwareJaxRsProvider<NormalizedNodeContext> {
25 public final void injectParams(final UriInfo uriInfo, final Request request) {
31 protected final NormalizedNodeContext emptyBody(final InstanceIdentifierContext<?> path) {
32 return new NormalizedNodeContext(path, null);