Search in sources :

Example 1 with JaxrsServerFormUrlEncodedProvider

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();
    }
}
Also used : ResteasyProviderFactoryImpl(org.jboss.resteasy.core.providerfactory.ResteasyProviderFactoryImpl) JaxrsServerFormUrlEncodedProvider(org.jboss.resteasy.plugins.providers.JaxrsServerFormUrlEncodedProvider) ServerFormUrlEncodedProvider(org.jboss.resteasy.plugins.providers.ServerFormUrlEncodedProvider) JaxrsServerFormUrlEncodedProvider(org.jboss.resteasy.plugins.providers.JaxrsServerFormUrlEncodedProvider)

Aggregations

ResteasyProviderFactoryImpl (org.jboss.resteasy.core.providerfactory.ResteasyProviderFactoryImpl)1 JaxrsServerFormUrlEncodedProvider (org.jboss.resteasy.plugins.providers.JaxrsServerFormUrlEncodedProvider)1 ServerFormUrlEncodedProvider (org.jboss.resteasy.plugins.providers.ServerFormUrlEncodedProvider)1