use of org.apache.cxf.jaxrs.provider.MultipartProvider in project cxf by apache.
the class JAXRSClientServerTikaTest method createWebClient.
private WebClient createWebClient(final String url) {
WebClient wc = WebClient.create("http://localhost:" + PORT + url, Arrays.asList(new MultipartProvider(), new JacksonJsonProvider()));
WebClient.getConfig(wc).getHttpConduit().getClient().setReceiveTimeout(10000000L);
return wc;
}
use of org.apache.cxf.jaxrs.provider.MultipartProvider in project bamboobsc by billchen198318.
the class CxfServerBean method getProvider.
public static List<Object> getProvider() {
List<Object> providers = new ArrayList<Object>();
providers.add(new JSONProvider<Object>());
providers.add(new JAXBElementProvider<Object>());
providers.add(new MultipartProvider());
providers.add(new XPathProvider<Object>());
providers.add(new DataBindingProvider<Object>());
providers.add(new BinaryDataProvider<Object>());
providers.add(new JacksonJaxbJsonProvider());
return providers;
}
Aggregations