RESTful « cxf « Java Enterprise Q&A

1. @Path regex expression in RESTful server

I'm writing a RESTful Java server with CXF framework. How do I can write a @Path Regular Expression in order to obtain any URI finished in "/action" value?

2. Upload to CXF restful web service

I'm trying to implement apache commons fileupload in my cxf restful web service. For some reason, ServletFileUpload.isMultipartContent(...) always returns false; I've checked the content-type via: httpServletRequest.getContentType() and it returns multipart/form-data as ...

3. UTF-8 For Restful Services

Currently i enable UTF-8 as @Consumes("application/xml;charset=utf-8") in the RESTful Services for the different methods. I am interested to see if we can change this for all REST services with a single ...

4. Is it possible to use MTOM in reponse of CXF RESTful Web Service

I'm using CXF 2.2.12 library for my Web Services. Is it possible to use MTOM (Message Transmission Optimization Mechanism) in RESTful response? Would appreciate any links to docs/tutorials regarding this. Thanx!

5. How can I pass complex objects as arguments to a RESTful service?

I have successfully set up a quick test of creating a "REST-like" service that returns an object serialized to JSON, and that was quite easy and quick (based on

6. CXF Restful service complex object unmarshalling does not work

I am new at restful services, and had a relatively good start, until I decided to play with some complex objects. The problem I am hitting is about unmarshalling an object ...

7. RESTful produces binary file

I'm new using CXF and Spring to make RESTful webservices. This is my problem: I want to create a service that produces "any" kind of file(can be image,document,txt or even pdf), and ...

8. Is Jersey just a framework for developing RESTful web services in Java?

The way I understand it is Java EE 6 includes the classes for (JAX-RS) which are defined in the JSR 311 spec document. But I don't know why you would ...

9. Java CXF restful webservices

My webservice class is as following:

import java.math.BigDecimal;

import javax.annotation.Resource;
import javax.servlet.ServletRequest;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.Source;
import javax.xml.transform.dom.DOMSource;

import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;

@BindingType(value = HTTPBinding.HTTP_BINDING)
public class ConverterService implements ...

10. Increasing the number of instances for RESTful CXF service

Is there a way to increase the number of Restful CXF service instance? This is required in order to increase the performance of my service in the event when multiple ...

11. Accessing the GET parameters of a URL in a RESTful service using Apache CXF REST HTTP binding

Hi, I am using the example provided in Apache CXF 2.3.3 whereby a service interface and implementation are defined to have the following method: @Get @HttpResource(location = "/customers/{id}") Customer getCustomer(@WebParam(name = "GetCustomer") GetCustomer getCustomer); I was wondering how I could access the get parameters that might be sent in the implementation of the method? Is there a standardized, clean way, of ...