1 package org.umu.cops.ospep;
\r
3 import java.util.Vector;
\r
5 import org.umu.cops.stack.COPSDecisionMsg;
\r
6 import org.umu.cops.stack.COPSError;
\r
9 * Abstract class for implementing policy data processing classes for outsourcing PEPs.
\r
11 public abstract class COPSPepOSDataProcess {
\r
13 * Applies the decisions from the PDP
\r
14 * @param man The request state manager
\r
15 * @param dMsg The decisions message
\r
16 * @return <tt>true</tt> if failed (reports indicate failure), <tt>false</tt> otherwise
\r
18 public abstract boolean setDecisions(COPSPepOSReqStateMan man, COPSDecisionMsg dMsg);
\r
21 * Gets the report data
\r
22 * @param man The request state manager
\r
23 * @return A <tt>Vector</tt> holding the report data
\r
25 public abstract Vector getReportData(COPSPepOSReqStateMan man);
\r
28 * Gets the supplied client data
\r
29 * @param man The request state manager
\r
30 * @return A <tt>Vector</tt> holding the client data
\r
32 public abstract Vector getClientData(COPSPepOSReqStateMan man);
\r
35 * Gets the account data
\r
36 * @param man The request state manager
\r
37 * @return A <tt>Vector</tt> holding the account data
\r
39 public abstract Vector getAcctData(COPSPepOSReqStateMan man);
\r
42 * Called when the connection is closed
\r
43 * @param man The request state manager
\r
44 * @param error Reason
\r
46 public abstract void notifyClosedConnection (COPSPepOSReqStateMan man, COPSError error);
\r
49 * Called when the keep-alive message is not received
\r
50 * @param man The request state manager
\r
52 public abstract void notifyNoKAliveReceived (COPSPepOSReqStateMan man);
\r
55 * Process a PDP request to close a Request State
\r
56 * @param man The request state manager
\r
58 public abstract void closeRequestState(COPSPepOSReqStateMan man);
\r