2 * Copyright (c) 2023 PANTHEON.tech, 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.streams;
10 import javax.servlet.http.HttpServlet;
11 import org.eclipse.jdt.annotation.NonNullByDefault;
12 import org.opendaylight.restconf.api.query.PrettyPrintParam;
13 import org.opendaylight.restconf.nb.rfc8040.ErrorTagMapping;
14 import org.opendaylight.restconf.server.spi.RestconfStream;
17 * A helper for creating {@link HttpServlet}s which provide bridge between JAX-RS and {@link RestconfStream.Registry}.
19 * @deprecated This interface exists only to support SSE/Websocket delivery. It will be removed when support for
20 * WebSockets is removed.
23 @Deprecated(since = "7.0.0", forRemoval = true)
24 public interface RestconfStreamServletFactory {
26 * Return the value of {@code {+restconf}} macro. May be empty, guaranteed to not end with {@code /}.
28 * @return the value of {@code {+restconf}} macro
32 HttpServlet newStreamServlet();
34 PrettyPrintParam prettyPrint();
36 ErrorTagMapping errorTagMapping();