波波与深蓝

/* * * * * 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() {}; } /* * */

This entry was posted in 爱情一卦. Bookmark the permalink.

One Response to 波波与深蓝

  1. DenMark says:

    好像引号被自动转为全角了?

Leave a Reply

Your email address will not be published. Required fields are marked *