JAVA-15787 Created new di-modules and server-modules
- Moved spring-freemarker to spring-web-modules
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://java.sun.com/xml/ns/javaee"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_4_0.xsd"
|
||||
id="ping"
|
||||
version="3.0">
|
||||
<display-name>Ping</display-name>
|
||||
|
||||
<security-constraint>
|
||||
<display-name>Ping Login Auth</display-name>
|
||||
<web-resource-collection>
|
||||
<web-resource-name>PingRestrictedAccess</web-resource-name>
|
||||
<url-pattern>/private/*</url-pattern>
|
||||
</web-resource-collection>
|
||||
<auth-constraint>
|
||||
<role-name>admin</role-name>
|
||||
</auth-constraint>
|
||||
<user-data-constraint>
|
||||
<transport-guarantee>NONE</transport-guarantee>
|
||||
</user-data-constraint>
|
||||
</security-constraint>
|
||||
|
||||
<security-role>
|
||||
<role-name>admin</role-name>
|
||||
</security-role>
|
||||
|
||||
<login-config>
|
||||
<auth-method>FORM</auth-method>
|
||||
<form-login-config>
|
||||
<form-login-page>/logging.html</form-login-page>
|
||||
<form-error-page>/logging_error.html</form-error-page>
|
||||
</form-login-config>
|
||||
</login-config>
|
||||
|
||||
<filter>
|
||||
<filter-name>PingExpiresFilter</filter-name>
|
||||
<filter-class>org.apache.catalina.filters.ExpiresFilter</filter-class>
|
||||
<init-param>
|
||||
<param-name>ExpiresByType text/html</param-name>
|
||||
<param-value>access plus 0 seconds</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>PingExpiresFilter</filter-name>
|
||||
<url-pattern>/private/*</url-pattern>
|
||||
<dispatcher>REQUEST</dispatcher>
|
||||
</filter-mapping>
|
||||
</web-app>
|
||||
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Ping</title>
|
||||
</head>
|
||||
<body>
|
||||
<a href="private/index.html">Start pinging</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Ping - Login</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="post" action="j_security_check">
|
||||
<table >
|
||||
<tr>
|
||||
<td>User name: </td>
|
||||
<td><input type="text" name="j_username"
|
||||
size="20"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Password: </td>
|
||||
<td><input type="password" name="j_password"
|
||||
size="20"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p></p>
|
||||
<input type="submit" value="Submit"/>
|
||||
|
||||
<input type="reset" value="Reset"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Ping</title>
|
||||
</head>
|
||||
<body>
|
||||
Error logging in!
|
||||
<a href="index.html">Try again</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Ping - Pinging</title>
|
||||
</head>
|
||||
<body>
|
||||
<a href="/pong/private/index.html">Pong!</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
|
||||
<display-name>Pong</display-name>
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.html</welcome-file>
|
||||
</welcome-file-list>
|
||||
|
||||
|
||||
<security-constraint>
|
||||
<display-name>Pong Login Auth</display-name>
|
||||
<web-resource-collection>
|
||||
<web-resource-name>PongRestrictedAccess</web-resource-name>
|
||||
<url-pattern>/private/*</url-pattern>
|
||||
</web-resource-collection>
|
||||
<auth-constraint>
|
||||
<role-name>admin</role-name>
|
||||
</auth-constraint>
|
||||
<user-data-constraint>
|
||||
<transport-guarantee>NONE</transport-guarantee>
|
||||
</user-data-constraint>
|
||||
</security-constraint>
|
||||
|
||||
<security-role>
|
||||
<role-name>admin</role-name>
|
||||
</security-role>
|
||||
|
||||
|
||||
<login-config>
|
||||
<auth-method>DIGEST</auth-method>
|
||||
</login-config>
|
||||
|
||||
<filter>
|
||||
<filter-name>PongExpiresFilter</filter-name>
|
||||
<filter-class>org.apache.catalina.filters.ExpiresFilter</filter-class>
|
||||
<init-param>
|
||||
<param-name>ExpiresByType text/html</param-name>
|
||||
<param-value>access plus 0 seconds</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>PongExpiresFilter</filter-name>
|
||||
<url-pattern>/private/*</url-pattern>
|
||||
<dispatcher>REQUEST</dispatcher>
|
||||
</filter-mapping>
|
||||
|
||||
</web-app>
|
||||
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Pong</title>
|
||||
</head>
|
||||
<body>
|
||||
<a href="private/index.html">Start ponging</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Pong - Ponging</title>
|
||||
</head>
|
||||
<body>
|
||||
<a href="/ping/private/index.html">Ping!</a>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user