Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To force global use of the HTTP Components transport, you can set a bus-level property: 

Code Block
languagejava
 Bus bus = BusFactory.getDefaultBus();

...


 // insist on the async connector to use PATCH.

...


 bus.setProperty(AsyncHTTPConduit.USE_ASYNC, Boolean.TRUE);
Setting Credentials

The "normal" CXF/JAX-WS method of setting user credentials via the BindingProvider.USERNAME_PROPERTY/PASSWORD_PROPERTY will work with the Async transport as well. However, the HttpAsyncClient library does have some additional capabilities around NTLM that can be leveraged. In order to use that, you need to:

...