@Override protected HttpServletRequest load() { return ((WebRequestCycle)RequestCycle.get()).getWebRequest().getHttpServletRequest(); } }
/** * {@inheritDoc} */ @Override protected HttpServletRequest load() { return ((WebRequestCycle)RequestCycle.get()).getWebRequest().getHttpServletRequest(); } }
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put("value", getWebRequestCycle().getWebRequest().getHttpServletRequest().getServerName()); } });
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put("value", getWebRequestCycle().getWebRequest().getHttpServletRequest().getServerPort()); } });
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put("value", getWebRequestCycle().getWebRequest().getHttpServletRequest().getRemoteHost()); } });
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put("value", getWebRequestCycle().getWebRequest().getHttpServletRequest().getRemoteAddr()); } });
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put("value", getWebRequestCycle().getWebRequest().getHttpServletRequest().getRemoteHost()); } });
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put("value", getWebRequestCycle().getWebRequest().getHttpServletRequest().getRemoteAddr()); } });
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put("value", getWebRequestCycle().getWebRequest().getHttpServletRequest().getServerName()); } });
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put("value", getWebRequestCycle().getWebRequest().getHttpServletRequest().getServerPort()); } });
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put("value", getWebRequestCycle().getWebRequest().getHttpServletRequest().getSession(true).getServletContext().getServerInfo()); } });
/** * Returns the HTML id of the last focused element. * * @return */ public String getLastFocusedElementId() { String id = ((WebRequestCycle)RequestCycle.get()).getWebRequest() .getHttpServletRequest() .getHeader("Wicket-FocusedElementId"); return Strings.isEmpty(id) ? null : id; } }
/** * If it's an ajax request we always redirect. * * @see org.apache.wicket.RequestCycle#isRedirect() */ @Override public final boolean isRedirect() { if (getWebRequest().isAjax()) { return true; } else { return super.isRedirect(); } }
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put("value", getWebRequestCycle().getWebRequest().getHttpServletRequest().getSession(true).getServletContext().getServerInfo()); } });
/** * Returns the HTML id of the last focused element. * * @return markup id of last focused element, <code>null</code> if none */ public String getLastFocusedElementId() { String id = ((WebRequestCycle)RequestCycle.get()).getWebRequest() .getHttpServletRequest() .getHeader("Wicket-FocusedElementId"); return Strings.isEmpty(id) ? null : id; } }
/** * If it's an ajax request we always redirect. * * @see org.apache.wicket.RequestCycle#isRedirect() */ public final boolean isRedirect() { if (getWebRequest().isAjax()) { return true; } else { return super.isRedirect(); } } }
/** * Construct. * * @param requestCycle * the request cycle */ public WebClientInfo(WebRequestCycle requestCycle) { super(); HttpServletRequest httpServletRequest = requestCycle.getWebRequest() .getHttpServletRequest(); userAgent = httpServletRequest.getHeader("User-Agent"); properties.setRemoteAddress(getRemoteAddr(requestCycle)); init(); }
/** * Construct. * * @param requestCycle * the request cycle */ public WebClientInfo(WebRequestCycle requestCycle) { super(); HttpServletRequest httpServletRequest = requestCycle.getWebRequest() .getHttpServletRequest(); userAgent = httpServletRequest.getHeader("User-Agent"); properties.setRemoteAddress(getRemoteAddr(requestCycle)); init(); }
/** * Construct. * * @param requestCycle * the request cycle * @param userAgent * the user agent */ public WebClientInfo(WebRequestCycle requestCycle, String userAgent) { super(); this.userAgent = userAgent; requestCycle.getWebRequest().getHttpServletRequest(); properties.setRemoteAddress(getRemoteAddr(requestCycle)); init(); }
/** * Construct. * * @param requestCycle * the request cycle * @param userAgent * the user agent */ public WebClientInfo(WebRequestCycle requestCycle, String userAgent) { super(); this.userAgent = userAgent; HttpServletRequest httpServletRequest = requestCycle.getWebRequest() .getHttpServletRequest(); properties.setRemoteAddress(getRemoteAddr(requestCycle)); init(); }