See: Description
Class | Description |
---|---|
ServerExtension |
The
WebApplicationExtension used by
ServerPiranha to configure each web application. |
ServerPiranha |
The Servlet container version of Piranha.
|
The Piranha Server package delivers you with a Servlet container that is capable of hosting several web applications.
Download the ZIP file from Maven Central and unzip it in a directory of your choice.
Starting the server is done by issuing the command line below from the
bin
directory.
start.sh
Stopping the server is done by issuing the command line below from the
bin
directory.
stop.sh
Deploying a web application is a simple as copying your WAR file to the
webapps
directory. Note if the server is already running you
will need to stop and start the server.
The image below illustrates how the request and response handling is done by
Piranha Server. When a request comes in to the HTTP server it dispatches it
to the WebApplicationServer
which uses a
WebApplicationServerRequestMapper
to determine
which web application needs to serve the request and it the dispatches to it
and then in turn the WebApplication uses
WebApplicationRequestMapper
to determine which
FilterChain needs to process the incoming request and it dispatches to it.
<dependency> <groupId>cloud.piranha</groupId> <artifactId>piranha-server</artifactId> <version>y.m.p</version> <version>y.m.p</version> <dependency>
where y is the year, m is the month and p is the patch version of the release you want to use.
Copyright © 2020. All rights reserved.