本文整理了Java中org.apache.wicket.ThreadContext.getRequestCycle()
方法的一些代码示例,展示了ThreadContext.getRequestCycle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ThreadContext.getRequestCycle()
方法的具体详情如下:
包路径:org.apache.wicket.ThreadContext
类名称:ThreadContext
方法名:getRequestCycle
暂无
代码示例来源:origin: org.apache.wicket/wicket-core
/**
* Returns request cycle associated with current thread.
*
* @return request cycle instance or <code>null</code> if no request cycle is associated with
* current thread.
*/
public static RequestCycle get()
{
return ThreadContext.getRequestCycle();
}
代码示例来源:origin: apache/wicket
/**
* Returns request cycle associated with current thread.
*
* @return request cycle instance or <code>null</code> if no request cycle is associated with
* current thread.
*/
public static RequestCycle get()
{
return ThreadContext.getRequestCycle();
}
代码示例来源:origin: at.molindo/molindo-wicket-utils
public static void performRedirect(final String targetURL, final int statusCode) {
ThreadContext.getRequestCycle().scheduleRequestHandlerAfterCurrent(
new RedirectRequestHandler(targetURL, statusCode));
}
代码示例来源:origin: org.wicketstuff/wicketstuff-portlet
public static boolean isAjax() {
RequestCycle requestCycle = ThreadContext.getRequestCycle();
return (requestCycle != null) ? ((WebRequest) requestCycle.getRequest()).isAjax() : false;
}
代码示例来源:origin: org.wicketstuff/wicketstuff-portlet
public static HttpServletRequest getHttpServletRequest() {
return (HttpServletRequest) ThreadContext.getRequestCycle().getRequest().getContainerRequest();
}
代码示例来源:origin: org.wicketstuff/wicketstuff-portlet
public static HttpServletResponse getHttpServletResponse() {
return (HttpServletResponse) ThreadContext.getRequestCycle().getResponse().getContainerResponse();
}
代码示例来源:origin: org.apache.wicket/wicket-core
final RequestCycle requestCycle = ThreadContext.getRequestCycle();
代码示例来源:origin: apache/wicket
final RequestCycle requestCycle = ThreadContext.getRequestCycle();
代码示例来源:origin: org.wicketstuff/wicketstuff-gmap3
/**
* Sets the animation type for this marker.
*
* @param animation The animation which should be applied to this marker.
* Pass NULL if you want to stop an ongoing animation.
*
* @see org.wicketstuff.gmap.api.GAnimation
*/
public void setAnimation(GAnimation animation)
{
Optional<AjaxRequestTarget> targetOptional = getRequestCycle().find(AjaxRequestTarget.class);
targetOptional.ifPresent(target -> {
options.setAnimation(animation);
String animationToSet = null;
if (animation != null)
{
animationToSet = animation.toString();
}
target.appendJavaScript(getParent().getJsReference() + ".overlays['overlay" + getId() + "'].setAnimation("+animationToSet+")");
});
}
代码示例来源:origin: apache/wicket
RequestCycle oldRequestCycle = ThreadContext.getRequestCycle();
代码示例来源:origin: org.apache.wicket/wicket-native-websocket-core
RequestCycle oldRequestCycle = ThreadContext.getRequestCycle();
代码示例来源:origin: theonedev/onedev
RequestCycle oldRequestCycle = ThreadContext.getRequestCycle();
内容来源于网络,如有侵权,请联系作者删除!