Revision: 14970
Author: brainslog
Date: Tue Nov  2 10:11:58 2010
Log: Improve sessions and messages with all relevant setter/getters - Stack Base Acc/Auth API

Update Issue 1257
Commited Stack Base Acc/Auth API changes

http://code.google.com/p/mobicents/source/detail?r=14970

Modified:
/trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/acc/events/AccountAnswer.java /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/acc/events/AccountRequest.java /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/AbortSessionAnswer.java /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/AbortSessionRequest.java /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/ReAuthAnswer.java /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/ReAuthRequest.java /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/SessionTermAnswer.java /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/SessionTermRequest.java

=======================================
--- /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/acc/events/AccountAnswer.java Mon Aug 3 17:25:21 2009 +++ /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/acc/events/AccountAnswer.java Tue Nov 2 10:11:58 2010
@@ -10,30 +10,93 @@
 package org.jdiameter.api.acc.events;

 import org.jdiameter.api.AvpDataException;
+import org.jdiameter.api.AvpSet;
 import org.jdiameter.api.app.AppAnswerEvent;

 /**
- * A Answer message is sent by a recipient of Request once it has
- * received and interpreted the Request.
+ * An Answer message is sent by a recipient of Request once it has received and
+ * interpreted the Request.
+ *
  * @version 1.5.1 Final
  */
 public interface AccountAnswer extends AppAnswerEvent {

-
   public static final String _SHORT_NAME = "ACA";
   public static final String _LONG_NAME = "Accounting-Answer";

   public static final int code = 271;

-  /**
-   * @return Record type of answer
- * @throws org.jdiameter.api.AvpDataException if result code avp is not integer
-   */
+  boolean hasAccountingRecordType();
+
   int getAccountingRecordType() throws AvpDataException;

-  /**
-   * @return record number
-   * @throws AvpDataException if result code avp is not integer
-   */
+  void setAccountingRecordType(int val);
+
+  boolean hasAccountingRecordNumber();
+
   long getAccountingRecordNumber() throws AvpDataException;
-}
+
+  void setAccountingRecordNumber(long val);
+
+  boolean hasAcctApplicationId();
+
+  long getAcctApplicationId() throws AvpDataException;
+
+  void setAcctApplicationId(long val);
+
+  boolean hasVendorSpecificApplicationId();
+
+  AvpSet getVendorSpecificApplicationId() throws AvpDataException;
+
+ void setVendorSpecificApplicationId(long vendorId, long appId, boolean isAuthApp);
+
+  boolean hasUserName();
+
+  String getUserName() throws AvpDataException;
+
+  void setUserName(String val);
+
+  boolean hasAcctSubSessionId();
+
+  long getAcctSubSessionId() throws AvpDataException;
+
+  void setAcctSubSessionId(long val);
+
+  boolean hasAcctSessionId();
+
+  String getAcctSessionId() throws AvpDataException;
+
+  void setAcctSessionId(String val);
+
+  boolean hasAcctMultiSessionId();
+
+  String getAcctMultiSessionId() throws AvpDataException;
+
+  void setAcctMultiSessionId(String val);
+
+  boolean hasAcctInterimInterval();
+
+  long getAcctInterimInterval() throws AvpDataException;
+
+  void setAcctInterimInterval(long val);
+
+  boolean hasAccountingRealtimeRequired();
+
+  int getAccountingRealtimeRequired() throws AvpDataException;
+
+  void setAccountingRealtimeRequired(int val);
+
+  long getOriginStateId() throws AvpDataException;
+
+  boolean hasOriginStateId();
+
+  void setOriginStateId(long val);
+
+  // octet string
+  boolean hasEventTimestamp();
+
+  String getEventTimestamp() throws AvpDataException;
+
+  void setEventTimestamp(String val);
+
+}
=======================================
--- /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/acc/events/AccountRequest.java Mon Aug 3 17:25:21 2009 +++ /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/acc/events/AccountRequest.java Tue Nov 2 10:11:58 2010
@@ -10,13 +10,14 @@
 package org.jdiameter.api.acc.events;

 import org.jdiameter.api.AvpDataException;
+import org.jdiameter.api.AvpSet;
 import org.jdiameter.api.app.AppRequestEvent;

 /**
- *  A Account Request is a request from a client to a server
+ * An Account Request is a request from a client to a server
+ *
  * @version 1.5.1 Final
  */
