Revision: 929bf688649e
Author:   [email protected] <[email protected]>
Date:     Sun Sep  2 11:21:32 2012
Log:      implement Serializable for few params

http://code.google.com/p/jss7/source/detail?r=929bf688649e

Modified:
/map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/MAPProvider.java /map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/smstpdu/AbsoluteTimeStamp.java /map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/smstpdu/DataCodingScheme.java /map/map-impl/src/main/java/org/mobicents/protocols/ss7/map/smstpdu/ConcatenatedShortMessagesIdentifierImpl.java

=======================================
--- /map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/MAPProvider.java Thu Aug 2 00:42:55 2012 +++ /map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/MAPProvider.java Sun Sep 2 11:21:32 2012
@@ -1,6 +1,6 @@
 /*
- * JBoss, Home of Professional Open Source
- * Copyright 2011, Red Hat, Inc. and individual contributors
+ * TeleStax, Open Source Cloud Communications  Copyright 2012.
+ * and individual contributors
  * by the @authors tag. See the copyright.txt in the distribution for a
  * full listing of individual contributors.
  *
@@ -76,6 +76,12 @@
         * @return
         */
        public MAPDialog getMAPDialog(Long dialogId);
+
+       /**
+        *
+        * @return
+        */
+       public MAPSmsTpduParameterFactory getMAPSmsTpduParameterFactory();


        public MAPServiceMobility getMAPServiceMobility();
=======================================
--- /map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/smstpdu/AbsoluteTimeStamp.java Mon Apr 23 10:53:14 2012 +++ /map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/smstpdu/AbsoluteTimeStamp.java Sun Sep 2 11:21:32 2012
@@ -1,6 +1,6 @@
 /*
- * JBoss, Home of Professional Open Source
- * Copyright 2011, Red Hat, Inc. and individual contributors
+ * TeleStax, Open Source Cloud Communications  Copyright 2012.
+ * and individual contributors
  * by the @authors tag. See the copyright.txt in the distribution for a
  * full listing of individual contributors.
  *
@@ -23,6 +23,7 @@
 package org.mobicents.protocols.ss7.map.api.smstpdu;

 import java.io.OutputStream;
+import java.io.Serializable;

 import org.mobicents.protocols.ss7.map.api.MAPException;

@@ -40,7 +41,7 @@
  * @author sergey vetyutnev
  *
  */
-public interface AbsoluteTimeStamp {
+public interface AbsoluteTimeStamp extends Serializable {

        public int getYear();

=======================================
--- /map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/smstpdu/DataCodingScheme.java Mon Jul 9 10:07:20 2012 +++ /map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/smstpdu/DataCodingScheme.java Sun Sep 2 11:21:32 2012
@@ -1,6 +1,6 @@
 /*
- * JBoss, Home of Professional Open Source
- * Copyright 2011, Red Hat, Inc. and individual contributors
+ * TeleStax, Open Source Cloud Communications  Copyright 2012.
+ * and individual contributors
  * by the @authors tag. See the copyright.txt in the distribution for a
  * full listing of individual contributors.
  *
@@ -22,6 +22,8 @@

 package org.mobicents.protocols.ss7.map.api.smstpdu;

+import java.io.Serializable;
+
 /**
  * See 3GPP TS 23.038 Chapter 4 SMS Data Coding Scheme
  *
@@ -29,7 +31,7 @@
  * @author sergey vetyutnev
  *
  */
-public interface DataCodingScheme {
+public interface DataCodingScheme extends Serializable {

        public int getCode();

=======================================
--- /map/map-impl/src/main/java/org/mobicents/protocols/ss7/map/smstpdu/ConcatenatedShortMessagesIdentifierImpl.java Mon May 28 10:21:49 2012 +++ /map/map-impl/src/main/java/org/mobicents/protocols/ss7/map/smstpdu/ConcatenatedShortMessagesIdentifierImpl.java Sun Sep 2 11:21:32 2012
@@ -1,6 +1,6 @@
 /*
- * JBoss, Home of Professional Open Source
- * Copyright 2011, Red Hat, Inc. and individual contributors
+ * TeleStax, Open Source Cloud Communications  Copyright 2012.
+ * and individual contributors
  * by the @authors tag. See the copyright.txt in the distribution for a
  * full listing of individual contributors.
  *
@@ -37,6 +37,33 @@
        private int mesageSegmentCount;
        private int mesageSegmentNumber;

+       /**
+        *
+        * @param referenceIs16bit
+        * @param reference
+ * Concatenated short message reference number. This octet shall
+        *            contain a modulo 256 counter indicating the reference 
number
+        *            for a particular concatenated short message. This 
reference
+        *            number shall remain constant for every short message which
+        *            makes up a particular concatenated short message.
+        * @param mesageSegmentCount
+        *            Maximum number of short messages in the concatenated short
+        *            message. This octet shall contain a value in the range 0 
to
+        *            255 indicating the total number of short messages within 
the
+        *            concatenated short message. The value shall start at 1 and
+        *            remain constant for every short message which makes up the
+        *            concatenated short message. If the value is zero then the
+        *            receiving entity shall ignore the whole Information 
Element.
+        * @param mesageSegmentNumber
+ * Sequence number of the current short message. This octet shall + * contain a value in the range 0 to 255 indicating the sequence
+        *            number of a particular short message within the 
concatenated
+ * short message. The value shall start at 1 and increment by one
+        *            for every short message sent within the concatenated short
+ * message. If the value is zero or the value is greater than the
+        *            value in octet 2 then the receiving entity shall ignore 
the
+        *            whole Information Element.
+        */
public ConcatenatedShortMessagesIdentifierImpl(boolean referenceIs16bit, int reference, int mesageSegmentCount, int mesageSegmentNumber) {
                this.referenceIs16bit = referenceIs16bit;
                this.reference = reference;
@@ -61,7 +88,7 @@
                        this.mesageSegmentNumber = encodedInformationElementData[3] 
& 0xFF;
                }
        }
-
+
        public boolean getReferenceIs16bit() {
                return referenceIs16bit;
        }
@@ -101,7 +128,7 @@
                }
                return res;
        }
-
+
        @Override
        public String toString() {
                StringBuilder sb = new StringBuilder();

Reply via email to