use of org.jboss.resteasy.plugins.providers.JaxrsServerFormUrlEncodedProvider in project resteasy by resteasy.
the class ResteasyDeploymentImpl method startInternal.
private void startInternal() {
initializeFactory();
initializeDispatcher();
pushContext();
try {
initializeObjects();
if (securityEnabled) {
providerFactory.register(RoleBasedSecurityFeature.class);
}
if (registerBuiltin) {
providerFactory.setRegisterBuiltins(true);
RegisterBuiltin.register(providerFactory);
// having problems using form parameters from container for a couple of TCK tests. I couldn't figure out
// why, specifically:
// com/sun/ts/tests/jaxrs/spec/provider/standardhaspriority/JAXRSClient.java#readWriteMapProviderTest_from_standalone Failed. Test case throws exception: [JAXRSCommonClient] null failed! Check output for cause of failure.
// com/sun/ts/tests/jaxrs/spec/provider/standardwithjaxrsclient/JAXRSClient.java#mapElementProviderTest_from_standalone Failed. Test case throws exception: returned MultivaluedMap is null
providerFactory.registerProviderInstance(new ServerFormUrlEncodedProvider(useContainerFormParams), null, null, true);
providerFactory.registerProviderInstance(new JaxrsServerFormUrlEncodedProvider(useContainerFormParams), null, null, true);
} else {
providerFactory.setRegisterBuiltins(false);
}
// register all providers
registration();
registerMappers();
((ResteasyProviderFactoryImpl) providerFactory).lockSnapshots();
} finally {
ResteasyContext.removeContextDataLevel();
}
}
Aggregations