• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Request类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: cacheRequest

import org.apache.wicket.Request; //导入依赖的package包/类
/**
 * Cache the requested protected resource pending successful authentication.
 * 
 * @param pageClass
 */
public void cacheRequest(Class<? extends Page> pageClass) {
	// build absolute url with correctly encoded parameters?!
	Request req = WebRequestCycle.get().getRequest();
	Map<String, ?> params = req.getRequestParameters().getParameters();
	PageParameters pageParams = new PageParameters(params);
	String relativeUrl = WebRequestCycle.get().urlFor(pageClass, pageParams).toString();
	requestUrl = RequestUtils.toAbsolutePath(relativeUrl);
	if (isTemporary())
	{
		// we must bind the temporary session into the session store
		// so that we can re-use this session for reporting an error message
		// on the redirected page and continuing the request after
		// authentication.
		bind();
	}
}
 
开发者ID:warpfork,项目名称:gitblit,代码行数:22,代码来源:GitBlitWebSession.java


示例2: getIpAddress

import org.apache.wicket.Request; //导入依赖的package包/类
public static String getIpAddress(WebPage page) {
    if (page == null) {
        return "null-page";
    }
    Request request = page.getRequest();
    if (request instanceof WebRequest) {
        WebRequest webreq = (WebRequest) request;
        return webreq.getHttpServletRequest().getRemoteAddr();
    }
    return null;
}
 
开发者ID:openNaEF,项目名称:openNaEF,代码行数:12,代码来源:AAAWebUtil.java


示例3: OntopolySession

import org.apache.wicket.Request; //导入依赖的package包/类
protected OntopolySession(Request request, Response response, OntopolyApplication ontopolyApplication) {
    super(request);

    this.accessStrategy = ontopolyApplication.newAccessStrategy();
    
    // attempt to automatically login user
    if (accessStrategy.isEnabled()) {
      WebRequest wr = (WebRequest)request;
      User authenticatedUser = this.accessStrategy.autoAuthenticate(wr.getHttpServletRequest());
      if (authenticatedUser != null)
        setUser(authenticatedUser);
    }
    // set locale
//    setLocale(new Locale("no"));
  }
 
开发者ID:ontopia,项目名称:ontopia,代码行数:16,代码来源:OntopolySession.java


示例4: getLockerId

import org.apache.wicket.Request; //导入依赖的package包/类
public String getLockerId(Request request) {
  User user = getUser();
  String lockerId = (user == null ? null : user.getName());
  if (lockerId == null)
    lockerId = getApplication().getSessionStore().getSessionId(request, true); // WARNING: will create new session
  return lockerId;
}
 
开发者ID:ontopia,项目名称:ontopia,代码行数:8,代码来源:OntopolySession.java


示例5: newSession

import org.apache.wicket.Request; //导入依赖的package包/类
@Override
public final Session newSession(Request request, Response response) {
	GitBlitWebSession gitBlitWebSession = new GitBlitWebSession(request);

	String forcedLocale = GitBlit.getString(Keys.web.forceDefaultLocale, null);
	if (!StringUtils.isEmpty(forcedLocale)) {
		gitBlitWebSession.setLocale(new Locale(forcedLocale));
	}
	return gitBlitWebSession;
}
 
开发者ID:warpfork,项目名称:gitblit,代码行数:11,代码来源:GitBlitWebApp.java


示例6: newRequestCycle

import org.apache.wicket.Request; //导入依赖的package包/类
@Override
    public RequestCycle newRequestCycle(Request request, Response response) {
//    	WebRequest webRequest = (WebRequest) request;
//		String displayLang = webRequest.getParameter(BaseConstellioPage.DISPLAY_LANG_PARAM);
//		if (StringUtils.isNotBlank(displayLang)) {
//			for (Locale supportedLocale : ConstellioSpringUtils.getSupportedLocales()) {
//				if (supportedLocale.getLanguage().equals(displayLang)) {
//					ConstellioSession.get().changeLocale(supportedLocale);
//					break;
//				}
//			}
//		}
        return new PersistenceAwareWebRequestCycle(this, (WebRequest) request, response);
    }
 
开发者ID:BassJel,项目名称:Jouve-Project,代码行数:15,代码来源:ConstellioApplication.java


示例7: newRequestCycle

import org.apache.wicket.Request; //导入依赖的package包/类
@Override
public final RequestCycle newRequestCycle(final Request request, final Response response) {
    return new InventoryRequestCycle(this, (WebRequest) request, (WebResponse) response);
}
 
