Undertow provides file system and class path based resource mangers, as That is basically a file system abstraction. This handler takes a ResourceManager instance, The resource handler is used to serve static resources such as files. In order to avoid formatting a new date each timeĭates are accurate to the nearest second. This handler sets the Date: header as required by the HTTP RFC. Under the io.#PATH_TEMPLATE_MATCH attachment key. The value of the relevant path template items are stored as an attachment on the exchange, } else if (listener.type = ListenerType.HTTP). tRootHandler(rootHandler) ĬhannelListener> acceptListener = ChannelListeners.openListenerAdapter(openListener) ĪcceptingChannel server = worker.createStreamConnectionServer( new InetSocketAddress( Inet4Address.getByName(listener.host), listener.port), acceptListener, socketOptions) Pool buffers = new ByteBufferSlicePool(BufferAllocator.DIRECT_BYTE_BUFFER_ALLOCATOR,bufferSize, bufferSize * buffersPerRegion) ĪjpOpenListener openListener = new AjpOpenListener(buffers, serverOptions, bufferSize) OptionMap socketOptions = OptionMap.builder() set(Options.WORKER_TASK_MAX_THREADS, workerThreads) set(Options.WORKER_TASK_CORE_THREADS, workerThreads) set(Options.WORKER_IO_THREADS, ioThreads) XnioWorker worker = xnio.createWorker(OptionMap.builder()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |