blob: aea97639a7f442ccab3137218a96ce15faaf412a [file] [log] [blame]
daniel park128c52c2017-09-04 13:15:51 +09001/*
2 * Copyright 2017-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.openstacknetworkingui;
17
18import com.fasterxml.jackson.databind.node.ObjectNode;
19
20/**
21 * Service for OpenStack Networking UI.
22 */
23public interface OpenstackNetworkingUiService {
24
25 /**
26 * Sends message to OpenStack Networking UI.
27 *
28 * @param type event type
29 * @param payload payload
30 */
31 void sendMessage(String type, ObjectNode payload);
32
33 /**
34 * Sets the REST server ip address.
35 *
36 * @param ipAddress rest server ip address
37 */
38 void setRestServerIp(String ipAddress);
39
40 /**
41 * Gets the REST server url.
42 *
43 * @return REST server url
44 */
45 String restServerUrl();
46
47 /**
48 * Sets the REST server authorization information.
49 *
50 * @param id id
51 * @param password password
52 */
53 void setRestServerAuthInfo(String id, String password);
54
55 /**
56 * Gets the REST server authorization information.
57 *
58 * @return REST server authorization information as String
59 */
60 String restServerAuthInfo();
61
62}