本文整理汇总了Java中org.apache.isis.viewer.wicket.viewer.integration.wicket.AuthenticatedWebSessionForIsis类的典型用法代码示例。如果您正苦于以下问题:Java AuthenticatedWebSessionForIsis类的具体用法?Java AuthenticatedWebSessionForIsis怎么用?Java AuthenticatedWebSessionForIsis使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AuthenticatedWebSessionForIsis类属于org.apache.isis.viewer.wicket.viewer.integration.wicket包,在下文中一共展示了AuthenticatedWebSessionForIsis类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: newSession
import org.apache.isis.viewer.wicket.viewer.integration.wicket.AuthenticatedWebSessionForIsis; //导入依赖的package包/类
@Override
public Session newSession(final Request request, final Response response) {
if(!DEMO_MODE_USING_CREDENTIALS_AS_QUERYARGS) {
return super.newSession(request, response);
}
// else demo mode
final AuthenticatedWebSessionForIsis s = (AuthenticatedWebSessionForIsis) super.newSession(request, response);
final org.apache.wicket.util.string.StringValue user = request.getRequestParameters().getParameterValue("user");
final org.apache.wicket.util.string.StringValue password = request.getRequestParameters().getParameterValue("pass");
s.signIn(user.toString(), password.toString());
return s;
}
示例2: newSession
import org.apache.isis.viewer.wicket.viewer.integration.wicket.AuthenticatedWebSessionForIsis; //导入依赖的package包/类
@Override
public Session newSession(final Request request, final Response response) {
if(!DEMO_MODE_USING_CREDENTIALS_AS_QUERYARGS) {
return super.newSession(request, response);
}
// else demo mode
final AuthenticatedWebSessionForIsis s = (AuthenticatedWebSessionForIsis) super.newSession(request, response);
IRequestParameters requestParameters = request.getRequestParameters();
final org.apache.wicket.util.string.StringValue user = requestParameters.getParameterValue("user");
final org.apache.wicket.util.string.StringValue password = requestParameters.getParameterValue("pass");
s.signIn(user.toString(), password.toString());
return s;
}