Examples of WebClientInfo


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

   * @return the agent info object based on this request
   */
  // TODO WICKET-NG Get this out of here!
  public ClientInfo newClientInfo()
  {
    return new WebClientInfo(this);
  }
View Full Code Here

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
      session.setMetaData(BROWSER_WAS_POLLED_KEY, (Boolean)null);
    }
    return new WebClientInfo(this);
  }
View Full Code Here

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

    RequestCycle requestCycle = 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

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, (Boolean)null);
      }
      clientInfo = new WebClientInfo(requestCycle);
    }
    return (WebClientInfo)clientInfo;
  }
View Full Code Here

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

    boolean gatherExtendedBrowserInfo = requestCycleSettings.getGatherExtendedBrowserInfo();
    ClientProperties properties = null;
    try
    {
      requestCycleSettings.setGatherExtendedBrowserInfo(false);
      WebClientInfo clientInfo = (WebClientInfo) getSession().getClientInfo();
      properties = clientInfo.getProperties();
    }
    finally
    {
      requestCycleSettings.setGatherExtendedBrowserInfo(gatherExtendedBrowserInfo);
    }
View Full Code Here

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

    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

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

        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

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

      }
    }
  }
 
  private void addContent() {
    final WebClientInfo clientInfo = (WebClientInfo) WebRequestCycle.get().getClientInfo();
    final boolean gatherExtendedBrowserInfo = //
      WebApplication.get().getRequestCycleSettings().getGatherExtendedBrowserInfo();
   
    // Note: Screen will be redrawn on every toggle click
    // (important when not using models for Labels).
    add(new Label("clientUserAgent", clientInfo.getUserAgent()));
   
    add(new Label("gatherExtendedBrowserInfo", Boolean.toString(gatherExtendedBrowserInfo)));
    final PageParameters params = new PageParameters();
    params.add(PARAM_GATHER_EXTENDED_BROWSER_INFO, Boolean.toString(!gatherExtendedBrowserInfo));
    add(new BookmarkablePageLink<Void>("toggleGatherExtendedBrowserInfo", //
        DetectClientCapabilitiesPage.class, params));
   
    add(new MultiLineLabel("clientProperties", clientInfo.getProperties().toString()));
  }
View Full Code Here

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

    boolean gatherExtendedBrowserInfo = requestCycleSettings.getGatherExtendedBrowserInfo();
    ClientProperties properties = null;
    try
    {
      requestCycleSettings.setGatherExtendedBrowserInfo(false);
      WebClientInfo clientInfo = (WebClientInfo) getSession().getClientInfo();
      properties = clientInfo.getProperties();
    }
    finally
    {
      requestCycleSettings.setGatherExtendedBrowserInfo(gatherExtendedBrowserInfo);
    }
View Full Code Here

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
      session.setMetaData(BROWSER_WAS_POLLED_KEY, (Boolean)null);
    }
    return new WebClientInfo(this);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.