Class EmbeddedPiranhaServletWebServerFactory
java.lang.Object
cloud.piranha.spring.starter.embedded.EmbeddedPiranhaServletWebServerFactory
- All Implemented Interfaces:
org.springframework.boot.web.server.WebServerFactory
,org.springframework.boot.web.servlet.server.ServletWebServerFactory
public class EmbeddedPiranhaServletWebServerFactory
extends Object
implements org.springframework.boot.web.servlet.server.ServletWebServerFactory
The Piranha Embedded ServletWebServerFactory.
- Author:
- Manfred Riem ([email protected])
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.web.server.WebServer
getWebServer
(org.springframework.boot.web.servlet.ServletContextInitializer... initializers) void
setContextPath
(String contextPath) Set the context path.void
setHttpServer
(HttpServer httpServer) Set the HTTP server implementationvoid
setPort
(int port) Set the port.
-
Constructor Details
-
EmbeddedPiranhaServletWebServerFactory
public EmbeddedPiranhaServletWebServerFactory()
-
-
Method Details
-
getWebServer
public org.springframework.boot.web.server.WebServer getWebServer(org.springframework.boot.web.servlet.ServletContextInitializer... initializers) - Specified by:
getWebServer
in interfaceorg.springframework.boot.web.servlet.server.ServletWebServerFactory
-
setContextPath
Set the context path.- Parameters:
contextPath
- the context path.
-
setPort
public void setPort(int port) Set the port.- Parameters:
port
- the port.
-
setHttpServer
Set the HTTP server implementation- Parameters:
httpServer
- the HTTP server implementation
-