当前位置: 首页>>代码示例>>Java>>正文


Java WebApplication.get方法代码示例

本文整理汇总了Java中org.apache.wicket.protocol.http.WebApplication.get方法的典型用法代码示例。如果您正苦于以下问题:Java WebApplication.get方法的具体用法?Java WebApplication.get怎么用?Java WebApplication.get使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.wicket.protocol.http.WebApplication的用法示例。


在下文中一共展示了WebApplication.get方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: get

import org.apache.wicket.protocol.http.WebApplication; //导入方法依赖的package包/类
public static MidPointApplication get() {
    return (MidPointApplication) WebApplication.get();
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:4,代码来源:MidPointApplication.java

示例2: get

import org.apache.wicket.protocol.http.WebApplication; //导入方法依赖的package包/类
public static SingularServerApplication get() {
    return (SingularServerApplication) WebApplication.get();
}
 
开发者ID:opensingular,项目名称:singular-server,代码行数:4,代码来源:SingularServerApplication.java

示例3: open

import org.apache.wicket.protocol.http.WebApplication; //导入方法依赖的package包/类
@Override
public ITearDownHandle open() {
	if (RequestCycle.get() != null) {
		return ExecutionContexts.noOp().open();
	}

	WebApplication application = WebApplication.get();

	final ServletContext context = application.getServletContext();

	final HttpSession newHttpSession = new MockHttpSession(context);
	final MockHttpServletRequest servletRequest = new ContextConfiguredMockHttpServletRequest(application,
			newHttpSession, context);
	final MockHttpServletResponse servletResponse = new MockHttpServletResponse(servletRequest);
	servletRequest.initialize();
	servletResponse.initialize();

	final ServletWebRequest webRequest = new ServletWebRequest(servletRequest, servletRequest.getFilterPrefix());
	final WebResponse webResponse = new BufferedWebResponse(new ServletWebResponse(webRequest, servletResponse));

	RequestCycle requestCycle = application.createRequestCycle(webRequest, webResponse);

	ITearDownHandle handle = new ITearDownHandle() {
		@Override
		public void close() {
			ThreadContext.setSession(null);
			ThreadContext.setRequestCycle(null);
		}
	};
	
	try {
		ThreadContext.setRequestCycle(requestCycle);
		// The session will be set automatically if required
		return handle;
	} catch (RuntimeException e) {
		try {
			handle.close();
		} catch (RuntimeException e2) {
			e.addSuppressed(e2);
		}
		throw e;
	}
}
 
开发者ID:openwide-java,项目名称:owsi-core-parent,代码行数:44,代码来源:WicketContextProviderImpl.java

示例4: get

import org.apache.wicket.protocol.http.WebApplication; //导入方法依赖的package包/类
public static MyApplication get()
{
	return (MyApplication) WebApplication.get();
}
 
开发者ID:sebfz1,项目名称:wicket-quickstart-cdi-async,代码行数:5,代码来源:MyApplication.java

示例5: get

import org.apache.wicket.protocol.http.WebApplication; //导入方法依赖的package包/类
public static UQasar get() {
	return (UQasar) WebApplication.get();
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:4,代码来源:UQasar.java

示例6: get

import org.apache.wicket.protocol.http.WebApplication; //导入方法依赖的package包/类
public static OrientDbWebApplication get()
{
    return (OrientDbWebApplication) WebApplication.get();
}
 
开发者ID:OrienteerBAP,项目名称:wicket-orientdb,代码行数:5,代码来源:OrientDbWebApplication.java

示例7: get

import org.apache.wicket.protocol.http.WebApplication; //导入方法依赖的package包/类
public static SyncopeEnduserApplication get() {
    return (SyncopeEnduserApplication) WebApplication.get();
}
 
开发者ID:apache,项目名称:syncope,代码行数:4,代码来源:SyncopeEnduserApplication.java

示例8: get

import org.apache.wicket.protocol.http.WebApplication; //导入方法依赖的package包/类
public static SyncopeConsoleApplication get() {
    return (SyncopeConsoleApplication) WebApplication.get();
}
 
开发者ID:apache,项目名称:syncope,代码行数:4,代码来源:SyncopeConsoleApplication.java

示例9: get

import org.apache.wicket.protocol.http.WebApplication; //导入方法依赖的package包/类
public static GitBlitWebApp get() {
	return (GitBlitWebApp) WebApplication.get();
}
 
开发者ID:warpfork,项目名称:gitblit,代码行数:4,代码来源:GitBlitWebApp.java

示例10: get

import org.apache.wicket.protocol.http.WebApplication; //导入方法依赖的package包/类
public static DemoApplication get() {
    return (DemoApplication) WebApplication.get();
}
 
开发者ID:documents4j,项目名称:documents4j,代码行数:4,代码来源:DemoApplication.java

示例11: get

import org.apache.wicket.protocol.http.WebApplication; //导入方法依赖的package包/类
public static NextServerApplication get() {
	return (NextServerApplication) WebApplication.get();
}
 
开发者ID:nextreports,项目名称:nextreports-server,代码行数:4,代码来源:NextServerApplication.java


注:本文中的org.apache.wicket.protocol.http.WebApplication.get方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。