Package org.jitsi.rest
Class JettyHelpers
-
- All Implemented Interfaces:
public final class JettyHelpers
-
-
Field Summary
Fields Modifier and Type Field Description private final static ServletContextHandlerservletContextHandler
-
Method Summary
Modifier and Type Method Description final ServletContextHandlergetServletContextHandler()final static ServercreateJettyServer(JettyBundleActivatorConfig config)Create a non-secure Jetty server instance listening on the given port and host address. final static ServercreateSecureJettyServer(JettyBundleActivatorConfig config)Create a secure Jetty server instance listening on the given port and host address and using the KeyStore located at keyStorePath, optionally protected by keyStorePassword. final static ServercreateServer(JettyBundleActivatorConfig config)Create a Jetty Server instance based on the given config. final static BooleanisEnabled(JettyBundleActivatorConfig $self)final static UnitenableCors(ServletContextHandler $self, String pathSpec)final static UnitaddServlet(Server $self, ServletHolder servlet, String pathSpec)-
-
Method Detail
-
getServletContextHandler
final ServletContextHandler getServletContextHandler()
-
createJettyServer
final static Server createJettyServer(JettyBundleActivatorConfig config)
Create a non-secure Jetty server instance listening on the given port and host address. sendServerVersion controls whether Jetty should send its server version in the error responses or not.
-
createSecureJettyServer
final static Server createSecureJettyServer(JettyBundleActivatorConfig config)
Create a secure Jetty server instance listening on the given port and host address and using the KeyStore located at keyStorePath, optionally protected by keyStorePassword. needClientAuth sets whether client auth is needed for SSL (see SslContextFactory.setNeedClientAuth). sendServerVersion controls whether Jetty should send its server version in the error responses or not.
-
createServer
final static Server createServer(JettyBundleActivatorConfig config)
Create a Jetty Server instance based on the given config.
-
isEnabled
final static Boolean isEnabled(JettyBundleActivatorConfig $self)
-
enableCors
final static Unit enableCors(ServletContextHandler $self, String pathSpec)
-
addServlet
final static Unit addServlet(Server $self, ServletHolder servlet, String pathSpec)
-
-
-
-