org.glassfish.jersey.grizzly.connector
Class GrizzlyConnector

java.lang.Object
  extended by org.glassfish.jersey.grizzly.connector.GrizzlyConnector
All Implemented Interfaces:
Connector, Inflector<ClientRequest,ClientResponse>

public class GrizzlyConnector
extends Object
implements Connector

The transport using the AsyncHttpClient.

Author:
Stepan Kopriva (stepan.kopriva at oracle.com)

Constructor Summary
GrizzlyConnector(javax.ws.rs.core.Configuration config)
          Create the new Grizzly async client connector.
 
Method Summary
 ClientResponse apply(ClientRequest request)
           
 Future<?> apply(ClientRequest request, AsyncConnectorCallback callback)
           
 void close()
           
 String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrizzlyConnector

public GrizzlyConnector(javax.ws.rs.core.Configuration config)
Create the new Grizzly async client connector.

Parameters:
config - client configuration.
Method Detail

apply

public ClientResponse apply(ClientRequest request)
Specified by:
apply in interface Connector
Specified by:
apply in interface Inflector<ClientRequest,ClientResponse>

apply

public Future<?> apply(ClientRequest request,
                       AsyncConnectorCallback callback)
Specified by:
apply in interface Connector

close

public void close()
Specified by:
close in interface Connector

getName

public String getName()
Specified by:
getName in interface Connector


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.