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


Java RequestCycleSettings类代码示例

本文整理汇总了Java中org.apache.wicket.settings.RequestCycleSettings的典型用法代码示例。如果您正苦于以下问题:Java RequestCycleSettings类的具体用法?Java RequestCycleSettings怎么用?Java RequestCycleSettings使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: init

import org.apache.wicket.settings.RequestCycleSettings; //导入依赖的package包/类
/**
 * @see org.apache.wicket.Application#init()
 */
@Override
public void init()
{
	super.init();

	// TODO STEP 7b: uncomment to enable injection of fortress spring beans:
	getComponentInstantiationListeners().add(new SpringComponentInjector(this));

	// Catch runtime exceptions this way:
	getRequestCycleListeners().add( new AbstractRequestCycleListener()
	{
		@Override
		public IRequestHandler onException( RequestCycle cycle, Exception e )
		{
			return new RenderPageRequestHandler( new PageProvider( new ErrorPage( e ) ) );
		}
	} );
	getMarkupSettings().setStripWicketTags(true);

	getRequestCycleSettings().setRenderStrategy( RequestCycleSettings.RenderStrategy.ONE_PASS_RENDER);
}
 
开发者ID:shawnmckinney,项目名称:fortress-saml-demo,代码行数:25,代码来源:WicketApplication.java

示例2: init

import org.apache.wicket.settings.RequestCycleSettings; //导入依赖的package包/类
/**
 * @see org.apache.wicket.Application#init()
 */
@Override
public void init()
{
	super.init();

	// Enable injection of fortress spring beans:
	getComponentInstantiationListeners().add(new SpringComponentInjector(this));

	// Catch runtime exceptions this way:
	getRequestCycleListeners().add( new AbstractRequestCycleListener()
	{
		@Override
		public IRequestHandler onException( RequestCycle cycle, Exception e )
		{
			return new RenderPageRequestHandler( new PageProvider( new ErrorPage( e ) ) );
		}
	} );
	getMarkupSettings().setStripWicketTags(true);
	getRequestCycleSettings().setRenderStrategy( RequestCycleSettings.RenderStrategy.ONE_PASS_RENDER);
}
 
开发者ID:shawnmckinney,项目名称:role-engineering-sample,代码行数:24,代码来源:WicketApplication.java

示例3: init

import org.apache.wicket.settings.RequestCycleSettings; //导入依赖的package包/类
@Override
protected void init() {
    super.init();
    new AnnotatedMountScanner().scanPackage("io.github.zutherb.appstash.shop.ui.page").mount(this);
    getMarkupSettings().setStripWicketTags(true);
    getRequestCycleSettings().setRenderStrategy(
            RequestCycleSettings.RenderStrategy.ONE_PASS_RENDER);
    getComponentInstantiationListeners().add(new SpringComponentInjector(this));
    getSecuritySettings().setAuthorizationStrategy(new SpringSecurityAuthorizationStrategy());
    getDebugSettings().setAjaxDebugModeEnabled(false);

    setJavaScriptLibrarySettings(new JavaScriptLibrarySettings());

    getRequestCycleListeners().add(new MicroserviceRequestCycleListener());
    getRequestCycleListeners().add(new DockerRequestCycleListener());
    getRequestCycleListeners().add(new BootstrapDesignRequestCycleListener());
    getRequestCycleListeners().add(new DirectBuyRequestCycleListener());
    getRequestCycleListeners().add(new CartRequestCycleListener());
}
 
开发者ID:zutherb,项目名称:AppStash,代码行数:20,代码来源:ShopApplication.java

示例4: init

import org.apache.wicket.settings.RequestCycleSettings; //导入依赖的package包/类
@Override
public void init(WebApplication webApplication) {
	RequestCycleSettings requestCycleSettings = webApplication.getRequestCycleSettings();
	
	requestCycleSettings.setRenderStrategy(props.getRenderStrategy());
	requestCycleSettings.setBufferResponse(props.isBufferResponse());
	requestCycleSettings.setExceptionRetryCount(props.getExceptionRetryCount());
	requestCycleSettings.setGatherExtendedBrowserInfo(props.isGatherExtendedBrowserInfo());
	requestCycleSettings.setResponseRequestEncoding(props.getResponseRequestEncoding());
	requestCycleSettings.setTimeout(TypeParser.parse(props.getTimeoutSize(), props.getTimeoutUnit()));
	
	wicketEndpointRepository.add(new WicketAutoConfig.Builder(this.getClass())
			.withDetail("properties", props)
			.build());
}
 
开发者ID:MarcGiffing,项目名称:wicket-spring-boot,代码行数:16,代码来源:RequestCycleSettingsConfig.java