开发者ID:openNaEF,项目名称:openNaEF,代码行数:5,代码来源:MplsnmsDiffConfigurationApplication.java


示例8: InventoryWebSession

import org.apache.wicket.Request; //导入依赖的package包/类
public InventoryWebSession(Request request) {
    super(request);
}
 
开发者ID:openNaEF,项目名称:openNaEF,代码行数:4,代码来源:InventoryWebSession.java


示例9: decode

import org.apache.wicket.Request; //导入依赖的package包/类
@Override
public RequestParameters decode(Request request) {
  return defaultStrategy.decode(request);
}
 
开发者ID:ontopia,项目名称:ontopia,代码行数:5,代码来源:AbsoluteUrlRequestCodingStrategy.java


示例10: OntopolyRequestCycle

import org.apache.wicket.Request; //导入依赖的package包/类
public OntopolyRequestCycle(OntopolyApplication application, Request request, Response response) {
  super(application, (WebRequest)request, response);
}
 
开发者ID:ontopia,项目名称:ontopia,代码行数:4,代码来源:OntopolyRequestCycle.java


示例11: newRequestCycle

import org.apache.wicket.Request; //导入依赖的package包/类
@Override
public RequestCycle newRequestCycle(Request request, Response response) {
  return new OntopolyRequestCycle(this, request, response);
}
 
开发者ID:ontopia,项目名称:ontopia,代码行数:5,代码来源:OntopolyApplication.java


示例12: newSession

import org.apache.wicket.Request; //导入依赖的package包/类
@Override
public Session newSession(Request request, Response response) {
  return new OntopolySession(request, response, this);
}
 
开发者ID:ontopia,项目名称:ontopia,代码行数:5,代码来源:OntopolyApplication.java


示例13: DemoSession

import org.apache.wicket.Request; //导入依赖的package包/类
public DemoSession(Request request) {
	super(request);
}
 
开发者ID:r-h,项目名称:wicket-notes-demo,代码行数:4,代码来源:DemoSession.java


示例14: newSession

import org.apache.wicket.Request; //导入依赖的package包/类
@Override
public Session newSession(Request request, Response response) {
	return new DemoSession(request);
}
 
开发者ID:r-h,项目名称:wicket-notes-demo,代码行数:5,代码来源:WicketApplication.java


示例15: FMBrowserSession

import org.apache.wicket.Request; //导入依赖的package包/类
/**
 * @param request
 */
public FMBrowserSession(Request request) {
  super(request);
  this.crit = new Vector<TermQueryCriteria>();
}
 
开发者ID:apache,项目名称:oodt,代码行数:8,代码来源:FMBrowserSession.java


示例16: newSession

import org.apache.wicket.Request; //导入依赖的package包/类
@Override
public Session newSession(Request request, Response response) {
  return new FMBrowserSession(request);
}
 
开发者ID:apache,项目名称:oodt,代码行数:5,代码来源:FMBrowserAppBase.java


示例17: CurationSession

import org.apache.wicket.Request; //导入依赖的package包/类
public CurationSession(Request request) {
  super(request);
}
 
开发者ID:apache,项目名称:oodt,代码行数:4,代码来源:CurationSession.java


示例18: GitBlitWebSession

import org.apache.wicket.Request; //导入依赖的package包/类
public GitBlitWebSession(Request request) {
	super(request);
	isForking = new AtomicBoolean();
	authenticationType = AuthenticationType.CREDENTIALS;
}
 
开发者ID:warpfork,项目名称:gitblit,代码行数:6,代码来源:GitBlitWebSession.java


示例19: getGitblitURL

import org.apache.wicket.Request; //导入依赖的package包/类
public static String getGitblitURL(Request request) {
	HttpServletRequest req = ((WebRequest) request).getHttpServletRequest();
	return HttpUtils.getGitblitURL(req);
}
 
开发者ID:warpfork,项目名称:gitblit,代码行数:5,代码来源:WicketUtils.java


示例20: BlogSession

import org.apache.wicket.Request; //导入依赖的package包/类
public BlogSession(Request request) {
	super(request);
}
 
开发者ID:rla,项目名称:old-blog,代码行数:4,代码来源:BlogSession.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ValidationException类代码示例发布时间:2022-05-23
下一篇:
Java ExprFunction类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap