Friday, 15 April 2011

What are the built-in @Provider classes in Resteasy? -



What are the built-in @Provider classes in Resteasy? -

the documentation resteasy.use.builtin.providers configuration switch reads:

whether or not register default, built-in @provider classes.

i have set false utilize own (gwt) json format, know missing or if there should not exclude.

so, built-in @provider classes in resteasy, or how can find them?

i don't know documentation that. best way may search in the sources.

if using resteasy-jaxrs can find these providers in master-branch:

* org.jboss.resteasy.client.exception.mapper.apachehttpclient4exceptionmapper * org.jboss.resteasy.core.acceptheaderbyfilesuffixfilter * org.jboss.resteasy.plugins.interceptors.encoding.acceptencodinggzipfilter * org.jboss.resteasy.plugins.interceptors.encoding.acceptencodinggzipinterceptor * org.jboss.resteasy.plugins.interceptors.encoding.gzipdecodinginterceptor * org.jboss.resteasy.plugins.interceptors.encoding.gzipencodinginterceptor * org.jboss.resteasy.plugins.providers.datasourceprovider * org.jboss.resteasy.plugins.providers.defaulttextplain * org.jboss.resteasy.plugins.providers.documentprovider * org.jboss.resteasy.plugins.providers.fileprovider * org.jboss.resteasy.plugins.providers.formurlencodedprovider * org.jboss.resteasy.plugins.providers.iioimageprovider * org.jboss.resteasy.plugins.providers.inputstreamprovider * org.jboss.resteasy.plugins.providers.jaxrsformprovider * org.jboss.resteasy.plugins.providers.readerprovider * org.jboss.resteasy.plugins.providers.serializableprovider * org.jboss.resteasy.plugins.providers.sourceprovider * org.jboss.resteasy.plugins.providers.stringtextstar

this classes annotated @provider. same registered in meta-inf/services/ javax.ws.rs.ext.providers.

but i'm not sure why want disable them. afaik if register @provider @produces(mediatype.application_json) or @consumes(mediatype.application_json) default 1 ignored.

resteasy

No comments:

Post a Comment