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


Java RequestDispatcher类代码示例

本文整理汇总了Java中org.jboss.resteasy.plugins.server.netty.RequestDispatcher的典型用法代码示例。如果您正苦于以下问题:Java RequestDispatcher类的具体用法?Java RequestDispatcher怎么用?Java RequestDispatcher使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

RequestDispatcher类属于org.jboss.resteasy.plugins.server.netty包,在下文中一共展示了RequestDispatcher类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: start

import org.jboss.resteasy.plugins.server.netty.RequestDispatcher; //导入依赖的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


示例2: RestRequestHandler

import org.jboss.resteasy.plugins.server.netty.RequestDispatcher; //导入依赖的package包/类
public RestRequestHandler(RequestDispatcher dispatcher)
{
    this.dispatcher = dispatcher;
}
 
开发者ID:tiglabs,项目名称:jsf-sdk,代码行数:5,代码来源:RestRequestHandler.java


示例3: createRequestDispatcher

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



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