本文整理汇总了Java中org.directwebremoting.extend.Remoter类的典型用法代码示例。如果您正苦于以下问题:Java Remoter类的具体用法?Java Remoter怎么用?Java Remoter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Remoter类属于org.directwebremoting.extend包,在下文中一共展示了Remoter类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setup
import org.directwebremoting.extend.Remoter; //导入依赖的package包/类
@BeforeClass
public static void setup() throws Exception
{
TestEnvironment.engageThread();
TestEnvironment.configureFromClassResource(DwrConstants.PACKAGE_PATH + "/impl/dwr.xml");
container = TestEnvironment.getContainer();
remoter = container.getBean(Remoter.class);
}
示例2: setRemoter
import org.directwebremoting.extend.Remoter; //导入依赖的package包/类
/**
* Setter for the remoter
* @param remoter
*/
public void setRemoter(Remoter remoter)
{
this.remoter = remoter;
}
示例3: setupDefaults
import org.directwebremoting.extend.Remoter; //导入依赖的package包/类
/**
* Take a DefaultContainer and setup the default beans
* @param container The container to configure
* @param servletConfig The source of init parameters
* @throws InstantiationException If we can't instantiate a bean
* @throws IllegalAccessException If we have access problems creating a bean
*/
public static void setupDefaults(DefaultContainer container, ServletConfig servletConfig) throws InstantiationException, IllegalAccessException
{
container.addParameter(AccessControl.class.getName(), DefaultAccessControl.class.getName());
container.addParameter(ConverterManager.class.getName(), DefaultConverterManager.class.getName());
container.addParameter(CreatorManager.class.getName(), DefaultCreatorManager.class.getName());
container.addParameter(UrlProcessor.class.getName(), UrlProcessor.class.getName());
container.addParameter(WebContextBuilder.class.getName(), DefaultWebContextBuilder.class.getName());
container.addParameter(ServerContextBuilder.class.getName(), DefaultServerContextBuilder.class.getName());
container.addParameter(AjaxFilterManager.class.getName(), DefaultAjaxFilterManager.class.getName());
container.addParameter(Remoter.class.getName(), DefaultRemoter.class.getName());
container.addParameter(DebugPageGenerator.class.getName(), DefaultDebugPageGenerator.class.getName());
container.addParameter(PlainCallMarshaller.class.getName(), PlainCallMarshaller.class.getName());
container.addParameter(HtmlCallMarshaller.class.getName(), HtmlCallMarshaller.class.getName());
container.addParameter(PlainPollHandler.class.getName(), PlainPollHandler.class.getName());
container.addParameter(HtmlPollHandler.class.getName(), HtmlPollHandler.class.getName());
container.addParameter(ScriptSessionManager.class.getName(), DefaultScriptSessionManager.class.getName());
container.addParameter(PageNormalizer.class.getName(), DefaultPageNormalizer.class.getName());
if (servletConfig.getServletContext().getServerInfo().startsWith("jetty-6"))
{
container.addParameter(ServerLoadMonitor.class.getName(), ThreadDroppingServerLoadMonitor.class.getName());
}
else
{
container.addParameter(ServerLoadMonitor.class.getName(), DefaultServerLoadMonitor.class.getName());
}
// Mapping handlers to URLs
createUrlMapping(container, "/index.html", "indexHandlerUrl", IndexHandler.class);
createUrlMapping(container, "/engine.js", "engineHandlerUrl", EngineHandler.class);
createUrlMapping(container, "/util.js", "utilHandlerUrl", UtilHandler.class);
createUrlMapping(container, "/auth.js", "authHandlerUrl", AuthHandler.class);
createUrlMapping(container, "/webwork/DWRActionUtil.js", "webworkUtilHandlerUrl", WebworkUtilHandler.class);
createUrlMapping(container, "/about", "aboutHandlerUrl", AboutHandler.class);
createUrlMapping(container, "/test/", "testHandlerUrl", TestHandler.class);
createUrlMapping(container, "/interface/", "interfaceHandlerUrl", InterfaceHandler.class);
// The Poll and Call URLs can not be changed easily because they are
// referenced from engine.js. Maybe one day this would be a good
// extension
createUrlMapping(container, "/call/plaincall/", "plainCallHandlerUrl", PlainCallHandler.class);
createUrlMapping(container, "/call/plainpoll/", "plainPollHandlerUrl", PlainPollHandler.class);
createUrlMapping(container, "/call/htmlcall/", "htmlCallHandlerUrl", HtmlCallHandler.class);
createUrlMapping(container, "/call/htmlpoll/", "htmlPollHandlerUrl", HtmlPollHandler.class);
}
示例4: setRemoter
import org.directwebremoting.extend.Remoter; //导入依赖的package包/类
/**
* Setter for the remoter
* @param remoter The new remoter
*/
public void setRemoter(Remoter remoter)
{
this.remoter = remoter;
}
示例5: setRemoter
import org.directwebremoting.extend.Remoter; //导入依赖的package包/类
/**
* @param remoter the remoter to set
*/
public void setRemoter(Remoter remoter)
{
this.remoter = remoter;
}
示例6: setRemoter
import org.directwebremoting.extend.Remoter; //导入依赖的package包/类
/**
* Setter for the remoter
*
* @param remoter
*/
public void setRemoter(Remoter remoter) {
this.remoter = remoter;
}