import other kontor repos into directories
This commit is contained in:
committed by
Thomas Peetz
parent
28746adfbb
commit
b424e95e05
@@ -0,0 +1,179 @@
|
||||
= Projektbeschreibung kontor-wicket: Entwicklungs- und Projekthandbuch
|
||||
:author: Thomas Peetz
|
||||
:email: <thomas.peetz@thpeetz.de>
|
||||
:doctype: book
|
||||
:sectnums:
|
||||
:sectnumlevels: 4
|
||||
:toc:
|
||||
:toclevels: 4
|
||||
:table-caption!:
|
||||
:counter: table-number: 0
|
||||
|
||||
[title="Dokumenthistorie", id="Table-{counter:table-number}", options="header"]
|
||||
|===
|
||||
| Version | Datum | Autor | Änderungsgrund / Bemerkungen
|
||||
| 1.0.0 | 16.05.2022 | Thomas Peetz | Ersterstellung
|
||||
|===
|
||||
|
||||
== Allgemeines
|
||||
|
||||
=== Zweck des Dokumentes
|
||||
|
||||
Das Entwicklungshandbuch beschreibt die Werkzeuge und die Vorgehensweise bei der Entwicklung
|
||||
im Projekt kontor-wicket und der Erstellung der Dokumentation.
|
||||
|
||||
=== Verwendete Tools
|
||||
|
||||
==== Gitlab
|
||||
|
||||
Für die Verwaltung des Sourcecode kommt ((Gitlab))<<gitlab>> zum Einsatz.
|
||||
Mit Gitlab werden auch die Projektaufgaben verwaltet.
|
||||
|
||||
Das Projekt und das dazugehörige Git Repository sind unter der Adresse
|
||||
|
||||
https://gitlab.ingenieurbuero-peetz.de/kontor/kontor-wicket
|
||||
|
||||
zu finden.
|
||||
|
||||
== Erstellung der Dokumentation
|
||||
|
||||
Die Dokumentation des Projektes wird mit ((Asciidoctor))<<asciidoctor>> geschrieben.
|
||||
Die Dokumente erhalten ihre Namen nach dem jeweiligen Hauptdokument.
|
||||
|
||||
=== Quellcode Verwaltung
|
||||
|
||||
Die Asciidoctor-Dateien haben die Endung `.adoc`.
|
||||
|
||||
=== Buildsystem
|
||||
|
||||
Zur Erstellung der PDF-Dateien aus den Asciidoctor-Dateien wird das Buildsystem ((Gradle))<<3>> verwendet.
|
||||
Die Dateien für die Dokumente liegen im Verzeichnis `src/docs/asciidoc`.
|
||||
|
||||
Der Gradle Build wird über die Datei `build.gradle` definiert.
|
||||
|
||||
|
||||
== Einführung
|
||||
|
||||
=== Zweck
|
||||
|
||||
=== Stakeholder des Systems
|
||||
|
||||
=== Systemumfang
|
||||
|
||||
==== Zielsetzung des Systems
|
||||
|
||||
=== Systemübersicht
|
||||
|
||||
==== Systemkontext
|
||||
|
||||
==== Systemarchitektur
|
||||
|
||||
==== Systemschnittstellen
|
||||
|
||||
===== Realisierte Schnittstellen
|
||||
|
||||
===== Verwendete Schnittstellen
|
||||
|
||||
==== Logisches Datenmodell
|
||||
|
||||
==== Einschränkungen
|
||||
|
||||
== Anforderungen der Domäne
|
||||
|
||||
=== Systemfunktionen
|
||||
|
||||
==== Anwendungsfälle
|
||||
|
||||
==== Akteure
|
||||
|
||||
==== Zielgruppen
|
||||
|
||||
=== Anforderungen
|
||||
|
||||
==== Anforderungen an externe Schnittstellen
|
||||
|
||||
==== Funktionale Anforderungen
|
||||
|
||||
==== Qualitätsanforderungen
|
||||
|
||||
==== Randbedingungen
|
||||
|
||||
==== Weitere Anforderungen
|
||||
|
||||
==== Wartungs- und Supportinformationen
|
||||
|
||||
=== Verifikation
|
||||
|
||||
== Projektbeschreibung
|
||||
|
||||
=== Ausgangslage
|
||||
|
||||
//==== Rechtliche Vorgaben und Rahmenbedingungen
|
||||
//=== Rahmenbedingungen
|
||||
|
||||
//==== Vorhandene Regelungen
|
||||
|
||||
=== Projektziele
|
||||
|
||||
=== Projektabgrenzung
|
||||
|
||||
//=== Voraussichtliche Kosten
|
||||
|
||||
//=== Projektrisiken
|
||||
|
||||
//==== Produktivität
|
||||
|
||||
//==== Finanzielle Risiken
|
||||
|
||||
//==== Akzeptanz
|
||||
|
||||
== Projektorganisation
|
||||
|
||||
=== Projekt-Aufbauorganisation
|
||||
|
||||
=== Rollendefinition
|
||||
|
||||
//==== Projektauftraggeber
|
||||
|
||||
//==== Projektausschuss
|
||||
|
||||
//==== Beratung / Qualitätssicherung
|
||||
|
||||
==== Projekteiter
|
||||
|
||||
==== Projektteam
|
||||
|
||||
==== Liste der Stakeholder
|
||||
|
||||
=== Projektablauforganisation
|
||||
|
||||
==== Projekt-Phasen
|
||||
|
||||
===== Erstellung der Projektdokumentation
|
||||
|
||||
|
||||
== Verschiedenes
|
||||
|
||||
=== Erreichbarkeiten
|
||||
|
||||
[bibliography]
|
||||
== Referenzen
|
||||
|
||||
- [[[asciidoctor]]] http://asciidoctor.org
|
||||
- [[[gitlab]]] http://www.gitlab.org
|
||||
- [[[gradle]]] http://www.gradle.org
|
||||
- [[[jenkins]]] http://jenkins-ci.org
|
||||
|
||||
[glossary]
|
||||
== Glossar
|
||||
|
||||
[index]
|
||||
== Index
|
||||
|
||||
== Verzeichnisse
|
||||
|
||||
=== Abbildungsverzeichnis
|
||||
|
||||
=== Tabellenverzeichnis
|
||||
|
||||
<<Table-1, Tabelle 1>> <<Table-1>>
|
||||
@@ -0,0 +1,18 @@
|
||||
package de.thpeetz.kontor;
|
||||
|
||||
import org.apache.wicket.request.mapper.parameter.PageParameters;
|
||||
import org.apache.wicket.markup.html.basic.Label;
|
||||
import org.apache.wicket.markup.html.WebPage;
|
||||
|
||||
public class HomePage extends WebPage {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public HomePage(final PageParameters parameters) {
|
||||
super(parameters);
|
||||
|
||||
add(new Label("version", getApplication().getFrameworkSettings().getVersion()));
|
||||
|
||||
// TODO Add your page's components here
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package de.thpeetz.kontor;
|
||||
|
||||
import org.apache.wicket.csp.CSPDirective;
|
||||
import org.apache.wicket.csp.CSPDirectiveSrcValue;
|
||||
import org.apache.wicket.markup.html.WebPage;
|
||||
import org.apache.wicket.protocol.http.WebApplication;
|
||||
|
||||
/**
|
||||
* Application object for your web application.
|
||||
* If you want to run this application without deploying, run the Start class.
|
||||
*
|
||||
* @see de.thpeetz.kontor.Start#main(String[])
|
||||
*/
|
||||
public class KontorApplication extends WebApplication
|
||||
{
|
||||
/**
|
||||
* @see org.apache.wicket.Application#getHomePage()
|
||||
*/
|
||||
@Override
|
||||
public Class<? extends WebPage> getHomePage()
|
||||
{
|
||||
return HomePage.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.apache.wicket.Application#init()
|
||||
*/
|
||||
@Override
|
||||
public void init()
|
||||
{
|
||||
super.init();
|
||||
|
||||
// needed for the styling used by the quickstart
|
||||
getCspSettings().blocking()
|
||||
.add(CSPDirective.STYLE_SRC, CSPDirectiveSrcValue.SELF)
|
||||
.add(CSPDirective.STYLE_SRC, "https://fonts.googleapis.com/css")
|
||||
.add(CSPDirective.FONT_SRC, "https://fonts.gstatic.com");
|
||||
|
||||
// add your configuration here
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns:wicket="http://wicket.apache.org">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Apache Wicket Quickstart</title>
|
||||
<link href='https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:regular,bold' rel='stylesheet' type='text/css' />
|
||||
<link rel="stylesheet" href="style.css" type="text/css" media="screen" title="Stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="hd">
|
||||
<div id="logo">
|
||||
<img src="logo.png" width="50px" height="50px" alt="Wicket Logo" />
|
||||
<h1>Apache Wicket</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div id="bd">
|
||||
<h2>Congratulations!</h2>
|
||||
<p>
|
||||
Your quick start works! This project is especially useful to
|
||||
start developing your Wicket application or to create a test
|
||||
case for a bug report.
|
||||
</p>
|
||||
<h3>Get started</h3>
|
||||
<p>
|
||||
You can even <a href="https://localhost:8443">switch to HTTPS</a>!
|
||||
</p>
|
||||
<p>
|
||||
From here you can start hacking away at your application and
|
||||
wow your clients:
|
||||
</p>
|
||||
<ul>
|
||||
<li>work through <a href="https://wicket.apache.org/learn/examples" target="_blank" title="Hello world and friends">some examples</a></li>
|
||||
<li>read <a href="https://wicket.apache.org/learn/books" target="_blank" title="Books about Wicket in English, German and Japanese">some books</a></li>
|
||||
</ul>
|
||||
<h3>Get help</h3>
|
||||
<p>
|
||||
We are here to help!
|
||||
</p>
|
||||
<ul>
|
||||
<li>join us on IRC on <a href="irc:%23%23wicket@irc.freenode.net">##wicket@irc.freenode.net</a></li>
|
||||
<li><a href="http://wicket-users.markmail.org/" target="_blank" title="Search the mailing list archives">search</a> our mailing list archives</li>
|
||||
<li>ask a question on the <a href="https://wicket.apache.org/help/email.html">users list</a></li>
|
||||
</ul>
|
||||
<h3>Reporting a bug</h3>
|
||||
<p>
|
||||
Help us help you:
|
||||
</p>
|
||||
<ol>
|
||||
<li>reproduce the bug with the <strong>least</strong> amount of code</li>
|
||||
<li>create a unit test that shows the bug</li>
|
||||
<li>fix the bug and create a patch</li>
|
||||
<li>attach the result of step 1, 2 or 3 to a <a href="https://issues.apache.org/jira/browse/WICKET" target="_blank">JIRA issue</a></li>
|
||||
<li>profit!</li>
|
||||
</ol>
|
||||
<p>
|
||||
Please mention the correct Wicket version: <wicket:container wicket:id="version">1.5-SNAPSHOT</wicket:container>.
|
||||
</p>
|
||||
</div>
|
||||
<div id="ft">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/web-app_3_1.xsd"
|
||||
version="3.1">
|
||||
|
||||
<display-name>kontor-wicket</display-name>
|
||||
|
||||
<!--
|
||||
There are three means to configure Wickets configuration mode and they
|
||||
are tested in the order given.
|
||||
|
||||
1) A system property: -Dwicket.configuration
|
||||
2) servlet specific <init-param>
|
||||
3) context specific <context-param>
|
||||
|
||||
The value might be either "development" (reloading when templates change) or
|
||||
"deployment". If no configuration is found, "development" is the default. -->
|
||||
|
||||
<filter>
|
||||
<filter-name>wicket.kontor-wicket</filter-name>
|
||||
<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
|
||||
<init-param>
|
||||
<param-name>applicationClassName</param-name>
|
||||
<param-value>de.thpeetz.kontor.KontorApplication</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>wicket.kontor-wicket</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
</web-app>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
@@ -0,0 +1,68 @@
|
||||
body, p, li, a { font-family: georgia, times, serif;font-size:13pt;}
|
||||
h1, h2, h3 { font-family: 'Yanone Kaffeesatz', arial, serif; }
|
||||
body { margin:0;padding:0;}
|
||||
#hd {
|
||||
width : 100%;
|
||||
height : 87px;
|
||||
background-color : #092E67;
|
||||
margin-top : 0;
|
||||
padding-top : 10px;
|
||||
border-bottom : 1px solid #888;
|
||||
z-index : 0;
|
||||
}
|
||||
#ft {
|
||||
position : absolute;
|
||||
bottom : 0;
|
||||
width : 100%;
|
||||
height : 99px;
|
||||
background-color : #6493D2;
|
||||
border-top : 1px solid #888;
|
||||
z-index : 0;
|
||||
}
|
||||
#logo,#bd {
|
||||
width : 650px;
|
||||
margin: 0 auto;
|
||||
padding: 25px 50px 0 50px;
|
||||
}
|
||||
#logo h1 {
|
||||
color : white;
|
||||
font-size:36pt;
|
||||
display: inline;
|
||||
}
|
||||
#logo img {
|
||||
display:inline;
|
||||
vertical-align: bottom;
|
||||
margin-left : 50px;
|
||||
margin-right : 5px;
|
||||
}
|
||||
body { margin-top : 0; padding-top : 0;}
|
||||
#logo, #logo h1 { margin-top : 0; padding-top : 0;}
|
||||
#bd {
|
||||
position : absolute;
|
||||
top : 75px;
|
||||
bottom : 75px;
|
||||
left : 50%;
|
||||
margin-left : -325px;
|
||||
z-index : 1;
|
||||
overflow: auto;
|
||||
background-color : #fff;
|
||||
-webkit-border-radius: 10px;
|
||||
-moz-border-radius: 10px;
|
||||
border-radius: 10px;
|
||||
-moz-box-shadow: 0px 0px 10px #888;
|
||||
-webkit-box-shadow: 0px 0px 10px #888;
|
||||
box-shadow: 0px 0px 10px #888;
|
||||
}
|
||||
a, a:visited, a:hover, a:active {
|
||||
color : #6493D2;
|
||||
}
|
||||
h2 {
|
||||
padding : 0; margin:0;
|
||||
font-size:36pt;
|
||||
color:#FF5500;
|
||||
}
|
||||
h3 {
|
||||
padding : 0; margin:0;
|
||||
font-size:24pt;
|
||||
color:#092E67;
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
package de.thpeetz.kontor;
|
||||
|
||||
import java.lang.management.ManagementFactory;
|
||||
|
||||
import javax.management.MBeanServer;
|
||||
|
||||
import org.eclipse.jetty.jmx.MBeanContainer;
|
||||
import org.eclipse.jetty.server.HttpConfiguration;
|
||||
import org.eclipse.jetty.server.HttpConnectionFactory;
|
||||
import org.eclipse.jetty.server.SecureRequestCustomizer;
|
||||
import org.eclipse.jetty.server.Server;
|
||||
import org.eclipse.jetty.server.ServerConnector;
|
||||
import org.eclipse.jetty.server.SslConnectionFactory;
|
||||
import org.eclipse.jetty.util.resource.Resource;
|
||||
import org.eclipse.jetty.util.ssl.SslContextFactory;
|
||||
import org.eclipse.jetty.webapp.WebAppContext;
|
||||
|
||||
/**
|
||||
* Separate startup class for people that want to run the examples directly. Use parameter
|
||||
* -Dcom.sun.management.jmxremote to startup JMX (and e.g. connect with jconsole).
|
||||
*/
|
||||
public class Start
|
||||
{
|
||||
/**
|
||||
* Main function, starts the jetty server.
|
||||
*
|
||||
* @param args
|
||||
*/
|
||||
public static void main(String[] args)
|
||||
{
|
||||
System.setProperty("wicket.configuration", "development");
|
||||
|
||||
Server server = new Server();
|
||||
|
||||
HttpConfiguration http_config = new HttpConfiguration();
|
||||
http_config.setSecureScheme("https");
|
||||
http_config.setSecurePort(8443);
|
||||
http_config.setOutputBufferSize(32768);
|
||||
|
||||
ServerConnector http = new ServerConnector(server, new HttpConnectionFactory(http_config));
|
||||
http.setPort(8080);
|
||||
http.setIdleTimeout(1000 * 60 * 60);
|
||||
|
||||
server.addConnector(http);
|
||||
|
||||
Resource keystore = Resource.newClassPathResource("/keystore.p12");
|
||||
if (keystore != null && keystore.exists())
|
||||
{
|
||||
// if a keystore for a SSL certificate is available, start a SSL
|
||||
// connector on port 8443.
|
||||
// By default, the quickstart comes with a Apache Wicket Quickstart
|
||||
// Certificate that expires about half way september 2031. Do not
|
||||
// use this certificate anywhere important as the passwords are
|
||||
// available in the source.
|
||||
|
||||
SslContextFactory sslContextFactory = new SslContextFactory();
|
||||
sslContextFactory.setKeyStoreResource(keystore);
|
||||
sslContextFactory.setKeyStorePassword("wicket");
|
||||
sslContextFactory.setKeyManagerPassword("wicket");
|
||||
|
||||
HttpConfiguration https_config = new HttpConfiguration(http_config);
|
||||
https_config.addCustomizer(new SecureRequestCustomizer());
|
||||
|
||||
ServerConnector https = new ServerConnector(server, new SslConnectionFactory(
|
||||
sslContextFactory, "http/1.1"), new HttpConnectionFactory(https_config));
|
||||
https.setPort(8443);
|
||||
https.setIdleTimeout(500000);
|
||||
|
||||
server.addConnector(https);
|
||||
System.out.println("SSL access to the examples has been enabled on port 8443");
|
||||
System.out
|
||||
.println("You can access the application using SSL on https://localhost:8443");
|
||||
System.out.println();
|
||||
}
|
||||
|
||||
WebAppContext bb = new WebAppContext();
|
||||
bb.setServer(server);
|
||||
bb.setContextPath("/");
|
||||
bb.setWar("src/main/webapp");
|
||||
|
||||
// uncomment the next two lines if you want to start Jetty with WebSocket (JSR-356) support
|
||||
// you need org.apache.wicket:wicket-native-websocket-javax in the classpath!
|
||||
// ServerContainer serverContainer = WebSocketServerContainerInitializer.configureContext(bb);
|
||||
// serverContainer.addEndpoint(new WicketServerEndpointConfig());
|
||||
|
||||
// uncomment next line if you want to test with JSESSIONID encoded in the urls
|
||||
// ((AbstractSessionManager)
|
||||
// bb.getSessionHandler().getSessionManager()).setUsingCookies(false);
|
||||
|
||||
server.setHandler(bb);
|
||||
|
||||
MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();
|
||||
MBeanContainer mBeanContainer = new MBeanContainer(mBeanServer);
|
||||
server.addEventListener(mBeanContainer);
|
||||
server.addBean(mBeanContainer);
|
||||
|
||||
try
|
||||
{
|
||||
server.start();
|
||||
server.join();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
System.exit(100);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package de.thpeetz.kontor;
|
||||
|
||||
import org.apache.wicket.util.tester.WicketTester;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* Simple test using the WicketTester
|
||||
*/
|
||||
public class TestHomePage
|
||||
{
|
||||
private WicketTester tester;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp()
|
||||
{
|
||||
tester = new WicketTester(new KontorApplication());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void homepageRendersSuccessfully()
|
||||
{
|
||||
//start and render the test page
|
||||
tester.startPage(HomePage.class);
|
||||
|
||||
//assert rendered page class
|
||||
tester.assertRenderedPage(HomePage.class);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
|
||||
<!-- ============================================================= -->
|
||||
<!-- Configure the Jetty Server instance with an ID "Server" -->
|
||||
<!-- by adding a HTTP connector. -->
|
||||
<!-- This configuration must be used in conjunction with jetty.xml -->
|
||||
<!-- ============================================================= -->
|
||||
<Configure id="Server" class="org.eclipse.jetty.server.Server">
|
||||
<!-- =========================================================== -->
|
||||
<!-- Add a HTTP Connector. -->
|
||||
<!-- Configure an o.e.j.server.ServerConnector with a single -->
|
||||
<!-- HttpConnectionFactory instance using the common httpConfig -->
|
||||
<!-- instance defined in jetty.xml -->
|
||||
<!-- -->
|
||||
<!-- Consult the javadoc of o.e.j.server.ServerConnector and -->
|
||||
<!-- o.e.j.server.HttpConnectionFactory for all configuration -->
|
||||
<!-- that may be set here. -->
|
||||
<!-- =========================================================== -->
|
||||
<Call name="addConnector">
|
||||
<Arg>
|
||||
<New class="org.eclipse.jetty.server.ServerConnector">
|
||||
<Arg name="server"><Ref refid="Server" /></Arg>
|
||||
<Arg name="factories">
|
||||
<Array type="org.eclipse.jetty.server.ConnectionFactory">
|
||||
<Item>
|
||||
<New class="org.eclipse.jetty.server.HttpConnectionFactory">
|
||||
<Arg name="config"><Ref refid="httpConfig" /></Arg>
|
||||
</New>
|
||||
</Item>
|
||||
</Array>
|
||||
</Arg>
|
||||
<Set name="host"><Property name="jetty.host" /></Set>
|
||||
<Set name="port"><Property name="jetty.port" default="8080" /></Set>
|
||||
<Set name="idleTimeout"><Property name="http.timeout" default="30000"/></Set>
|
||||
</New>
|
||||
</Arg>
|
||||
</Call>
|
||||
</Configure>
|
||||
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
|
||||
<!-- ============================================================= -->
|
||||
<!-- Configure a HTTPS connector. -->
|
||||
<!-- This configuration must be used in conjunction with jetty.xml -->
|
||||
<!-- and jetty-ssl.xml. -->
|
||||
<!-- ============================================================= -->
|
||||
<Configure id="Server" class="org.eclipse.jetty.server.Server">
|
||||
<!-- =========================================================== -->
|
||||
<!-- Add a HTTPS Connector. -->
|
||||
<!-- Configure an o.e.j.server.ServerConnector with connection -->
|
||||
<!-- factories for TLS (aka SSL) and HTTP to provide HTTPS. -->
|
||||
<!-- All accepted TLS connections are wired to a HTTP connection.-->
|
||||
<!-- -->
|
||||
<!-- Consult the javadoc of o.e.j.server.ServerConnector, -->
|
||||
<!-- o.e.j.server.SslConnectionFactory and -->
|
||||
<!-- o.e.j.server.HttpConnectionFactory for all configuration -->
|
||||
<!-- that may be set here. -->
|
||||
<!-- =========================================================== -->
|
||||
<Call id="httpsConnector" name="addConnector">
|
||||
<Arg>
|
||||
<New class="org.eclipse.jetty.server.ServerConnector">
|
||||
<Arg name="server"><Ref refid="Server" /></Arg>
|
||||
<Arg name="factories">
|
||||
<Array type="org.eclipse.jetty.server.ConnectionFactory">
|
||||
<Item>
|
||||
<New class="org.eclipse.jetty.server.SslConnectionFactory">
|
||||
<Arg name="next">http/1.1</Arg>
|
||||
<Arg name="sslContextFactory"><Ref refid="sslContextFactory"/></Arg>
|
||||
</New>
|
||||
</Item>
|
||||
<Item>
|
||||
<New class="org.eclipse.jetty.server.HttpConnectionFactory">
|
||||
<Arg name="config"><Ref refid="sslHttpConfig"/></Arg>
|
||||
</New>
|
||||
</Item>
|
||||
</Array>
|
||||
</Arg>
|
||||
<Set name="host"><Property name="jetty.host" /></Set>
|
||||
<Set name="port"><Property name="jetty.https.port" default="8443" /></Set>
|
||||
<Set name="idleTimeout">30000</Set>
|
||||
</New>
|
||||
</Arg>
|
||||
</Call>
|
||||
</Configure>
|
||||
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
|
||||
<!-- ============================================================= -->
|
||||
<!-- Configure a TLS (SSL) Context Factory -->
|
||||
<!-- This configuration must be used in conjunction with jetty.xml -->
|
||||
<!-- and either jetty-https.xml or jetty-spdy.xml (but not both) -->
|
||||
<!-- ============================================================= -->
|
||||
<Configure id="sslContextFactory" class="org.eclipse.jetty.util.ssl.SslContextFactory">
|
||||
<Set name="KeyStorePath"><Property name="maven.project.build.directory.test-classes" default="." />/<Property name="jetty.keystore" default="keystore"/></Set>
|
||||
<Set name="KeyStorePassword"><Property name="jetty.keystore.password" default="wicket"/></Set>
|
||||
<Set name="KeyManagerPassword"><Property name="jetty.keymanager.password" default="wicket"/></Set>
|
||||
<Set name="EndpointIdentificationAlgorithm"></Set>
|
||||
<Set name="ExcludeCipherSuites">
|
||||
<Array type="String">
|
||||
<Item>SSL_RSA_WITH_DES_CBC_SHA</Item>
|
||||
<Item>SSL_DHE_RSA_WITH_DES_CBC_SHA</Item>
|
||||
<Item>SSL_DHE_DSS_WITH_DES_CBC_SHA</Item>
|
||||
<Item>SSL_RSA_EXPORT_WITH_RC4_40_MD5</Item>
|
||||
<Item>SSL_RSA_EXPORT_WITH_DES40_CBC_SHA</Item>
|
||||
<Item>SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA</Item>
|
||||
<Item>SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA</Item>
|
||||
<Item>TLS_RSA_WITH_AES_256_GCM_SHA384</Item>
|
||||
<Item>TLS_RSA_WITH_AES_128_GCM_SHA256</Item>
|
||||
<Item>TLS_RSA_WITH_AES_256_CBC_SHA256</Item>
|
||||
<Item>TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA</Item>
|
||||
<Item>TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA</Item>
|
||||
<Item>TLS_RSA_WITH_AES_256_CBC_SHA</Item>
|
||||
<Item>TLS_RSA_WITH_AES_256_CBC_SHA</Item>
|
||||
<Item>TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA</Item>
|
||||
<Item>TLS_ECDH_RSA_WITH_AES_256_CBC_SHA</Item>
|
||||
<Item>TLS_DHE_RSA_WITH_AES_256_CBC_SHA</Item>
|
||||
<Item>TLS_DHE_DSS_WITH_AES_256_CBC_SHA</Item>
|
||||
<Item>TLS_RSA_WITH_AES_128_CBC_SHA256</Item>
|
||||
<Item>TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA</Item>
|
||||
<Item>TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA</Item>
|
||||
<Item>TLS_RSA_WITH_AES_128_CBC_SHA</Item>
|
||||
<Item>TLS_RSA_WITH_AES_128_CBC_SHA</Item>
|
||||
<Item>TLS_RSA_WITH_AES_128_CBC_SHA</Item>
|
||||
<Item>TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA</Item>
|
||||
<Item>TLS_ECDH_RSA_WITH_AES_128_CBC_SHA</Item>
|
||||
<Item>TLS_DHE_RSA_WITH_AES_128_CBC_SHA</Item>
|
||||
<Item>TLS_DHE_DSS_WITH_AES_128_CBC_SHA</Item>
|
||||
</Array>
|
||||
</Set>
|
||||
<!-- =========================================================== -->
|
||||
<!-- Create a TLS specific HttpConfiguration based on the -->
|
||||
<!-- common HttpConfiguration defined in jetty.xml -->
|
||||
<!-- Add a SecureRequestCustomizer to extract certificate and -->
|
||||
<!-- session information -->
|
||||
<!-- =========================================================== -->
|
||||
<New id="sslHttpConfig" class="org.eclipse.jetty.server.HttpConfiguration">
|
||||
<Arg><Ref refid="httpConfig"/></Arg>
|
||||
<Call name="addCustomizer">
|
||||
<Arg><New class="org.eclipse.jetty.server.SecureRequestCustomizer"/></Arg>
|
||||
</Call>
|
||||
</New>
|
||||
</Configure>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
|
||||
<!-- ============================================================= -->
|
||||
<!-- Configure a HTTP connector. -->
|
||||
<!-- ============================================================= -->
|
||||
<Configure>
|
||||
<New id="httpConfig" class="org.eclipse.jetty.server.HttpConfiguration">
|
||||
<Set name="secureScheme">https</Set>
|
||||
<Set name="securePort">
|
||||
<Property name="jetty.secure.port" default="8443" />
|
||||
</Set>
|
||||
<Set name="outputBufferSize">32768</Set>
|
||||
<Set name="requestHeaderSize">8192</Set>
|
||||
<Set name="responseHeaderSize">8192</Set>
|
||||
<Set name="sendServerVersion">true</Set>
|
||||
<Set name="sendDateHeader">false</Set>
|
||||
<Set name="headerCacheSize">512</Set>
|
||||
|
||||
<!-- Uncomment to enable handling of X-Forwarded- style headers <Call name="addCustomizer"> -->
|
||||
<!-- <Arg><New class="org.eclipse.jetty.server.ForwardedRequestCustomizer"/></Arg> -->
|
||||
<!-- </Call> -->
|
||||
</New>
|
||||
</Configure>
|
||||
Binary file not shown.
Reference in New Issue
Block a user