-
 public interface AccountRequest extends AppRequestEvent {

   public static final String _SHORT_NAME = "ACR";
@@ -24,15 +25,77 @@

   public static final int code = 271;

-  /**
-   * @return Record type of request
-   * @throws AvpDataException if result code avp is not integer
-   */
+  boolean hasAccountingRecordType();
+
   int getAccountingRecordType() throws AvpDataException;

-  /**
-   * @return record number
-   * @throws AvpDataException if result code avp is not integer
-   */
+  void setAccountingRecordType(int val);
+
+  boolean hasAccountingRecordNumber();
+
   long getAccountingRecordNumber() throws AvpDataException;
-}
+
+  void setAccountingRecordNumber(long val);
+
+  boolean hasAcctApplicationId();
+
+  long getAcctApplicationId() throws AvpDataException;
+
+  void setAcctApplicationId(long val);
+
+  boolean hasVendorSpecificApplicationId();
+
+  AvpSet getVendorSpecificApplicationId() throws AvpDataException;
+
+ void setVendorSpecificApplicationId(long vendorId, long appId, boolean isAuthApp);
+
+  boolean hasUserName();
+
+  String getUserName() throws AvpDataException;
+
+  void setUserName(String val);
+
+  boolean hasAcctSubSessionId();
+
+  long getAcctSubSessionId() throws AvpDataException;
+
+  void setAcctSubSessionId(long val);
+
+  boolean hasAcctSessionId();
+
+  String getAcctSessionId() throws AvpDataException;
+
+  void setAcctSessionId(String val);
+
+  boolean hasAcctMultiSessionId();
+
+  String getAcctMultiSessionId() throws AvpDataException;
+
+  void setAcctMultiSessionId(String val);
+
+  boolean hasAcctInterimInterval();
+
+  long getAcctInterimInterval() throws AvpDataException;
+
+  void setAcctInterimInterval(long val);
+
+  boolean hasAccountingRealtimeRequired();
+
+  int getAccountingRealtimeRequired() throws AvpDataException;
+
+  void setAccountingRealtimeRequired(int val);
+
+  long getOriginStateId() throws AvpDataException;
+
+  boolean hasOriginStateId();
+
+  void setOriginStateId(long val);
+
+  // octet string
+  boolean hasEventTimestamp();
+
+  String getEventTimestamp() throws AvpDataException;
+
+  void setEventTimestamp(String val);
+
+}
=======================================
--- /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/AbortSessionAnswer.java Mon Aug 3 17:25:21 2009 +++ /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/AbortSessionAnswer.java Tue Nov 2 10:11:58 2010
@@ -9,10 +9,13 @@
  */
 package org.jdiameter.api.auth.events;

+import org.jdiameter.api.AvpDataException;
 import org.jdiameter.api.app.AppAnswerEvent;

 /**
- * A Answer message is sent by a recipient of Request once it has received and interpreted the Request. + * A Answer message is sent by a recipient of Request once it has received and
+ * interpreted the Request.
+ *
  * @version 1.5.1 Final
  */

@@ -23,4 +26,21 @@

   public static final int code = 274;

-}
+  long getOriginStateId() throws AvpDataException;
+
+  boolean hasOriginStateId();
+
+  void setOriginStateId(long val);
+
+  boolean hasTerminationCause();
+
+  int getTerminationCause() throws AvpDataException;
+
+  void setTerminationCause(int val);
+
+  boolean hasUserName();
+
+  String getUserName() throws AvpDataException;
+
+  void setUserName(String val);
+}
=======================================
--- /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/AbortSessionRequest.java Mon Aug 3 17:25:21 2009 +++ /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/AbortSessionRequest.java Tue Nov 2 10:11:58 2010
@@ -9,11 +9,12 @@
  */
 package org.jdiameter.api.auth.events;

-import org.jdiameter.api.app.AppRequestEvent;
 import org.jdiameter.api.AvpDataException;
+import org.jdiameter.api.app.AppRequestEvent;

 /**
  * A Abort Session Request is a request from a client to a server
+ *
  * @version 1.5.1 Final
  */

@@ -26,8 +27,32 @@

   /**
    * Return Auth-Application-Id value of request
+   *
    * @return Auth-Application-Id value of request
-   * @throws org.jdiameter.api.AvpDataException if avp is not integer
+   * @throws org.jdiameter.api.AvpDataException
+   *             if avp is not integer
    */
-  long getAuthApplicationId()  throws AvpDataException;
-}
+  long getAuthApplicationId() throws AvpDataException;
+
+  boolean hasAuthApplicationId();
+
+  void setAuthApplicationId(long val);
+
+  long getOriginStateId() throws AvpDataException;
+
+  boolean hasOriginStateId();
+
+  void setOriginStateId(long val);
+
+  boolean hasTerminationCause();
+
+  int getTerminationCause() throws AvpDataException;
+
+  void setTerminationCause(int val);
+
+  boolean hasUserName();
+
+  String getUserName() throws AvpDataException;
+
+  void setUserName(String val);
+}
=======================================
--- /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/ReAuthAnswer.java Mon Aug 3 17:25:21 2009 +++ /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/ReAuthAnswer.java Tue Nov 2 10:11:58 2010
@@ -9,10 +9,13 @@
  */
 package org.jdiameter.api.auth.events;

