Am 18.07.2011 14:08, schrieb Wilhelmsen Tor Iver:
HttpClient looks great. Do you know if i can execute the HttpMethod
without waiting for request to comeback?
Maybe an asynchronous way?
There seems to be an async fork you can try:

http://jfarcand.wordpress.com/2010/03/04/new-open-source-project-alert-a-new-asynchronous-http-client-library/

- Tor Iver

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


That was simple :-)
<dependency>
<groupId>com.ning</groupId>
<artifactId>async-http-client</artifactId>
<version>1.6.4</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>

    @Override
    public void onClick() {
        final AsyncHttpClient client = new AsyncHttpClient();
        try {
            client.preparePost(getSolrUrl()).execute();
        } catch (Exception e) {
            throw new WicketRuntimeException(e);
        }
throw new RestartResponseAtInterceptPageException(DashboardPage.class);
    }

Thanks Tor
Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to