public class SimpleServerFactory extends AbstractServerFactory
ServerFactory, suitable for PaaS deployments
 (e.g., Heroku) where applications are limited to a single, runtime-defined port. A startup script
 can override the port via -Ddw.server.connector.port=$PORT.
 
 Configuration Parameters:
 | Name | Default | Description | 
| connector | An HTTP connectorlistening on port8080. | The connectorwhich will handle both application and admin requests. | 
| applicationContextPath | /application | The context path of the application servlets, including Jersey. | 
| adminContextPath | /admin | The context path of the admin servlets, including metrics and tasks. | 
AbstractServerFactory.ServerFactory, 
AbstractServerFactory| Constructor and Description | 
|---|
| SimpleServerFactory() | 
| Modifier and Type | Method and Description | 
|---|---|
| org.eclipse.jetty.server.Server | build(Environment environment)Build a server for the given Dropwizard application. | 
| void | configure(Environment environment)Configures the given environment with settings defined in the factory. | 
| String | getAdminContextPath() | 
| String | getApplicationContextPath() | 
| ConnectorFactory | getConnector() | 
| void | setAdminContextPath(String contextPath) | 
| void | setApplicationContextPath(String contextPath) | 
| void | setConnector(ConnectorFactory factory) | 
addRequestLog, addStatsHandler, buildGzipHandler, buildServer, buildSetUIDListener, createAdminServlet, createAppServlet, createThreadPool, getAllowedMethods, getGid, getGroup, getGzipFilterFactory, getIdleThreadTimeout, getJerseyRootPath, getMaxQueuedRequests, getMaxThreads, getMinThreads, getNofileHardLimit, getNofileSoftLimit, getRegisterDefaultExceptionMappers, getRequestLogFactory, getServerPush, getShutdownGracePeriod, getStartsAsRoot, getUid, getUmask, getUser, isThreadPoolSizedCorrectly, printBanner, setAllowedMethods, setGid, setGroup, setGzipFilterFactory, setIdleThreadTimeout, setJerseyRootPath, setMaxQueuedRequests, setMaxThreads, setMinThreads, setNofileHardLimit, setNofileSoftLimit, setRegisterDefaultExceptionMappers, setRequestLogFactory, setServerPush, setShutdownGracePeriod, setStartsAsRoot, setUid, setUmask, setUserpublic ConnectorFactory getConnector()
public void setConnector(ConnectorFactory factory)
public String getApplicationContextPath()
public void setApplicationContextPath(String contextPath)
public String getAdminContextPath()
public void setAdminContextPath(String contextPath)
public org.eclipse.jetty.server.Server build(Environment environment)
ServerFactoryenvironment - the application's environmentServer running the Dropwizard applicationpublic void configure(Environment environment)
ServerFactoryenvironment - the application's environmentCopyright © 2017. All rights reserved.