Added code to send Termination message to PAP
[policy/xacml-pdp.git] / main / src / main / java / org / onap / policy / pdpx / main / XacmlState.java
index 521413c..f672ccd 100644 (file)
@@ -124,6 +124,16 @@ public class XacmlState {
         return makeResponse(message);
     }
 
+    /**
+     * Updates the internal state to Terminated.
+     *
+     * @return the current PdpStatus with Terminated state
+     */
+    public PdpStatus terminatePdpMessage() {
+        status.setState(PdpState.TERMINATED);
+        return status;
+    }
+
     /**
      * Makes a response to the given message, based on the current state.
      *