Package tigase.http
Class AbstractHttpServer
java.lang.Object
tigase.http.AbstractHttpServer
- All Implemented Interfaces:
HttpServerIfc,tigase.kernel.beans.Initializable,tigase.kernel.beans.RegistrarBean,tigase.kernel.beans.UnregisterAware
- Direct Known Subclasses:
JavaStandaloneHttpServer
Created by andrzej on 06.08.2016.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected tigase.kernel.core.Kernelprotected AbstractHttpServer.PortsConfigBeanprotected tigase.io.SSLContextContainerIfcFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidgetName()getPortConfig(String name, int port) voidvoidregister(tigase.kernel.core.Kernel kernel) voidunregister(tigase.kernel.core.Kernel kernel) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tigase.http.api.HttpServerIfc
deploy, deployment, listDeployed, servlet, undeploy
-
Field Details
-
httpPorts
-
httpsPorts
-
kernel
protected tigase.kernel.core.Kernel kernel -
portsConfigBean
-
sslContextContainer
@Inject(bean="sslContextContainer") protected tigase.io.SSLContextContainerIfc sslContextContainer
-
-
Constructor Details
-
AbstractHttpServer
public AbstractHttpServer()
-
-
Method Details
-
getPortConfig
-
getHTTPPorts
- Specified by:
getHTTPPortsin interfaceHttpServerIfc
-
getHTTPSPorts
- Specified by:
getHTTPSPortsin interfaceHttpServerIfc
-
getName
- Specified by:
getNamein interfaceHttpServerIfc
-
register
public void register(tigase.kernel.core.Kernel kernel) - Specified by:
registerin interfacetigase.kernel.beans.RegistrarBean
-
unregister
public void unregister(tigase.kernel.core.Kernel kernel) - Specified by:
unregisterin interfacetigase.kernel.beans.RegistrarBean
-
initialize
public void initialize()- Specified by:
initializein interfacetigase.kernel.beans.Initializable
-
beforeUnregister
public void beforeUnregister()- Specified by:
beforeUnregisterin interfacetigase.kernel.beans.UnregisterAware
-