java.lang.Object
cloud.piranha.embedded.EmbeddedPiranha
- All Implemented Interfaces:
Piranha
public class EmbeddedPiranha extends java.lang.Object implements Piranha
The embeddable servlet container version of Piranha.
- Author:
- Manfred Riem ([email protected])
-
Constructor Summary
Constructors Constructor Description EmbeddedPiranha()
Constructor. -
Method Summary
Modifier and Type Method Description EmbeddedPiranha
destroy()
Destroy the web application.java.lang.String
getVersion()
Get the version.WebApplication
getWebApplication()
Get the web application.EmbeddedPiranha
initialize()
Initialize the web application.void
service(ServletRequest servletRequest, ServletResponse servletResponse)
Service method.EmbeddedPiranha
start()
Start the web application.EmbeddedPiranha
stop()
Stop the web application.
-
Constructor Details
-
EmbeddedPiranha
public EmbeddedPiranha()Constructor.
-
-
Method Details
-
destroy
Destroy the web application.- Returns:
- the instance.
-
getVersion
public java.lang.String getVersion()Get the version.- Specified by:
getVersion
in interfacePiranha
- Returns:
- the version.
-
getWebApplication
Get the web application.- Returns:
- the web application.
-
initialize
Initialize the web application.- Returns:
- the instance.
-
service
public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws java.io.IOException, ServletExceptionService method.- Parameters:
servletRequest
- the request.servletResponse
- the response.- Throws:
java.io.IOException
- when an I/O error occurs.ServletException
- when a Servlet error occurs.
-
start
Start the web application.- Returns:
- the instance.
-
stop
Stop the web application.- Returns:
- the instance.
-