Package tigase.http
Class AbstractHttpModule
- java.lang.Object
-
- tigase.http.AbstractHttpModule
-
- All Implemented Interfaces:
tigase.kernel.beans.config.ConfigurationChangedAware
,tigase.kernel.beans.Initializable
,tigase.kernel.beans.RegistrarBean
,tigase.kernel.beans.UnregisterAware
- Direct Known Subclasses:
AbstractBareModule
,HttpModule
public abstract class AbstractHttpModule extends Object implements tigase.kernel.beans.UnregisterAware, tigase.kernel.beans.Initializable, tigase.kernel.beans.RegistrarBean, tigase.kernel.beans.config.ConfigurationChangedAware
Created by andrzej on 08.08.2016.
-
-
Field Summary
Fields Modifier and Type Field Description protected String
contextPath
protected HttpServerIfc
httpServer
protected String
uuid
protected String[]
vhosts
-
Constructor Summary
Constructors Constructor Description AbstractHttpModule()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
beanConfigurationChanged(Collection<String> changedFields)
void
beforeUnregister()
static tigase.kernel.core.Kernel
getKernel(String id)
void
initialize()
void
register(tigase.kernel.core.Kernel kernel)
abstract void
start()
abstract void
stop()
void
unregister(tigase.kernel.core.Kernel kernel)
-
-
-
Field Detail
-
uuid
protected final String uuid
-
contextPath
@ConfigField(desc="Context path", alias="context-path") protected String contextPath
-
httpServer
@Inject protected HttpServerIfc httpServer
-
vhosts
@ConfigField(desc="List of vhosts", alias="vhosts") protected String[] vhosts
-
-
Method Detail
-
getKernel
public static final tigase.kernel.core.Kernel getKernel(String id)
-
start
public abstract void start()
-
stop
public abstract void stop()
-
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
-
initialize
public void initialize()
- Specified by:
initialize
in interfacetigase.kernel.beans.Initializable
-
beforeUnregister
public void beforeUnregister()
- Specified by:
beforeUnregister
in interfacetigase.kernel.beans.UnregisterAware
-
beanConfigurationChanged
public void beanConfigurationChanged(Collection<String> changedFields)
- Specified by:
beanConfigurationChanged
in interfacetigase.kernel.beans.config.ConfigurationChangedAware
-
-