+import org.jdiameter.api.AvpDataException;
 import org.jdiameter.api.app.AppAnswerEvent;

 /**
- * A Answer message is sent by a recipient of Request once it has received and interpreted the Request. + * A Answer message is sent by a recipient of Request once it has received and
+ * interpreted the Request.
+ *
  * @version 1.5.1 Final
  */

@@ -23,4 +26,15 @@

   public static final int code = 258;

-}
+  long getOriginStateId() throws AvpDataException;
+
+  boolean hasOriginStateId();
+
+  void setOriginStateId(long val);
+
+  boolean hasUserName();
+
+  String getUserName() throws AvpDataException;
+
+  void setUserName(String val);
+}
=======================================
--- /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/ReAuthRequest.java Mon Aug 3 17:25:21 2009 +++ /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/ReAuthRequest.java Tue Nov 2 10:11:58 2010
@@ -14,6 +14,7 @@

 /**
  * A ReAuthentication Request is a request from a client to a server
+ *
  * @version 1.5.1 Final
  */

@@ -24,17 +25,53 @@

   public static final int code = 258;

+  boolean hasAcctInterimInterval();
+
+  long getAcctInterimInterval() throws AvpDataException;
+
+  void setAcctInterimInterval(long val);
+
+  boolean hasAccountingRealtimeRequired();
+
+  int getAccountingRealtimeRequired() throws AvpDataException;
+
+  void setAccountingRealtimeRequired(int val);
+
+  long getOriginStateId() throws AvpDataException;
+
+  boolean hasOriginStateId();
+
+  void setOriginStateId(long val);
+
   /**
    * Return re-authentication request type
+   *
    * @return re-authentication request type
-   * @throws org.jdiameter.api.AvpDataException if avp is not integer
+   * @throws org.jdiameter.api.AvpDataException
+   *             if avp is not integer
    */
   int getReAuthRequestType() throws AvpDataException;

+  boolean hasReAuthRequestType();
+
+  void setReAuthRequestType(int val);
+
   /**
    * Return Auth-Application-Id value of request
+   *
    * @return Auth-Application-Id value of request
-   * @throws AvpDataException if avp is not integer
+   * @throws org.jdiameter.api.AvpDataException
+   *             if avp is not integer
    */
-  long getAuthApplicationId()  throws AvpDataException;
-}
+  long getAuthApplicationId() throws AvpDataException;
+
+  boolean hasAuthApplicationId();
+
+  void setAuthApplicationId(long val);
+
+  boolean hasUserName();
+
+  String getUserName() throws AvpDataException;
+
+  void setUserName(String val);
+}
=======================================
--- /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/SessionTermAnswer.java Mon Aug 3 17:25:21 2009 +++ /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/SessionTermAnswer.java Tue Nov 2 10:11:58 2010
@@ -9,10 +9,13 @@
  */
 package org.jdiameter.api.auth.events;

+import org.jdiameter.api.AvpDataException;
 import org.jdiameter.api.app.AppAnswerEvent;

 /**
- * A Answer message is sent by a recipient of Request once it has received and interpreted the Request. + * A Answer message is sent by a recipient of Request once it has received and
+ * interpreted the Request.
+ *
  * @version 1.5.1 Final
  */

@@ -23,4 +26,16 @@

   public static final int code = 275;

-}
+  long getOriginStateId() throws AvpDataException;
+
+  boolean hasOriginStateId();
+
+  void setOriginStateId(long val);
+
+  boolean hasUserName();
+
+  String getUserName() throws AvpDataException;
+
+  void setUserName(String val);
+
+}
=======================================
--- /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/SessionTermRequest.java Mon Aug 3 17:25:21 2009 +++ /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/SessionTermRequest.java Tue Nov 2 10:11:58 2010
@@ -14,26 +14,38 @@

 /**
  * A Session Termination Request is a request from a client to a server
+ *
  * @version 1.5.1 Final
  */

 public interface SessionTermRequest extends AppRequestEvent {

-
   public static final String _SHORT_NAME = "STR";
   public static final String _LONG_NAME = "Session-Termination-Request";

   public static final int code = 275;

-  /**
-   * @return Auth-Application-Id value of request
-   * @throws AvpDataException if result code avp is not integer
-   */
   long getAuthApplicationId() throws AvpDataException;

-  /**
-   * @return termination cause
-   * @throws AvpDataException if result code avp is not integer
-   */
+  boolean hasAuthApplicationId();
+
+  void setAuthApplicationId(long val);
+
+  long getOriginStateId() throws AvpDataException;
+
+  boolean hasOriginStateId();
+
+  void setOriginStateId(long val);
+
+  boolean hasTerminationCause();
+
   int getTerminationCause() throws AvpDataException;
-}
+
+  void setTerminationCause(int val);
+
+  boolean hasUserName();
+
+  String getUserName() throws AvpDataException;
+
+  void setUserName(String val);
+}

Reply via email to