[sandbox.akabana]/trunk/yui-frameworks/yui-ds/src/main/flex/jp/akb7/yui/ds/responder/RpcNoneResponder.as
Parent Directory
|
Revision Log
Revision 1033 -
(show annotations)
Fri Mar 26 13:33:23 2010 JST (3 years, 2 months ago) by e1arkw
Original Path: trunk/yui/yui-ds/src/main/flex/org/seasar/akabana/yui/service/ds/responder/RpcNoneResponder.as
File size: 1546 byte(s)
Fri Mar 26 13:33:23 2010 JST (3 years, 2 months ago) by e1arkw
Original Path: trunk/yui/yui-ds/src/main/flex/org/seasar/akabana/yui/service/ds/responder/RpcNoneResponder.as
File size: 1546 byte(s)
listener->handler,result->rpc_result,fault->rpc_fault
| 1 | /* |
| 2 | * Copyright 2004-2008 the Seasar Foundation and the Others. |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, |
| 13 | * either express or implied. See the License for the specific language |
| 14 | * governing permissions and limitations under the License. |
| 15 | */ |
| 16 | package org.seasar.akabana.yui.service.ds.responder { |
| 17 | |
| 18 | import mx.rpc.IResponder; |
| 19 | import mx.rpc.events.FaultEvent; |
| 20 | import mx.rpc.events.ResultEvent; |
| 21 | |
| 22 | [ExcludeClass] |
| 23 | public class RpcNoneResponder extends AbstractRpcEventResponder { |
| 24 | |
| 25 | public function RpcNoneResponder( resultFunction:Function, faultFunction:Function){ |
| 26 | this.resultFunction = resultFunction; |
| 27 | this.faultFunction = faultFunction; |
| 28 | } |
| 29 | |
| 30 | public override function result(data:Object):void { |
| 31 | resultFunction.call( null ); |
| 32 | resultFunction = null; |
| 33 | faultFunction = null; |
| 34 | } |
| 35 | |
| 36 | public override function fault(info:Object):void { |
| 37 | if( faultFunction != null ){ |
| 38 | faultFunction.call( null ); |
| 39 | } |
| 40 | resultFunction = null; |
| 41 | faultFunction = null; |
| 42 | } |
| 43 | } |
| 44 | } |
| Repository Top ViewVC Help |
![]() |
| Powered by ViewVC |

