-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #4303 - Move Piranha Core Profile to use Grizzly for HTTP engine
- Loading branch information
Showing
10 changed files
with
34 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,16 +28,21 @@ | |
package cloud.piranha.dist.coreprofile; | ||
|
||
import cloud.piranha.extension.coreprofile.CoreProfileExtension; | ||
import cloud.piranha.http.grizzly.GrizzlyHttpServer; | ||
import cloud.piranha.single.SingleMain; | ||
import cloud.piranha.single.SinglePiranhaBuilder; | ||
|
||
/** | ||
* The Main for Piranha Core Profile. | ||
* | ||
* <p> | ||
* This version of Main sets the extension class to the CoreProfileExtension to | ||
* deliver Piranha Core Profile (unless it was overridden). | ||
* This version of Main changes the following: | ||
* </p> | ||
* <ol> | ||
* <li>extensionClass - set to CoreProfileExtension (unless it was overridden)</li> | ||
* <li>httpServerClass - set to GrizzlyHttpServer (unless it was overridden)</li> | ||
* <li>httpsServerClass - set to GrizzlyHttpServer (unless it was overridden)</li> | ||
* </ol> | ||
* | ||
* @author Manfred Riem ([email protected]) | ||
*/ | ||
|
@@ -54,6 +59,12 @@ public static void main(String[] arguments) { | |
if (builder.getConfiguration().getClass("extensionClass") == null) { | ||
builder.extensionClass(CoreProfileExtension.class); | ||
} | ||
if (builder.getConfiguration().getClass("httpServerClass") == null) { | ||
builder.httpServerClass(GrizzlyHttpServer.class.getName()); | ||
} | ||
if (builder.getConfiguration().getClass("httpsServerClass") == null) { | ||
builder.httpsServerClass(GrizzlyHttpServer.class.getName()); | ||
} | ||
builder.build().start(); | ||
} else { | ||
showHelp(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,19 +25,19 @@ | |
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
* POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
package integration; | ||
package cloud.piranha.test.coreprofile.distribution; | ||
|
||
import jakarta.enterprise.context.ApplicationScoped; | ||
import jakarta.interceptor.Interceptors; | ||
|
||
/** | ||
* The Intercept bean. | ||
* The Intercepted bean. | ||
* | ||
* @author Manfred Riem ([email protected]) | ||
*/ | ||
@ApplicationScoped | ||
@Interceptors(InterceptInterceptor.class) | ||
public class InterceptBean { | ||
public class InterceptedBean { | ||
|
||
/** | ||
* Get the string to validate the interceptor works. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters