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=========================================================
22 package org.onap.policy.std;
26 import org.onap.policy.api.PolicyResponse;
27 import org.onap.policy.api.PolicyResponseStatus;
30 * PolicyResponse Implementation class.
35 public class StdPolicyResponse implements PolicyResponse{
36 private PolicyResponseStatus policyResponseStatus;
37 private Map<String,String> actionAdvised;
38 private Map<String,String> actionTaken;
39 private Map<String,String> requestAttributes;
40 private String policyResponseMessage;
43 public PolicyResponseStatus getPolicyResponseStatus() {
44 return policyResponseStatus;
48 public Map<String, String> getActionAdvised() {
53 public Map<String, String> getActionTaken() {
58 public Map<String, String> getRequestAttributes() {
59 return requestAttributes;
63 public String getPolicyResponseMessage() {
64 return policyResponseMessage;
67 public void setPolicyResponseStatus(PolicyResponseStatus policyResponseStatus) {
68 this.policyResponseStatus = policyResponseStatus;
71 public void setActionAdvised(Map<String, String> actionAdvised) {
72 this.actionAdvised = actionAdvised;
75 public void setActionTaken(Map<String, String> actionTaken) {
76 this.actionTaken = actionTaken;
79 public void setRequestAttributes(Map<String, String> requestAttributes) {
80 this.requestAttributes = requestAttributes;
83 public void setPolicyResponseMessage(String policyResponseMessage) {
84 this.policyResponseMessage = policyResponseMessage;
87 public void setPolicyResponseStatus(String policyResponseMessage, PolicyResponseStatus policyResponseStatus) {
88 this.policyResponseMessage = policyResponseMessage;
89 this.policyResponseStatus = policyResponseStatus;
93 public String toString() {
94 return "PolicyResponse [ policyResponseStatus=" + policyResponseStatus + ", policyResponseMessage=" + policyResponseMessage + ", " +