this(new CachedEnhancer(new DefaultEnhancer()));
}
public DefaultRestClient(Enhancer enhancer)
{
this.dispatcher = new ApacheDispatcher(this);
this.inflector = new NounPluralizer();
types.register(new XmlMediaType(enhancer));
types.register(new JsonMediaType(enhancer));
types.register(new FormEncoded());
this.threads = Executors.newCachedThreadPool();