示例5: customInit

import org.apache.wicket.settings.RequestCycleSettings; //导入依赖的package包/类
@Override
protected void customInit() {
    // SSO (i.e., real single sign-on) login
    mountBookmarkablePageWithParameters("/login", SSOLoginPage.class);
    // single sign-out
    mountBookmarkablePageWithParameters("/logout", SSOLogoutPage.class);

    getRequestCycleSettings().setRenderStrategy(RequestCycleSettings.RenderStrategy.ONE_PASS_RENDER);
}
 
开发者ID:payneteasy,项目名称:superfly,代码行数:10,代码来源:SSOApplication.java

示例6: customInit

import org.apache.wicket.settings.RequestCycleSettings; //导入依赖的package包/类
@Override
protected void customInit() {
    getSecuritySettings().setAuthorizationStrategy(new SpringSecurityAuthorizationStrategy());
    CryptoMapper requestMapper = new CryptoMapper(getRootRequestMapper(), this);
    setRootRequestMapper(wrapWithInterceptingMapper(requestMapper));

    mountBookmarkablePageWithPath("/loginbase", LoginPageWithoutHOTP.class);
    mountBookmarkablePageWithPath("/login", LoginPasswordStepPage.class);
    mountBookmarkablePageWithPath("/login-step2", LoginHOTPStepPage.class);

    mountBookmarkablePageWithPath("/actions", ListActionsPage.class);
    mountBookmarkablePageWithPath("/actions/copyAction", CopyActionPropertiesPage.class);

    mountBookmarkablePageWithPath("/groups", ListGroupsPage.class);
    mountBookmarkablePageWithPath("/groups/cloneGroup", CloneGroupPage.class);
    mountBookmarkablePageWithPath("/groups/changeGroupActions", ChangeGroupActionsPage.class);
    mountBookmarkablePageWithPath("/groups/view", ViewGroupPage.class);
    mountBookmarkablePageWithPath("/groups/add/addActions", GroupActionsPage.class);
    mountBookmarkablePageWithPath("/groups/add", GroupPropertiesPage.class);

    mountBookmarkablePageWithPath("/roles", ListRolesPage.class);
    mountBookmarkablePageWithPath("/roles/view", ViewRolePage.class);
    mountBookmarkablePageWithPath("/roles/update", EditRolePage.class);
    mountBookmarkablePageWithPath("/roles/add", AddRolePage.class);
    mountBookmarkablePageWithPath("/roles/add/addActions", AddRoleActionsPage.class);
    mountBookmarkablePageWithPath("/roles/add/addGroups", AddRoleGroupsPage.class);
    mountBookmarkablePageWithPath("/roles/changeActions", ChangeRoleActionsPage.class);
    mountBookmarkablePageWithPath("/roles/changeGroups", ChangeRoleGroupsPage.class);

    mountBookmarkablePageWithPath("/subsystems", ListSubsystemsPage.class);
    mountBookmarkablePageWithPath("/subsystems/add", AddSubsystemPage.class);
    mountBookmarkablePageWithPath("/subsystems/update", EditSubsystemPage.class);


    mountBookmarkablePageWithPath("/users", ListUsersPage.class);
    mountBookmarkablePageWithPath("/users/create", CreateUserPage.class);
    mountBookmarkablePageWithPath("/users/update", EditUserPage.class);
    mountBookmarkablePageWithPath("/users/clone", CloneUserPage.class);
    mountBookmarkablePageWithPath("/users/changeRoles", ChangeUserRolesPage.class);
    mountBookmarkablePageWithPath("/users/changeActions", ChangeUserGrantActionsPage.class);
    mountBookmarkablePageWithPath("/users/view", UserDetailsPage.class);
    mountBookmarkablePageWithPath("/users/addSubsystemWithRole", AppendSubsystemWithRolePage.class);

    mountBookmarkablePageWithPath("/sessions", ListSessionsPage.class);
    mountBookmarkablePageWithPath("/changepassword", ChangePasswordPage.class);

    mountBookmarkablePageWithPath("smtp-servers", ListSmtpServersPage.class);
    mountBookmarkablePageWithPath("smtp-servers/create", CreateSmtpServerPage.class);
    mountBookmarkablePageWithPath("smtp-servers/update", UpdateSmtpServerPage.class);
    mountBookmarkablePageWithPath("smtp-servers/view", ViewSmtpServerPage.class);

    getRequestCycleSettings().setRenderStrategy(RequestCycleSettings.RenderStrategy.REDIRECT_TO_RENDER);
}
 
开发者ID:payneteasy,项目名称:superfly,代码行数:54,代码来源:SuperflyApplication.java


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