users@jersey.java.net

[Jersey] Re: Method Dispatcher

From: Paul <nibin.cse_at_gmail.com>
Date: Mon, 13 Jun 2011 22:26:27 -0700 (PDT)

If you want to provide your own Method dispatcher, you have to implement
"com.sun.jersey.spi.container.ResourceMethodDispatchProvider".

By default, Jersey supports 5 implementations for this.

com.sun.jersey.server.impl.model.method.dispatch.VoidVoidDispatchProvider
com.sun.jersey.server.impl.model.method.dispatch.HttpReqResDispatchProvider
com.sun.jersey.server.impl.model.method.dispatch.MultipartFormDispatchProvider
com.sun.jersey.server.impl.model.method.dispatch.FormDispatchProvider
com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider

You can implement your own ResourceMethodDispatchProvider and plugin to the
Jersey framework.

For doing that, you need to modify the
jersey-server-1.6.jar\META-INF\services\com.sun.jersey.spi.container.ResourceMethodDispatchProvider
file. Use your implementation classes instead using Jersey's default
implementation.

Regards,
Paul

--
View this message in context: http://jersey.576304.n2.nabble.com/Method-Dispatcher-tp6461710p6472814.html
Sent from the Jersey mailing list archive at Nabble.com.