本文整理汇总了Java中org.jboss.resteasy.core.SynchronousDispatcher类的典型用法代码示例。如果您正苦于以下问题:Java SynchronousDispatcher类的具体用法?Java SynchronousDispatcher怎么用?Java SynchronousDispatcher使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SynchronousDispatcher类属于org.jboss.resteasy.core包,在下文中一共展示了SynchronousDispatcher类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createResteasyHttpRequest
import org.jboss.resteasy.core.SynchronousDispatcher; //导入依赖的package包/类
@Override
public HttpRequest createResteasyHttpRequest(final String httpMethod,
final HttpServletRequest request,
final ResteasyHttpHeaders headers,
final ResteasyUriInfo uriInfo,
final HttpResponse theResponse,
final HttpServletResponse response)
{
return new HttpServletInputMessage(request,
response,
request.getServletContext(),
theResponse,
headers,
uriInfo,
httpMethod.toUpperCase(),
(SynchronousDispatcher) dispatcher.getDispatcher());
}
示例2: VertxPluginRequestHandler
import org.jboss.resteasy.core.SynchronousDispatcher; //导入依赖的package包/类
public VertxPluginRequestHandler(Vertx vertx, ResteasyDeployment deployment, String servletMappingPrefix, SecurityDomain domain, List<Plugin> plugins)
{
this.vertx = vertx;
this.dispatcher = new PluginRequestDispatcher((SynchronousDispatcher) deployment.getDispatcher(), deployment.getProviderFactory(), domain, plugins);
this.servletMappingPrefix = servletMappingPrefix;
appGlobals = AppGlobals.get();
}
示例3: start
import org.jboss.resteasy.core.SynchronousDispatcher; //导入依赖的package包/类
@Override
public void start()
{
deployment.start();
RequestDispatcher dispatcher = new RequestDispatcher((SynchronousDispatcher)deployment.getDispatcher(), deployment.getProviderFactory(), domain);
// Configure the server.
bootstrap = new ServerBootstrap(
new NioServerSocketChannelFactory(
Executors.newCachedThreadPool(),
Executors.newCachedThreadPool(),
ioWorkerCount));
ChannelPipelineFactory factory;
if (sslContext == null) {
factory = new HttpServerPipelineFactory(dispatcher, root, executorThreadCount, maxRequestSize);
} else {
factory = new HttpsServerPipelineFactory(dispatcher, root, executorThreadCount, maxRequestSize, sslContext);
}
// Set up the event pipeline factory.
bootstrap.setPipelineFactory(factory);
// Bind and start to accept incoming connections.
channel = bootstrap.bind(new InetSocketAddress(getPort()));
if (LOGGER.isTraceEnabled()) {
LOGGER.trace("Started Netty JAXRS Server: port=" + getPort() + ", resources=" + deployment.getResources());
}
}
示例4: PluginRequestDispatcher
import org.jboss.resteasy.core.SynchronousDispatcher; //导入依赖的package包/类
public PluginRequestDispatcher(SynchronousDispatcher dispatcher, ResteasyProviderFactory providerFactory,
SecurityDomain domain, List<Plugin> plugins) {
super(dispatcher, providerFactory, domain);
this.plugins = plugins;
}
示例5: createRequestDispatcher
import org.jboss.resteasy.core.SynchronousDispatcher; //导入依赖的package包/类
protected RequestDispatcher createRequestDispatcher() {
return new RequestDispatcher((SynchronousDispatcher) deployment.getDispatcher(),
deployment.getProviderFactory(), domain);
}
示例6: createRequestDispatcher
import org.jboss.resteasy.core.SynchronousDispatcher; //导入依赖的package包/类
protected RequestDispatcher createRequestDispatcher() {
return new GuiceRequestDispatcher((SynchronousDispatcher)deployment.getDispatcher(),
deployment.getProviderFactory(), domain);
}
示例7: GuiceRequestDispatcher
import org.jboss.resteasy.core.SynchronousDispatcher; //导入依赖的package包/类
public GuiceRequestDispatcher(SynchronousDispatcher dispatcher, ResteasyProviderFactory providerFactory, SecurityDomain domain) {
super(dispatcher, providerFactory, domain);
}
示例8: createRequestDispatcher
import org.jboss.resteasy.core.SynchronousDispatcher; //导入依赖的package包/类
protected RequestDispatcher createRequestDispatcher() {
return new CDIRequestDispatcher((SynchronousDispatcher)deployment.getDispatcher(),
deployment.getProviderFactory(), domain);
}
示例9: CDIRequestDispatcher
import org.jboss.resteasy.core.SynchronousDispatcher; //导入依赖的package包/类
public CDIRequestDispatcher(SynchronousDispatcher dispatcher, ResteasyProviderFactory providerFactory,
SecurityDomain domain) {
super(dispatcher,providerFactory,domain);
}
示例10: createHttpRequest
import org.jboss.resteasy.core.SynchronousDispatcher; //导入依赖的package包/类
protected HttpRequest createHttpRequest(String httpMethod, HttpServletRequest request, ResteasyHttpHeaders headers,
ResteasyUriInfo uriInfo, HttpResponse theResponse, HttpServletResponse response) {
return new HttpServletInputMessage(request, response, getServletContext(), theResponse, headers, uriInfo, httpMethod
.toUpperCase(), (SynchronousDispatcher) getDispatcher());
}