Rev | Line | |
---|
[1227] | 1 | package gov.va.med.edp.command.debug
|
---|
| 2 | {
|
---|
| 3 | import gov.va.med.edp.business.CSPService;
|
---|
| 4 | import gov.va.med.edp.factory.DebugFactory;
|
---|
| 5 |
|
---|
| 6 | import mx.rpc.IResponder;
|
---|
| 7 |
|
---|
| 8 | public class DebugHTTPServiceResponder implements IResponder
|
---|
| 9 | {
|
---|
| 10 | private var resultStr:String="";
|
---|
| 11 | private var faultStr:String="";
|
---|
| 12 | private var parameters:Object;
|
---|
| 13 | private var cspService:CSPService=null;
|
---|
| 14 |
|
---|
| 15 | public function DebugHTTPServiceResponder(cspService:CSPService, parameters:Object){
|
---|
| 16 | this.cspService = cspService;
|
---|
| 17 | this.parameters = parameters;
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | public function result(data:Object):void
|
---|
| 21 | {
|
---|
| 22 | resultStr = String(data.result);
|
---|
| 23 | DebugFactory.updateDebugModel(cspService, resultStr, faultStr, parameters);
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | public function fault(data:Object):void
|
---|
| 27 | {
|
---|
| 28 | faultStr = data.toString();
|
---|
| 29 | DebugFactory.updateDebugModel(cspService, resultStr, faultStr, parameters);
|
---|
| 30 | }
|
---|
| 31 |
|
---|
| 32 | }
|
---|
| 33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.