Package tigase.http.java
Class JavaStandaloneHttpServer
- java.lang.Object
-
- tigase.http.AbstractHttpServer
-
- tigase.http.java.JavaStandaloneHttpServer
-
- All Implemented Interfaces:
HttpServerIfc
,tigase.kernel.beans.RegistrarBean
@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 Classes Modifier and Type Class Description static class
JavaStandaloneHttpServer.ExecutorWithTimeout
static class
JavaStandaloneHttpServer.PortConfigBean
static class
JavaStandaloneHttpServer.PortsConfigBean
-
Field Summary
-
Fields inherited from class tigase.http.AbstractHttpServer
httpPorts, httpsPorts, kernel, portsConfigBean, 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 JavaStandaloneHttpServer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HttpServer
createServer(JavaStandaloneHttpServer.PortConfigBean config)
protected void
deploy(HttpServer server)
protected void
deploy(HttpServer server, DeploymentInfo info)
void
deploy(DeploymentInfo deployment)
List<DeploymentInfo>
listDeployed()
protected void
undeploy(HttpServer server)
protected void
undeploy(HttpServer server, DeploymentInfo info)
void
undeploy(DeploymentInfo deployment)
-
Methods inherited from class tigase.http.AbstractHttpServer
getHTTPPorts, getHTTPSPorts, register, unregister
-
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
deployment, servlet
-
-
-
-
Method Detail
-
deploy
public void deploy(DeploymentInfo deployment)
-
undeploy
public void undeploy(DeploymentInfo deployment)
-
listDeployed
public List<DeploymentInfo> listDeployed()
-
createServer
protected HttpServer createServer(JavaStandaloneHttpServer.PortConfigBean config) throws IOException
- Throws:
IOException
-
deploy
protected void deploy(HttpServer server)
-
deploy
protected void deploy(HttpServer server, DeploymentInfo info)
-
undeploy
protected void undeploy(HttpServer server)
-
undeploy
protected void undeploy(HttpServer server, DeploymentInfo info)
-
-