Using the HTTP Components Transport from Java Code
To force global use of the HTTP Components transport, you can set a bus-level property:
Bus bus = BusFactory.getDefaultBus();
// insist on the async connector to use PATCH.
bus.setProperty(AsyncHTTPConduit.USE_ASYNC, Boolean.TRUE);