当前位置: 首页>>代码示例>>Java>>正文


Java SynchronousDispatcher类代码示例

本文整理汇总了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());
}
 
开发者ID:petergeneric,项目名称:stdlib,代码行数:18,代码来源:ResteasyRequestResponseFactory.java

示例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();
}
 
开发者ID:FroMage,项目名称:redpipe,代码行数:8,代码来源:VertxPluginRequestHandler.java

示例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());
   }
}
 
开发者ID:jboss-switchyard,项目名称:switchyard,代码行数:30,代码来源:NettyJaxrsServer.java

示例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;
}
 
开发者ID:FroMage,项目名称:redpipe,代码行数:6,代码来源:PluginRequestDispatcher.java

示例5: createRequestDispatcher

import org.jboss.resteasy.core.SynchronousDispatcher; //导入依赖的package包/类
protected RequestDispatcher createRequestDispatcher() {
    return new RequestDispatcher((SynchronousDispatcher) deployment.getDispatcher(),
            deployment.getProviderFactory(), domain);
}
 
开发者ID:tiglabs,项目名称:jsf-sdk,代码行数:5,代码来源:NettyJaxrsServer.java

示例6: createRequestDispatcher

import org.jboss.resteasy.core.SynchronousDispatcher; //导入依赖的package包/类
protected RequestDispatcher createRequestDispatcher() {
    return new GuiceRequestDispatcher((SynchronousDispatcher)deployment.getDispatcher(),
            deployment.getProviderFactory(), domain);
}
 
开发者ID:buzzxu,项目名称:resteasy-netty-guice,代码行数:5,代码来源:GuiceNettyJaxrsServer.java

示例7: GuiceRequestDispatcher

import org.jboss.resteasy.core.SynchronousDispatcher; //导入依赖的package包/类
public GuiceRequestDispatcher(SynchronousDispatcher dispatcher, ResteasyProviderFactory providerFactory, SecurityDomain domain) {
    super(dispatcher, providerFactory, domain);
}
 
开发者ID:buzzxu,项目名称:resteasy-netty-guice,代码行数:4,代码来源:GuiceRequestDispatcher.java

示例8: createRequestDispatcher

import org.jboss.resteasy.core.SynchronousDispatcher; //导入依赖的package包/类
protected RequestDispatcher createRequestDispatcher() {
    return new CDIRequestDispatcher((SynchronousDispatcher)deployment.getDispatcher(),
            deployment.getProviderFactory(), domain);
}
 
开发者ID:johnament,项目名称:resteasy-netty-cdi,代码行数:5,代码来源:CDINettyJaxrsServer.java

示例9: CDIRequestDispatcher

import org.jboss.resteasy.core.SynchronousDispatcher; //导入依赖的package包/类
public CDIRequestDispatcher(SynchronousDispatcher dispatcher, ResteasyProviderFactory providerFactory,
                            SecurityDomain domain) {
    super(dispatcher,providerFactory,domain);
}
 
开发者ID:johnament,项目名称:resteasy-netty-cdi,代码行数:5,代码来源:CDIRequestDispatcher.java

示例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());
}
 
开发者ID:trein,项目名称:gtfs-java,代码行数:6,代码来源:MultipleMappingsHttpServletDispatcher.java


注:本文中的org.jboss.resteasy.core.SynchronousDispatcher类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。