Search in sources :

Example 1 with MultipartProvider

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;
}
Also used : JacksonJsonProvider(com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider) MultipartProvider(org.apache.cxf.jaxrs.provider.MultipartProvider) WebClient(org.apache.cxf.jaxrs.client.WebClient)

Example 2 with MultipartProvider

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;
}
Also used : ArrayList(java.util.ArrayList) MultipartProvider(org.apache.cxf.jaxrs.provider.MultipartProvider) JacksonJaxbJsonProvider(com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider)

Aggregations

MultipartProvider (org.apache.cxf.jaxrs.provider.MultipartProvider)2 JacksonJaxbJsonProvider (com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider)1 JacksonJsonProvider (com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider)1 ArrayList (java.util.ArrayList)1 WebClient (org.apache.cxf.jaxrs.client.WebClient)1