public class HttpServer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
HTTP_TRANSPORT_ID
protocol identifier for http
|
static String |
HTTPS_TRANSPORT_ID
protocol identifier for https
|
Constructor and Description |
---|
HttpServer() |
Modifier and Type | Method and Description |
---|---|
TcpTransport |
getHttpsTransport() |
TcpTransport |
getHttpTransport() |
Set<WebApp> |
getWebApps() |
void |
setConfFile(String confFile) |
void |
setHttpsTransport(TcpTransport httpsTransport) |
void |
setHttpTransport(TcpTransport httpTransport) |
void |
setWebApps(Set<WebApp> webapps) |
void |
start(DirectoryService dirService)
starts the jetty http server
|
void |
stop()
stops the jetty http server
|
public static final String HTTP_TRANSPORT_ID
public static final String HTTPS_TRANSPORT_ID
public HttpServer()
public void start(DirectoryService dirService) throws Exception
dirService
- The DirectoryService instanceException
- If Jetty can't be startedpublic void stop() throws Exception
Exception
- If Jetty can't be stoppedpublic void setConfFile(String confFile)
public Set<WebApp> getWebApps()
public void setWebApps(Set<WebApp> webapps)
public TcpTransport getHttpTransport()
public void setHttpTransport(TcpTransport httpTransport)
public TcpTransport getHttpsTransport()
public void setHttpsTransport(TcpTransport httpsTransport)
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.