Revision: 07f731288c3f
Author:   [email protected] <[email protected]>
Date:     Fri Jan  4 04:56:40 2013
Log: Issue 201:Expose TCAP setRemoteAddress() and setLocalAddress() into MAP/CAP stack

http://code.google.com/p/jss7/source/detail?r=07f731288c3f

Modified:
/cap/cap-api/src/main/java/org/mobicents/protocols/ss7/cap/api/CAPDialog.java /cap/cap-impl/src/main/java/org/mobicents/protocols/ss7/cap/CAPDialogImpl.java /map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/MAPDialog.java /map/map-impl/src/main/java/org/mobicents/protocols/ss7/map/MAPDialogImpl.java /tcap/tcap-api/src/main/java/org/mobicents/protocols/ss7/tcap/api/tc/dialog/Dialog.java /tcap/tcap-impl/src/main/java/org/mobicents/protocols/ss7/tcap/DialogImpl.java

=======================================
--- /cap/cap-api/src/main/java/org/mobicents/protocols/ss7/cap/api/CAPDialog.java Mon Dec 17 09:15:55 2012 +++ /cap/cap-api/src/main/java/org/mobicents/protocols/ss7/cap/api/CAPDialog.java Fri Jan 4 04:56:40 2013
@@ -59,8 +59,22 @@
        public boolean getReturnMessageOnError();

        public SccpAddress getLocalAddress();
+
+       /**
+        * Sets local Sccp Address.
+        *
+        * @param localAddress
+        */
+       public void setLocalAddress(SccpAddress localAddress);

     public SccpAddress getRemoteAddress();
+
+       /**
+        * Sets remote Sccp Address
+        *
+        * @param remoteAddress
+        */
+       public void setRemoteAddress(SccpAddress remoteAddress);

        /**
         * This method can be called on timeout of dialog, inside
=======================================
--- /cap/cap-impl/src/main/java/org/mobicents/protocols/ss7/cap/CAPDialogImpl.java Sun Dec 9 14:20:03 2012 +++ /cap/cap-impl/src/main/java/org/mobicents/protocols/ss7/cap/CAPDialogImpl.java Fri Jan 4 04:56:40 2013
@@ -94,10 +94,18 @@
        public SccpAddress getLocalAddress() {
                return this.tcapDialog.getLocalAddress();
        }
+
+       public void setLocalAddress(SccpAddress localAddress){
+               this.tcapDialog.setLocalAddress(localAddress);
+       }

        public SccpAddress getRemoteAddress() {
                return this.tcapDialog.getRemoteAddress();
        }
+
+       public void setRemoteAddress(SccpAddress remoteAddress){
+               this.tcapDialog.setRemoteAddress(remoteAddress);
+       }

        @Override
        public void setReturnMessageOnError(boolean val) {
=======================================
--- /map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/MAPDialog.java Sun Dec 9 14:20:03 2012 +++ /map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/MAPDialog.java Fri Jan 4 04:56:40 2013
@@ -57,18 +57,32 @@
         * @return
         */
        public MAPDialogState getState();
+
+       /**
+        *
+        * @return - local sccp address.
+        */
+       public SccpAddress getLocalAddress();

-    /**
-     *
-     * @return - local sccp address.
-     */
-    public SccpAddress getLocalAddress();
+       /**
+        * Sets local Sccp Address.
+        *
+        * @param localAddress
+        */
+       public void setLocalAddress(SccpAddress localAddress);

-    /**
-         *
-         * @return - remote sccp address which represents remote peer
-         */
-    public SccpAddress getRemoteAddress();
+       /**
+        *
+        * @return - remote sccp address which represents remote peer
+        */
+       public SccpAddress getRemoteAddress();
+
+       /**
+        * Sets remote Sccp Address
+        *
+        * @param remoteAddress
+        */
+       public void setRemoteAddress(SccpAddress remoteAddress);

        /**
* Setting this property to true lead that all sent to TCAP messages of this
@@ -81,32 +95,40 @@

        /**
         * If returnMessageOnError is set to true
+        *
         * @return
         */
        public boolean getReturnMessageOnError();

        /**
- * Returns the type of the last incoming TCAP primitive (TC-BEGIN, TC-CONTINUE, TC-END or TC-ABORT) - * It will be equal null if we have just created a Dialog and no messages has income
+        * Returns the type of the last incoming TCAP primitive (TC-BEGIN,
+        * TC-CONTINUE, TC-END or TC-ABORT) It will be equal null if we have 
just
+        * created a Dialog and no messages has income
         *
         * @return
         */
        public MessageType getTCAPMessageType();

        /**
- * Return received OrigReference from MAPOpenInfo or null if no OrigReference has been received
+        * Return received OrigReference from MAPOpenInfo or null if no
+        * OrigReference has been received
+        *
         * @return
         */
        public AddressString getReceivedOrigReference();

        /**
- * Return received DestReference from MAPOpenInfo or null if no OrigReference has been received
+        * Return received DestReference from MAPOpenInfo or null if no
+        * OrigReference has been received
+        *
         * @return
         */
        public AddressString getReceivedDestReference();

        /**
- * Return received ExtensionContainer from MAPOpenInfo or null if no OrigReference has been received
+        * Return received ExtensionContainer from MAPOpenInfo or null if no
+        * OrigReference has been received
+        *
         * @return
         */
        public MAPExtensionContainer getReceivedExtensionContainer();
@@ -131,10 +153,10 @@
         * @return
         */
        public Long getLocalDialogId();
