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

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


        // if we get here, the redirect already has been done; clear
        // the meta data entry; we don't need it any longer is the client
        // info object will be cached too
        setMetaData(BROWSER_WAS_POLLED_KEY, null);
      }
      clientInfo = new WebClientInfo(requestCycle);
    }
    return (WebClientInfo)clientInfo;
  }
View Full Code Here


        WebSession session = (WebSession)getSession();
        ClientInfo clientInfo = session.getClientInfo();

        if (clientInfo == null)
        {
          clientInfo = new WebClientInfo(requestCycle);
          getSession().setClientInfo(clientInfo);
        }

        if (clientInfo instanceof WebClientInfo)
        {
          WebClientInfo info = (WebClientInfo)clientInfo;
          ClientProperties properties = info.getProperties();
          propertiesBean.merge(properties);
        }
        else
        {
          warnNotUsingWebClientInfo(clientInfo);
View Full Code Here

    WebRequestCycle requestCycle = (WebRequestCycle)getRequestCycle();
    WebSession session = (WebSession)getSession();
    ClientInfo clientInfo = session.getClientInfo();
    if (clientInfo == null)
    {
      clientInfo = new WebClientInfo(requestCycle);
      getSession().setClientInfo(clientInfo);
    }
    else if (clientInfo instanceof WebClientInfo)
    {
      WebClientInfo info = (WebClientInfo)clientInfo;
      ClientProperties properties = info.getProperties();
      properties.setJavaEnabled(false);
    }
    else
    {
      warnNotUsingWebClientInfo(clientInfo);
View Full Code Here

        // if we get here, the redirect already has been done; clear
        // the meta data entry; we don't need it any longer is the client
        // info object will be cached too
        setMetaData(BROWSER_WAS_POLLED_KEY, null);
      }
      clientInfo = new WebClientInfo(requestCycle);
    }
    return (WebClientInfo)clientInfo;
  }
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

  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

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.