Revision: 8ce82238816e
Author:   [email protected] <[email protected]>
Date:     Fri Jan 25 03:08:43 2013
Log: Issue 228:Adding XML serialization support for a list of MAP/CAP messages (that are used in CAP V2) : fix

http://code.google.com/p/jss7/source/detail?r=8ce82238816e

Modified:
/cap/cap-impl/src/main/java/org/mobicents/protocols/ss7/cap/service/circuitSwitchedCall/ApplyChargingReportRequestImpl.java /cap/cap-impl/src/main/java/org/mobicents/protocols/ss7/cap/service/circuitSwitchedCall/ApplyChargingRequestImpl.java /cap/cap-impl/src/main/java/org/mobicents/protocols/ss7/cap/service/circuitSwitchedCall/CancelRequestImpl.java

=======================================
--- /cap/cap-impl/src/main/java/org/mobicents/protocols/ss7/cap/service/circuitSwitchedCall/ApplyChargingReportRequestImpl.java Fri Jan 25 02:22:47 2013 +++ /cap/cap-impl/src/main/java/org/mobicents/protocols/ss7/cap/service/circuitSwitchedCall/ApplyChargingReportRequestImpl.java Fri Jan 25 03:08:43 2013
@@ -206,6 +206,7 @@
                @Override
                public void read(javolution.xml.XMLFormat.InputElement xml,
ApplyChargingReportRequestImpl applyChargingReportRequest) throws XMLStreamException {
+                       CIRCUIT_SWITCHED_CALL_MESSAGE_XML.read(xml, 
applyChargingReportRequest);
applyChargingReportRequest.timeDurationChargingResult = xml.get(TIME_DURATION_CHARGING_RESULT,
                                        TimeDurationChargingResultImpl.class);
                }
@@ -213,6 +214,9 @@
                @Override
public void write(ApplyChargingReportRequestImpl applyChargingReportRequest,
                                javolution.xml.XMLFormat.OutputElement xml) 
throws XMLStreamException {
+
+ CIRCUIT_SWITCHED_CALL_MESSAGE_XML.write(applyChargingReportRequest, xml);
+
xml.add((TimeDurationChargingResultImpl) applyChargingReportRequest.timeDurationChargingResult,
                                        TIME_DURATION_CHARGING_RESULT, 
TimeDurationChargingResultImpl.class);
                }
=======================================
--- /cap/cap-impl/src/main/java/org/mobicents/protocols/ss7/cap/service/circuitSwitchedCall/ApplyChargingRequestImpl.java Fri Jan 25 00:43:43 2013 +++ /cap/cap-impl/src/main/java/org/mobicents/protocols/ss7/cap/service/circuitSwitchedCall/ApplyChargingRequestImpl.java Fri Jan 25 03:08:43 2013
@@ -292,7 +292,7 @@
                @Override
public void read(javolution.xml.XMLFormat.InputElement xml, ApplyChargingRequestImpl applyChargingRequest)
                                throws XMLStreamException {
-
+                       CIRCUIT_SWITCHED_CALL_MESSAGE_XML.read(xml, 
applyChargingRequest);
applyChargingRequest.aChBillingChargingCharacteristics = xml.get(A_CH_BILLING_CHARGING_CHARACTERISTICS,
                                        
CAMELAChBillingChargingCharacteristicsImpl.class);
applyChargingRequest.partyToCharge = xml.get(PARTY_TO_CHARGE, SendingSideIDImpl.class);
@@ -307,7 +307,9 @@
                @Override
public void write(ApplyChargingRequestImpl applyChargingRequest, javolution.xml.XMLFormat.OutputElement xml)
                                throws XMLStreamException {
-
+
+                       
CIRCUIT_SWITCHED_CALL_MESSAGE_XML.write(applyChargingRequest, xml);
+
xml.add((CAMELAChBillingChargingCharacteristicsImpl) applyChargingRequest.aChBillingChargingCharacteristics, A_CH_BILLING_CHARGING_CHARACTERISTICS, CAMELAChBillingChargingCharacteristicsImpl.class);

=======================================
--- /cap/cap-impl/src/main/java/org/mobicents/protocols/ss7/cap/service/circuitSwitchedCall/CancelRequestImpl.java Fri Jan 25 02:57:39 2013 +++ /cap/cap-impl/src/main/java/org/mobicents/protocols/ss7/cap/service/circuitSwitchedCall/CancelRequestImpl.java Fri Jan 25 03:08:43 2013
@@ -265,6 +265,7 @@
                @Override
public void read(javolution.xml.XMLFormat.InputElement xml, CancelRequestImpl cancelRequest)
                                throws XMLStreamException {
+                       CIRCUIT_SWITCHED_CALL_MESSAGE_XML.read(xml, 
cancelRequest);
                        cancelRequest.invokeID = xml.get(INVOKE_ID, 
Integer.class);
                        cancelRequest.allRequests = xml.get(ALL_REQUESTS, 
Boolean.class);
cancelRequest.callSegmentToCancel = xml.get(CALL_SEGMENT_TO_CANCEL, CallSegmentToCancelImpl.class);
@@ -273,6 +274,9 @@
                @Override
public void write(CancelRequestImpl cancelRequest, javolution.xml.XMLFormat.OutputElement xml)
                                throws XMLStreamException {
+
+                       CIRCUIT_SWITCHED_CALL_MESSAGE_XML.write(cancelRequest, 
xml);
+
                        xml.add(cancelRequest.invokeID, INVOKE_ID, 
Integer.class);
                        xml.add(cancelRequest.allRequests, ALL_REQUESTS, 
Boolean.class);
xml.add((CallSegmentToCancelImpl) cancelRequest.callSegmentToCancel, CALL_SEGMENT_TO_CANCEL,

--



Reply via email to