Madhawa, The ContentType defines the type of serializer to be used in the OData query. Content Type is defined by the request, so it is dynamic. If I understand correctly you want that created before you have get to use it. I suggest you look at TripPinServlet class as an example, that uses a different interface called "ServiceHandler" for service implementation, which does lot of boiler plate coding for you, if you are developing service.
Ramesh.. ----- Original Message ----- > Hi All, > If we can pass pre created serializer, rather than creating the serializer. > then it will be more efficient. > We can just set the content type for the precreated ODataJsonSerializer > Any suggestions, > I would like to do contributions to the Olingo project. > Thanks, > Madhawa