-
+
        /**
- * Returns this Dialog's remote ID. This ID is actually TCAP's remote Dialog ID.
-        * {@link org.mobicents.protocols.ss7.tcap.api.tc.dialog.Dialog}
+ * Returns this Dialog's remote ID. This ID is actually TCAP's remote Dialog
+        * ID. {@link org.mobicents.protocols.ss7.tcap.api.tc.dialog.Dialog}
         *
         * @return
         */
@@ -182,31 +204,32 @@
        public void close(boolean prearrangedEnd) throws MAPException;

        /**
-        * This method makes the same as send() method.
-        * But when invoking it from events of parsing incoming components
-        * real sending will occur only when all incoming components events
-        * and onDialogDelimiter() or onDialogClose() would be processed
+        * This method makes the same as send() method. But when invoking it 
from
+        * events of parsing incoming components real sending will occur only 
when
+ * all incoming components events and onDialogDelimiter() or onDialogClose()
+        * would be processed
         *
-        * If you are receiving several primitives you can invoke sendDelayed()
-        * in several processing components events - the result will be sent 
after
+        * If you are receiving several primitives you can invoke sendDelayed() 
in
+        * several processing components events - the result will be sent after
         * onDialogDelimiter() in a single TC-CONTINUE message
         */
        public void sendDelayed() throws MAPException;

        /**
-        * This method makes the same as close() method.
-        * But when invoking it from events of parsing incoming components
- * real sending and dialog closing will occur only when all incoming components events
-        * and onDialogDelimiter() or onDialogClose() would be processed
+        * This method makes the same as close() method. But when invoking it 
from
+        * events of parsing incoming components real sending and dialog closing
+        * will occur only when all incoming components events and
+        * onDialogDelimiter() or onDialogClose() would be processed
         *
-        * If you are receiving several primitives you can invoke closeDelayed()
-        * in several processing components events - the result will be sent
- * and the dialog will be closed after onDialogDelimiter() in a single TC-END message + * If you are receiving several primitives you can invoke closeDelayed() in
+        * several processing components events - the result will be sent and 
the
+        * dialog will be closed after onDialogDelimiter() in a single TC-END
+        * message
         *
-        * If both of sendDelayed() and closeDelayed() have been invoked
-        * TC-END will be issued and the dialog will be closed
- * If sendDelayed() or closeDelayed() were invoked, TC-CONTINUE/TC-END were not sent - * and abort() or release() are invoked - no TC-CONTINUE/TC-END messages will be sent + * If both of sendDelayed() and closeDelayed() have been invoked TC-END will
+        * be issued and the dialog will be closed If sendDelayed() or
+ * closeDelayed() were invoked, TC-CONTINUE/TC-END were not sent and abort()
+        * or release() are invoked - no TC-CONTINUE/TC-END messages will be 
sent
         */
        public void closeDelayed(boolean prearrangedEnd) throws MAPException;

=======================================
--- /map/map-impl/src/main/java/org/mobicents/protocols/ss7/map/MAPDialogImpl.java Sun Dec 9 14:20:03 2012 +++ /map/map-impl/src/main/java/org/mobicents/protocols/ss7/map/MAPDialogImpl.java Fri Jan 4 04:56:40 2013
@@ -123,6 +123,10 @@
        public SccpAddress getLocalAddress() {
                return this.tcapDialog.getLocalAddress();
        }
+
+       public void setLocalAddress(SccpAddress localAddress){
+               this.tcapDialog.setLocalAddress(localAddress);
+       }

        /**
         *
@@ -131,6 +135,10 @@
        public SccpAddress getRemoteAddress() {
                return this.tcapDialog.getRemoteAddress();
        }
+
+       public void setRemoteAddress(SccpAddress remoteAddress){
+               this.tcapDialog.setRemoteAddress(remoteAddress);
+       }

        public MessageType getTCAPMessageType() {
                return tcapMessageType;
=======================================
--- /tcap/tcap-api/src/main/java/org/mobicents/protocols/ss7/tcap/api/tc/dialog/Dialog.java Sun Dec 9 14:20:03 2012 +++ /tcap/tcap-api/src/main/java/org/mobicents/protocols/ss7/tcap/api/tc/dialog/Dialog.java Fri Jan 4 04:56:40 2013
@@ -65,6 +65,13 @@
         * @return
         */
        public SccpAddress getLocalAddress();
+
+       /**
+        * Sets local Sccp Address.
+        *
+        * @param localAddress
+        */
+       public void setLocalAddress(SccpAddress localAddress);

        /**
         * Gets remote sccp address
@@ -72,6 +79,13 @@
         * @return
         */
        public SccpAddress getRemoteAddress();
+
+       /**
+        * Sets remote Sccp Address
+        *
+        * @param remoteAddress
+        */
+       public void setRemoteAddress(SccpAddress remoteAddress);

        /**
         * Last sent/received ACN
=======================================
--- /tcap/tcap-impl/src/main/java/org/mobicents/protocols/ss7/tcap/DialogImpl.java Fri Dec 14 08:14:40 2012 +++ /tcap/tcap-impl/src/main/java/org/mobicents/protocols/ss7/tcap/DialogImpl.java Fri Jan 4 04:56:40 2013
@@ -1174,7 +1174,7 @@
         * @param localAddress
         *            the localAddress to set
         */
-       void setLocalAddress(SccpAddress localAddress) {
+       public void setLocalAddress(SccpAddress localAddress) {
                this.localAddress = localAddress;
        }

@@ -1182,7 +1182,7 @@
         * @param remoteAddress
         *            the remoteAddress to set
         */
-       void setRemoteAddress(SccpAddress remoteAddress) {
+       public void setRemoteAddress(SccpAddress remoteAddress) {
                this.remoteAddress = remoteAddress;
        }

Reply via email to