blob: 169a69dd0d0527860a0d46f717b5ca5e8d8cf067 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*
* Copyright (c) 2019 Red Hat, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.netconf.sal.restconf.api;
import java.net.InetAddress;
/**
* Configuration for the RESTCONF server.
*
* @author Michael Vorburger.ch
*/
public interface RestConfConfig {
/**
* IP interface which the WebSocket server will listen on.
*/
default InetAddress webSocketAddress() {
return InetAddress.getLoopbackAddress();
}
/**
* TCP port which the WebSocket server will listen on.
*/
int webSocketPort();
}
|