Package tigase.http.java
Class JavaStandaloneHttpServer
java.lang.Object
tigase.http.AbstractHttpServer
tigase.http.java.JavaStandaloneHttpServer
- All Implemented Interfaces:
HttpServerIfc,tigase.kernel.beans.Initializable,tigase.kernel.beans.RegistrarBean,tigase.kernel.beans.UnregisterAware
@Bean(name="httpServer",
parent=tigase.kernel.core.Kernel.class,
active=true,
exportable=true)
@ConfigType({DefaultMode,SetupMode})
public class JavaStandaloneHttpServer
extends AbstractHttpServer
Basic implementation of HTTP server based on HttpServer implementation embedded in JDK.
May not fully support HTTP implementation but is sufficient for testing and basic usage.
- Author:
- andrzej
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
Fields inherited from class tigase.http.AbstractHttpServer
httpPorts, httpsPorts, kernel, portsConfigBean, sslContextContainerFields 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 TypeMethodDescriptionprotected HttpServerprotected voiddeploy(HttpServer server) protected voiddeploy(HttpServer server, DeploymentInfo info) voiddeploy(DeploymentInfo deployment) protected voidundeploy(HttpServer server) protected voidundeploy(HttpServer server, DeploymentInfo info) voidundeploy(DeploymentInfo deployment) Methods inherited from class tigase.http.AbstractHttpServer
beforeUnregister, getHTTPPorts, getHTTPSPorts, getName, getPortConfig, initialize, register, unregisterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tigase.http.api.HttpServerIfc
deployment, servlet
-
Constructor Details
-
JavaStandaloneHttpServer
public JavaStandaloneHttpServer()
-
-
Method Details
-
deploy
-
undeploy
-
listDeployed
-
createServer
protected HttpServer createServer(JavaStandaloneHttpServer.PortConfigBean config) throws IOException - Throws:
IOException
-
deploy
-
deploy
-
undeploy
-
undeploy
-