169a69dd0d0527860a0d46f717b5ca5e8d8cf067
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / netconf / sal / restconf / api / RestConfConfig.java
1 /*
2  * Copyright (c) 2019 Red Hat, Inc. and others. All rights reserved.
3  *
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
7  */
8 package org.opendaylight.netconf.sal.restconf.api;
9
10 import java.net.InetAddress;
11
12 /**
13  * Configuration for the RESTCONF server.
14  *
15  * @author Michael Vorburger.ch
16  */
17 public interface RestConfConfig {
18
19     /**
20      * IP interface which the WebSocket server will listen on.
21      */
22     default InetAddress webSocketAddress() {
23         return InetAddress.getLoopbackAddress();
24     }
25
26     /**
27      * TCP port which the WebSocket server will listen on.
28      */
29     int webSocketPort();
30 }