本文整理汇总了Java中org.apache.wicket.request.IRequestMapper类的典型用法代码示例。如果您正苦于以下问题:Java IRequestMapper类的具体用法?Java IRequestMapper怎么用?Java IRequestMapper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IRequestMapper类属于org.apache.wicket.request包,在下文中一共展示了IRequestMapper类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: init
import org.apache.wicket.request.IRequestMapper; //导入依赖的package包/类
protected void init() {
super.init();
// Home page
mountPage("/admin", AdminPage.class);
// On wicket session timeout or wicket exception, redirect to main page
getApplicationSettings().setPageExpiredErrorPage(AdminPage.class);
getApplicationSettings().setAccessDeniedPage(AdminPage.class);
getApplicationSettings().setInternalErrorPage(AdminPage.class);
// show internal error page rather than default developer page
getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);
// Encrypt URLs. This immediately sets up a session (note that things like CSS now becomes bound to the session)
getSecuritySettings().setCryptFactory(new KeyInSessionSunJceCryptFactory()); // Different key per user
final IRequestMapper cryptoMapper = new CryptoMapper(getRootRequestMapper(), this);
setRootRequestMapper(cryptoMapper);
}
开发者ID:sakaiproject,项目名称:sakai,代码行数:20,代码来源:SiteStatsAdminApplication.java
示例2: initDefaultPageMounts
import org.apache.wicket.request.IRequestMapper; //导入依赖的package包/类
protected void initDefaultPageMounts()
{
mountPage("/login.html", getSignInPageClass());
mountPage("/welcome.html", getHomePage());
// Mount the other pages via @MountPath annotation on the page classes
AnnotatedMountList mounts = new AnnotatedMountScanner().scanPackage("de.tudarmstadt.ukp");
for (IRequestMapper mapper : mounts) {
if (mapper instanceof HomePageMapper) {
System.out.println(mapper);
}
}
mounts.mount(this);
}
开发者ID:webanno,项目名称:webanno,代码行数:15,代码来源:WicketApplicationBase.java
示例3: init
import org.apache.wicket.request.IRequestMapper; //导入依赖的package包/类
@Override
protected void init() {
super.init();
// Configure for Spring injection
getComponentInstantiationListeners().add(new SpringComponentInjector(this));
getResourceSettings().setThrowExceptionOnMissingResource(false);
getMarkupSettings().setStripWicketTags(true);
getMarkupSettings().setDefaultBeforeDisabledLink(null);
getMarkupSettings().setDefaultAfterDisabledLink(null);
// On Wicket session timeout, redirect to main page
getApplicationSettings().setPageExpiredErrorPage(MyProfile.class);
getApplicationSettings().setAccessDeniedPage(MyProfile.class);
// Custom resource loader since our properties are not in the default location
getResourceSettings().getStringResourceLoaders().add(new ProfileStringResourceLoader());
// Throw RuntimeExceptions so they are caught by the Sakai ErrorReportHandler
getRequestCycleListeners().add(new SakaiRequestCycleListener());
// page mounting so async calls work correctly with the cryptomapper
// mountPage("/messages", MyMessages.class);
// encrypt URLs
// this immediately sets up a session (note that things like css now becomes bound to the session)
getSecuritySettings().setCryptFactory(new KeyInSessionSunJceCryptFactory()); // diff key per user
final IRequestMapper cryptoMapper = new CryptoMapper(getRootRequestMapper(), this);
setRootRequestMapper(cryptoMapper);
// page mounting
mountPage("/connections", MyFriends.class);
mountPage("/messages", MyMessages.class);
mountPage("/profile", MyProfile.class);
mountPage("/viewprofile/${id}", ViewProfile.class);
}
开发者ID:sakaiproject,项目名称:sakai,代码行数:39,代码来源:ProfileApplication.java
示例4: getRequestMappers
import org.apache.wicket.request.IRequestMapper; //导入依赖的package包/类
public Iterable<IRequestMapper> getRequestMappers() {
return getRootRequestMapperAsCompound();
}
开发者ID:jmfgdev,项目名称:gitplex-mit,代码行数:4,代码来源:GitPlexWebApplication.java
示例5: iterator
import org.apache.wicket.request.IRequestMapper; //导入依赖的package包/类
@Override
public Iterator<IRequestMapper> iterator() {
return delegate.iterator();
}
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:5,代码来源:DelegateWicketResourceFixingRequestMapper.java
示例6: add
import org.apache.wicket.request.IRequestMapper; //导入依赖的package包/类
@Override
public ICompoundRequestMapper add(final IRequestMapper mapper) {
return delegate.add(mapper);
}
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:5,代码来源:DelegateWicketResourceFixingRequestMapper.java
示例7: remove
import org.apache.wicket.request.IRequestMapper; //导入依赖的package包/类
@Override
public ICompoundRequestMapper remove(final IRequestMapper mapper) {
return delegate.remove(mapper);
}
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:5,代码来源:DelegateWicketResourceFixingRequestMapper.java
示例8: init
import org.apache.wicket.request.IRequestMapper; //导入依赖的package包/类
/**
* Define application settings
*/
@Override
protected void init() {
if (logger.isDebugEnabled()) {
logger.debug("Wicket application init (configurationType:[{}])", getConfigurationType());
}
defineSpringInjector();
if (!RuntimeConfigurationType.DEVELOPMENT.equals(getConfigurationType())) {
// change default error/timeout pages in production mode
//defineErrorPage();
// remove "wicket:id" from html generated code in production mode
getMarkupSettings().setStripWicketTags(true);
} else {
setupDevelopmentSettings();
}
//TODO Remove
// getDebugSettings().setAjaxDebugModeEnabled(true);
IApplicationSettings settings = getApplicationSettings();
// https://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html
settings.setInternalErrorPage(UnknownExceptionPage.class);
// settings.setAccessDeniedPage();
// settings.setPageExpiredErrorPage();
getRequestCycleListeners().add(new ExecutionHandlerRequestCycle(this, new WebPageBaseFactory()));
//TODO : Not available in Wicket 1.5 because it's enabled by default. Why was it disabled?
// getPageSettings().setAutomaticMultiWindowSupport(false);
//will encrypt/decrypt the URLs generated by the inner one
IRequestMapper cryptoMapper = new CryptoMapper(getRootRequestMapper(), this);
setRootRequestMapper(cryptoMapper);
// ICryptFactory jasyptCryptFactory = new JasyptCryptFactory(urlEncryptor);
// getSecuritySettings().setCryptFactory(jasyptCryptFactory);
mountBookmarks();
// https://cwiki.apache.org/WICKET/request-mapping.html
// https://issues.apache.org/jira/browse/WICKET-4488
// URL with a previous page version ignores requested page based on mount path
// http://apache-wicket.1842946.n4.nabble.com/I-don-t-want-url-page-count-parameter-localhost-8080-context-0-td4481510i40.html
super.init();
WicketWebjars.install(this);
new BeanValidationConfiguration().configure(this);
// For VMWare SDK logging (vCloud API)
// call only once during initialization time of your application
// Do not work (NPE on undeploy)
// SLF4JBridgeHandler.install();
}
开发者ID:orange-cloudfoundry,项目名称:elpaaso-core,代码行数:49,代码来源:WicketApplication.java
示例9: init
import org.apache.wicket.request.IRequestMapper; //导入依赖的package包/类
@Override
protected void init() {
super.init();
// Configure general wicket application settings
getComponentInstantiationListeners().add(new SpringComponentInjector(this));
getResourceSettings().setThrowExceptionOnMissingResource(false);
getMarkupSettings().setStripWicketTags(true);
getResourceSettings().getStringResourceLoaders().add(new SiteStatsStringResourceLoader());
getResourceSettings().getResourceFinders().add(new WebApplicationPath(getServletContext(), "html"));
getResourceSettings().setResourceStreamLocator(new SiteStatsResourceStreamLocator());
getDebugSettings().setAjaxDebugModeEnabled(debug);
// Home page
mountPage("/home", OverviewPage.class);
// On wicket session timeout, redirect to main page
getApplicationSettings().setPageExpiredErrorPage(OverviewPage.class);
getApplicationSettings().setAccessDeniedPage(OverviewPage.class);
// Debugging
debug = ServerConfigurationService.getBoolean("sitestats.debug", false);
if(debug) {
getDebugSettings().setComponentUseCheck(true);
getDebugSettings().setAjaxDebugModeEnabled(true);
getDebugSettings().setLinePreciseReportingOnAddComponentEnabled(true);
getDebugSettings().setLinePreciseReportingOnNewComponentEnabled(true);
getDebugSettings().setOutputComponentPath(true);
getDebugSettings().setOutputMarkupContainerClassName(true);
getDebugSettings().setDevelopmentUtilitiesEnabled(true);
getMarkupSettings().setStripWicketTags(false);
getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_EXCEPTION_PAGE);
// register standard debug contributors so that just setting the sitestats.debug property is enough to turn these on
// otherwise, you have to turn wicket development mode on to get this populated due to the order methods are called
DebugBar.registerContributor(VersionDebugContributor.DEBUG_BAR_CONTRIB, this);
DebugBar.registerContributor(InspectorDebugPanel.DEBUG_BAR_CONTRIB, this);
DebugBar.registerContributor(SessionSizeDebugPanel.DEBUG_BAR_CONTRIB, this);
DebugBar.registerContributor(PageSizeDebugPanel.DEBUG_BAR_CONTRIB, this);
}
else
{
// Throw RuntimeDeceptions so they are caught by the Sakai ErrorReportHandler
getRequestCycleListeners().add(new AbstractRequestCycleListener()
{
@Override
public IRequestHandler onException(RequestCycle cycle, Exception ex)
{
if (ex instanceof RuntimeException)
{
throw (RuntimeException) ex;
}
return null;
}
});
}
// Encrypt URLs. This immediately sets up a session (note that things like CSS now becomes bound to the session)
getSecuritySettings().setCryptFactory(new KeyInSessionSunJceCryptFactory()); // Different key per user
final IRequestMapper cryptoMapper = new CryptoMapper(getRootRequestMapper(), this);
setRootRequestMapper(cryptoMapper);
}
开发者ID:sakaiproject,项目名称:sakai,代码行数:62,代码来源:SiteStatsApplication.java
示例10: wrapWithInterceptingMapper
import org.apache.wicket.request.IRequestMapper; //导入依赖的package包/类
@Override
protected IRequestMapper wrapWithInterceptingMapper(IRequestMapper mapper) {
return new PageInterceptingRequestMapper(mapper,
createInterceptionDecisions(), ChangePasswordPage.class);
}
开发者ID:payneteasy,项目名称:superfly,代码行数:6,代码来源:SuperflyApplication.java
示例11: wrapWithInterceptingMapper
import org.apache.wicket.request.IRequestMapper; //导入依赖的package包/类
protected IRequestMapper wrapWithInterceptingMapper(IRequestMapper mapper) {
return mapper;
}
开发者ID:payneteasy,项目名称:superfly,代码行数:4,代码来源:BaseApplication.java
示例12: PageInterceptingRequestMapper
import org.apache.wicket.request.IRequestMapper; //导入依赖的package包/类
public PageInterceptingRequestMapper(IRequestMapper delegate, InterceptionDecisions interceptionDecisions,
Class<? extends IRequestablePage> interceptorPageClass) {
this.delegate = delegate;
this.interceptionDecisions = interceptionDecisions;
this.interceptorPageClass = interceptorPageClass;
}
开发者ID:payneteasy,项目名称:superfly,代码行数:7,代码来源:PageInterceptingRequestMapper.java
示例13: getRootRequestMapper
import org.apache.wicket.request.IRequestMapper; //导入依赖的package包/类
IRequestMapper getRootRequestMapper();
开发者ID:apache,项目名称:openmeetings,代码行数:2,代码来源:IApplication.java
注:本文中的org.apache.wicket.request.IRequestMapper类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论