Search in sources :

Example 6 with Dispatcher

use of org.jboss.resteasy.spi.Dispatcher in project resteasy by resteasy.

the class MockDispatcherFactory method createDispatcher.

public static Dispatcher createDispatcher() {
    Dispatcher dispatcher = new SynchronousDispatcher(new ResteasyProviderFactoryImpl());
    ResteasyProviderFactory.setInstance(dispatcher.getProviderFactory());
    RegisterBuiltin.register(dispatcher.getProviderFactory());
    return dispatcher;
}
Also used : SynchronousDispatcher(org.jboss.resteasy.core.SynchronousDispatcher) ResteasyProviderFactoryImpl(org.jboss.resteasy.core.providerfactory.ResteasyProviderFactoryImpl) Dispatcher(org.jboss.resteasy.spi.Dispatcher) SynchronousDispatcher(org.jboss.resteasy.core.SynchronousDispatcher)

Aggregations

Dispatcher (org.jboss.resteasy.spi.Dispatcher)6 SynchronousDispatcher (org.jboss.resteasy.core.SynchronousDispatcher)3 MockHttpResponse (org.jboss.resteasy.mock.MockHttpResponse)2 ResteasyProviderFactory (org.jboss.resteasy.spi.ResteasyProviderFactory)2 ServletException (jakarta.servlet.ServletException)1 Application (jakarta.ws.rs.core.Application)1 Map (java.util.Map)1 PostResourceMethodInvoker (org.jboss.resteasy.core.PostResourceMethodInvoker)1 PostResourceMethodInvokers (org.jboss.resteasy.core.PostResourceMethodInvokers)1 ResourceMethodInvoker (org.jboss.resteasy.core.ResourceMethodInvoker)1 ThreadLocalResteasyProviderFactory (org.jboss.resteasy.core.ThreadLocalResteasyProviderFactory)1 PostMatchContainerRequestContext (org.jboss.resteasy.core.interception.jaxrs.PostMatchContainerRequestContext)1 ResteasyProviderFactoryImpl (org.jboss.resteasy.core.providerfactory.ResteasyProviderFactoryImpl)1 MockHttpRequest (org.jboss.resteasy.mock.MockHttpRequest)1 HttpResponse (org.jboss.resteasy.spi.HttpResponse)1 Registry (org.jboss.resteasy.spi.Registry)1 ResteasyAsynchronousResponse (org.jboss.resteasy.spi.ResteasyAsynchronousResponse)1 ResteasyDeployment (org.jboss.resteasy.spi.ResteasyDeployment)1 RESTEasyTracingLogger (org.jboss.resteasy.tracing.RESTEasyTracingLogger)1 Test (org.junit.jupiter.api.Test)1