/* * * * * Copyright (c) 2007 java2script.org and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Zhou Renjian – initial API and implementation * * */ package net.sf.j2s.ajax; /** * @author zhou renjian * * 2006-10-10 */ public abstract class SimpleRPCRunnable extends SimpleSerializable { public String getHttpURL() { return “simplerpc”; // url is relative to the servlet! } public String getHttpMethod() { return “POST”; } /* * Actually there is synchronous call of this #ajaxIn method */ public void ajaxIn() {}; /** * Called by local Java thread of XMLHttpRequest or by remote servlet. * In this method, those public fields which has no senses for #ajaxOut * should be set empty so the transfer is much smaller and faster. */ public abstract void ajaxRun(); /* * Called by local Java thread of XMLHttpRequest after #ajaxRun */ public void ajaxOut() {}; /* * Called by local Java thread of XMLHttpRequest when #ajaxRun contains errors */ public void ajaxFail() {}; } /* * */
-
Recent Posts
Recent Comments
- lisafang on 本Blog的初衷
- 叶宇 on 躲在墙外来一刻自恋
- 叶宇 on 躲在墙外来一刻自恋
- shawn on 电信封杀GoDaddy始末、得失、分析与猜测
- Zhou Renjian on 被墙了
Archives
- March 2011 (1)
- January 2011 (1)
- November 2010 (2)
- October 2010 (3)
- September 2010 (2)
- August 2010 (1)
- July 2010 (2)
- June 2010 (2)
- May 2010 (7)
- April 2010 (1)
- March 2010 (3)
- February 2010 (1)
- January 2010 (3)
- December 2009 (4)
- November 2009 (5)
- October 2009 (2)
- September 2009 (4)
- August 2009 (4)
- July 2009 (3)
- June 2009 (6)
- May 2009 (7)
- April 2009 (4)
- March 2009 (6)
- February 2009 (10)
- January 2009 (3)
- December 2008 (6)
- November 2008 (5)
- October 2008 (3)
- September 2008 (4)
- August 2008 (3)
- July 2008 (2)
- June 2008 (2)
- April 2008 (10)
- March 2008 (19)
- February 2008 (17)
- January 2008 (14)
- December 2007 (15)
- November 2007 (21)
- October 2007 (27)
- September 2007 (29)
- August 2007 (20)
- July 2007 (21)
- June 2007 (26)
- May 2007 (41)
Categories
- Coupon Code (1)
- GoDaddy (4)
- Google (9)
- Joost (3)
- Logo (13)
- 上海地铁 (6)
- 乐一卦 (6)
- 亲情无限 (8)
- 分享 (49)
- 博客技巧 (26)
- 另外一个女孩 (4)
- 吃一卦 (7)
- 和谐 (10)
- 喝一卦 (2)
- 垃圾留言 (1)
- 垃圾短信 (1)
- 女朋友 (16)
- 娱乐大众 (8)
- 宝宝 (3)
- 家 (3)
- 广告 (7)
- 广州 (2)
- 忙 (2)
- 思考 (86)
- 手机 (3)
- 时代脉搏 (9)
- 春秋航空 (6)
- 曾经岁月 (24)
- 朋友 (55)
- 来一卦 (129)
- 每天云彩 (25)
- 爱情一卦 (29)
- 玩一卦 (10)
- 生活技巧 (38)
- 生活百科 (7)
- 生活色彩 (3)
- 生活郁闷 (28)
- 电影 (5)
- 男朋友 (3)
- 短信流氓 (2)
- 秋意 (7)
- 老爸 (1)
- 聊天插件 (5)
- 聊天记录 (10)
- 行一卦 (1)
- 轮滑 (8)
- 随便说说 (22)
- 雪 (3)
推荐
朋友Blog
链接
Meta
好像引号被自动转为全角了?