Package org.apache.solr.embedded
Class JettyConfig.Builder
- java.lang.Object
-
- org.apache.solr.embedded.JettyConfig.Builder
-
- Enclosing class:
- JettyConfig
public static class JettyConfig.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JettyConfig
build()
JettyConfig.Builder
enableV2(boolean flag)
JettyConfig.Builder
setContext(String context)
JettyConfig.Builder
setPort(int port)
JettyConfig.Builder
stopAtShutdown(boolean stopAtShutdown)
JettyConfig.Builder
useOnlyHttp1(boolean useOnlyHttp1)
JettyConfig.Builder
waitForLoadingCoresToFinish(Long waitForLoadingCoresToFinishMs)
JettyConfig.Builder
withFilter(Class<? extends javax.servlet.Filter> filterClass, String pathSpec)
JettyConfig.Builder
withFilters(Map<Class<? extends javax.servlet.Filter>,String> filters)
JettyConfig.Builder
withPortRetryTime(int portRetryTime)
JettyConfig.Builder
withServlet(org.eclipse.jetty.servlet.ServletHolder servlet, String pathSpec)
JettyConfig.Builder
withServlets(Map<org.eclipse.jetty.servlet.ServletHolder,String> servlets)
JettyConfig.Builder
withSSLConfig(org.apache.solr.client.solrj.embedded.SSLConfig sslConfig)
-
-
-
Method Detail
-
useOnlyHttp1
public JettyConfig.Builder useOnlyHttp1(boolean useOnlyHttp1)
-
enableV2
public JettyConfig.Builder enableV2(boolean flag)
-
setPort
public JettyConfig.Builder setPort(int port)
-
setContext
public JettyConfig.Builder setContext(String context)
-
stopAtShutdown
public JettyConfig.Builder stopAtShutdown(boolean stopAtShutdown)
-
waitForLoadingCoresToFinish
public JettyConfig.Builder waitForLoadingCoresToFinish(Long waitForLoadingCoresToFinishMs)
-
withServlet
public JettyConfig.Builder withServlet(org.eclipse.jetty.servlet.ServletHolder servlet, String pathSpec)
-
withServlets
public JettyConfig.Builder withServlets(Map<org.eclipse.jetty.servlet.ServletHolder,String> servlets)
-
withFilter
public JettyConfig.Builder withFilter(Class<? extends javax.servlet.Filter> filterClass, String pathSpec)
-
withFilters
public JettyConfig.Builder withFilters(Map<Class<? extends javax.servlet.Filter>,String> filters)
-
withSSLConfig
public JettyConfig.Builder withSSLConfig(org.apache.solr.client.solrj.embedded.SSLConfig sslConfig)
-
withPortRetryTime
public JettyConfig.Builder withPortRetryTime(int portRetryTime)
-
build
public JettyConfig build()
-
-