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.nb.rfc8040.jersey.providers.spi;
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.restconf.common.context.InstanceIdentifierContext;
14 import org.opendaylight.restconf.common.context.NormalizedNodeContext;
15 import org.opendaylight.restconf.nb.rfc8040.handlers.SchemaContextHandler;
18 * Common superclass for readers producing {@link NormalizedNodeContext}.
20 * @author Robert Varga
23 public abstract class AbstractNormalizedNodeBodyReader
24 extends AbstractIdentifierAwareJaxRsProvider<NormalizedNodeContext> {
25 protected AbstractNormalizedNodeBodyReader(SchemaContextHandler schemaContextHandler) {
26 super(schemaContextHandler);
29 public final void injectParams(final UriInfo uriInfo, final Request request) {
35 protected final NormalizedNodeContext emptyBody(final InstanceIdentifierContext<?> path) {
36 return new NormalizedNodeContext(path, null);