本文整理汇总了Java中org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession类的典型用法代码示例。如果您正苦于以下问题:Java AbstractAuthenticatedWebSession类的具体用法?Java AbstractAuthenticatedWebSession怎么用?Java AbstractAuthenticatedWebSession使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AbstractAuthenticatedWebSession类属于org.apache.wicket.authroles.authentication包,在下文中一共展示了AbstractAuthenticatedWebSession类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: LoginPage
import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
public LoginPage(PageParameters parameters) {
super(parameters);
if (((AbstractAuthenticatedWebSession) getSession()).isSignedIn()) {
continueToOriginalDestination();
}
add(new LoginForm("loginForm"));
}
示例2: authenticatedWebSessionConfig
import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Bean
public AuthenticatedWebSessionConfig authenticatedWebSessionConfig(){
return new AuthenticatedWebSessionConfig() {
@Override
public Class<? extends AbstractAuthenticatedWebSession> getAuthenticatedWebSessionClass() {
return SecureWebSession.class;
}
};
}
示例3: getWebSessionClass
import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected Class<? extends AbstractAuthenticatedWebSession> getWebSessionClass() {
return Session.class;
}
示例4: onInitialize
import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected void onInitialize() {
super.onInitialize();
this.originalUrl = RestartResponseAtInterceptPageException.getOriginalUrl();
this.form = new Form<>("form");
this.add(this.form);
this.loginField = new TextField<>("loginField", new PropertyModel<>(this, "login"));
this.loginField.setRequired(true);
this.form.add(this.loginField);
this.loginFeedback = new TextFeedbackPanel("loginFeedback", this.loginField);
this.form.add(this.loginFeedback);
this.passwordField = new PasswordTextField("passwordField", new PropertyModel<>(this, "password"));
this.passwordField.setRequired(true);
this.form.add(this.passwordField);
this.passwordFeedback = new TextFeedbackPanel("passwordFeedback", this.passwordField);
this.form.add(this.passwordFeedback);
this.language = "Khmer";
this.languageField = new DropDownChoice<String>("languageField", new PropertyModel<>(this, "language"), new PropertyModel<>(this, "languages")) {
@Override
protected boolean wantOnSelectionChangedNotifications() {
return true;
}
@Override
protected void onSelectionChanged(String newSelection) {
if (StringUtils.equalsIgnoreCase("Khmer", newSelection)) {
this.getSession().setLocale(new Locale("km"));
} else {
this.getSession().setLocale(new Locale("en"));
}
}
};
this.languageField.setRequired(true);
this.form.add(this.languageField);
this.languageFeedback = new TextFeedbackPanel("languageFeedback", this.languageField);
this.form.add(this.languageFeedback);
this.loginButton = new Button("loginButton");
this.loginButton.setOnSubmit(this::loginButtonOnSubmit);
this.form.add(this.loginButton);
if (AbstractAuthenticatedWebSession.get().isSignedIn()) {
setResponsePage(getApplication().getHomePage());
}
}
示例5: onInitialize
import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected void onInitialize() {
super.onInitialize();
AbstractAuthenticatedWebSession.get().invalidateNow();
setResponsePage(Application.get().getHomePage());
}
示例6: getWebSessionClass
import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected Class<? extends AbstractAuthenticatedWebSession> getWebSessionClass() {
return MySession.class;
}
示例7: getWebSessionClass
import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected Class<? extends AbstractAuthenticatedWebSession> getWebSessionClass() {
return MidPointAuthWebSession.class;
}
示例8: getWebSessionClass
import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected Class<? extends AbstractAuthenticatedWebSession> getWebSessionClass() {
return SingularSession.class;
}
示例9: getWebSessionClass
import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected Class<? extends AbstractAuthenticatedWebSession> getWebSessionClass() {
return WebSession.class;
}
示例10: get
import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
public static WebSession get() {
return (WebSession)AbstractAuthenticatedWebSession.get();
}
示例11: getWebSessionClass
import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected Class<? extends AbstractAuthenticatedWebSession> getWebSessionClass() {
return EtcdWebSession.class;
}
示例12: getWebSessionClass
import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected Class<? extends AbstractAuthenticatedWebSession> getWebSessionClass() {
return SecureWebSession.class;
}
示例13: getWebSessionClass
import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected Class<? extends AbstractAuthenticatedWebSession> getWebSessionClass() {
return applicationContext.getBean(AuthenticatedWebSessionConfig.class).getAuthenticatedWebSessionClass();
}
示例14: getWebSessionImplClass
import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected Class<? extends AbstractAuthenticatedWebSession> getWebSessionImplClass()
{
return WicketWebSession.class;
}
示例15: setWicketSessionClass
import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
/**
* Sets the {@link AbstractAuthenticatedWebSession} for the application.
* @param wicketSessionClass the {@link AbstractAuthenticatedWebSession} class.
* @return the {@link CroquetWicketBuilder}.
*/
public CroquetWicketBuilder<T>
setWicketSessionClass(final Class<? extends AbstractAuthenticatedWebSession> wicketSessionClass) {
settings.setWicketSessionClass(wicketSessionClass);
return this;
}