Package org.apache.wicket.protocol.http.request

Examples of org.apache.wicket.protocol.http.request.WebClientInfo


  public static WebClientInfo getClientInfo() {
    return (WebClientInfo) Session.get().getClientInfo();
  }

  public static String getUserAgent() {
    final WebClientInfo info = getClientInfo();
    return info == null ? null : info.getUserAgent();
  }
View Full Code Here


  /**
   * @return true if cookies are disabled, false if unknown
   */
  public static boolean isCookiesDisabled() {
    final WebClientInfo info = getClientInfo();
    return info == null || info.getProperties() == null ? false : !info.getProperties().isCookiesEnabled();

  }
View Full Code Here

    return info == null || info.getProperties() == null ? false : !info.getProperties().isCookiesEnabled();

  }

  public static String getClientInfoString() {
    final WebClientInfo info = getClientInfo();
    return info == null ? null : info.getUserAgent() + " (" + info.getProperties().getRemoteAddress() + ")";
  }
View Full Code Here

  public static WebClientInfo getClientInfo() {
    return (WebClientInfo) Session.get().getClientInfo();
  }

  public static String getUserAgent() {
    final WebClientInfo info = getClientInfo();
    return info == null ? null : info.getUserAgent();
  }
View Full Code Here

  /**
   * @return true if cookies are disabled, false if unknown
   */
  public static boolean isCookiesDisabled() {
    final WebClientInfo info = getClientInfo();
    return info == null || info.getProperties() == null ? false : !info.getProperties().isCookiesEnabled();

  }
View Full Code Here

    return info == null || info.getProperties() == null ? false : !info.getProperties().isCookiesEnabled();

  }

  public static String getClientInfoString() {
    final WebClientInfo info = getClientInfo();
    return info == null ? null : info.getUserAgent() + " (" + info.getProperties().getRemoteAddress() + ")";
  }
View Full Code Here

    if(includeJquery)
      super.renderHead(response);
        response.renderCSSReference(DATEPICKER_CSS);
        response.renderJavascriptReference(DATE_JS);
    try {
            WebClientInfo info = (WebClientInfo) RequestCycle.get().getClientInfo();
            if (info.getUserAgent().contains("MSIE")) {
                response.renderJavascriptReference(JQUERY_BGIFRAME_JS);
            }
        } catch (ClassCastException exc) {
            logger().info("can't find info about client", exc);
        }
View Full Code Here

      super.renderHead(component, response);
    response.render(CssHeaderItem.forReference(DATEPICKER_CSS));
    response.render(JavaScriptHeaderItem.forReference(DATE_JS));
    try
    {
      WebClientInfo info = WebSession.get().getClientInfo();
      if (info.getUserAgent().contains("MSIE"))
      {
        response.render(JavaScriptHeaderItem.forReference(JQUERY_BGIFRAME_JS));
      }
    }
    catch (ClassCastException exc)
View Full Code Here

  public static WebClientInfo getClientInfo() {
    return (WebClientInfo) Session.get().getClientInfo();
  }

  public static String getUserAgent() {
    final WebClientInfo info = getClientInfo();
    return info == null ? null : info.getUserAgent();
  }
View Full Code Here

  /**
   * @return true if cookies are disabled, false if unknown
   */
  public static boolean isCookiesDisabled() {
    final WebClientInfo info = getClientInfo();
    return info == null || info.getProperties() == null ? false : !info.getProperties().isCookiesEnabled();

  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.protocol.http.request.WebClientInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.