2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.policy.api;
25 import javax.json.JsonObject;
27 public interface DictionaryResponse {
30 * Gets the <code>String</code> of the DictionaryItemsMessage from <code>DictionaryResponse</code>.
32 * @return the <code>String</code> which consists of DictionaryItemsMessage from <code>DictionaryResponse</code>
34 public String getResponseMessage();
37 * Response code of type <code>Integer</code> which corresponds to the HTTP Response code explaining the response from Policy Engine.
39 * @return the responseCode in <code>Integer</code> format corresponding to the HTTP response code from Policy Engine.
41 public int getResponseCode();
45 * Gets the <code>JsonObject</code> of all the Dictionary data retrieved
47 * @return the <code>JsonObject</code> which consists of Dictionary data which has been retrieved.
49 public JsonObject getDictionaryJson();
53 * Gets the Key and Value pairs for each Dictionary item retrieved which can be used in the getDictionaryItems call.
55 * @return <code>Map</code> of <code>String, String</code> which consists of the Key and Value pairs for each Dictionary item retrieved.
57 public Map<String,String> getDictionaryData();