private Client getClient ( ) { final ClientConfig cfg = new DefaultClientConfig ( ) ; cfg . getClasses ( ) . add ( com . fasterxml . jackson . jaxrs . json . JacksonJsonProvider . class ) ; cfg . getProperties ( ) . put ( ClientConfig . PROPERTY_CONNECT_TIMEOUT , timeout ) ; return Client . create ( cfg ) ; }
Provide Jersey client for the targeted Grapes server