Package tigase.http
Class AbstractHttpServer
- java.lang.Object
-
- tigase.http.AbstractHttpServer
-
- All Implemented Interfaces:
HttpServerIfc
,tigase.kernel.beans.RegistrarBean
- Direct Known Subclasses:
JavaStandaloneHttpServer
public abstract class AbstractHttpServer extends Object implements HttpServerIfc
Created by andrzej on 06.08.2016.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractHttpServer.PortConfigBean
static class
AbstractHttpServer.PortsConfigBean
-
Field Summary
Fields Modifier and Type Field Description protected List<Integer>
httpPorts
protected List<Integer>
httpsPorts
protected tigase.kernel.core.Kernel
kernel
protected AbstractHttpServer.PortsConfigBean
portsConfigBean
protected tigase.io.SSLContextContainerIfc
sslContextContainer
-
Fields inherited from interface tigase.http.api.HttpServerIfc
DEF_HTTP_PORT_VAL, HTTP_PORT_KEY, HTTP_PORTS_KEY, PORT_DOMAIN_KEY, PORT_SOCKET_KEY
-
-
Constructor Summary
Constructors Constructor Description AbstractHttpServer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Integer>
getHTTPPorts()
List<Integer>
getHTTPSPorts()
void
register(tigase.kernel.core.Kernel kernel)
void
unregister(tigase.kernel.core.Kernel kernel)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface tigase.http.api.HttpServerIfc
deploy, deployment, listDeployed, servlet, undeploy
-
-
-
-
Field Detail
-
kernel
protected tigase.kernel.core.Kernel kernel
-
portsConfigBean
@Inject protected AbstractHttpServer.PortsConfigBean portsConfigBean
-
sslContextContainer
@Inject(bean="sslContextContainer") protected tigase.io.SSLContextContainerIfc sslContextContainer
-
-
Method Detail
-
getHTTPPorts
public List<Integer> getHTTPPorts()
- Specified by:
getHTTPPorts
in interfaceHttpServerIfc
-
getHTTPSPorts
public List<Integer> getHTTPSPorts()
- Specified by:
getHTTPSPorts
in interfaceHttpServerIfc
-
register
public void register(tigase.kernel.core.Kernel kernel)
- Specified by:
register
in interfacetigase.kernel.beans.RegistrarBean
-
unregister
public void unregister(tigase.kernel.core.Kernel kernel)
- Specified by:
unregister
in interfacetigase.kernel.beans.RegistrarBean
-
-