public class EmbeddedJettyFactory extends Object implements EmbeddedServerFactory
Constructor and Description |
---|
EmbeddedJettyFactory() |
EmbeddedJettyFactory(JettyServerFactory serverFactory) |
Modifier and Type | Method and Description |
---|---|
EmbeddedServer |
create(Routes routeMatcher,
StaticFilesConfiguration staticFilesConfiguration,
ExceptionMapper exceptionMapper,
boolean hasMultipleHandler)
Creates an embedded server instance.
|
EmbeddedJettyFactory |
withHttpOnly(boolean httpOnly) |
EmbeddedJettyFactory |
withThreadPool(org.eclipse.jetty.util.thread.ThreadPool threadPool)
Sets optional thread pool for jetty server.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
public EmbeddedJettyFactory()
public EmbeddedJettyFactory(JettyServerFactory serverFactory)
public EmbeddedServer create(Routes routeMatcher, StaticFilesConfiguration staticFilesConfiguration, ExceptionMapper exceptionMapper, boolean hasMultipleHandler)
EmbeddedServerFactory
create
in interface EmbeddedServerFactory
routeMatcher
- The route matcherstaticFilesConfiguration
- The static files configuration objecthasMultipleHandler
- true if other handlers existpublic EmbeddedJettyFactory withThreadPool(org.eclipse.jetty.util.thread.ThreadPool threadPool)
threadPool
- thread poolpublic EmbeddedJettyFactory withHttpOnly(boolean httpOnly)
Copyright © 2019. All rights reserved.