Upgrade to Tomcat 8.5.11
This commit is contained in:
17
classes/test/spring-web-reactive/log4j2-test.xml
Normal file
17
classes/test/spring-web-reactive/log4j2-test.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Configuration status="WARN">
|
||||
<Appenders>
|
||||
<Console name="Console" target="SYSTEM_OUT">
|
||||
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n" />
|
||||
</Console>
|
||||
</Appenders>
|
||||
<Loggers>
|
||||
<Logger name="org.springframework.http" level="debug" />
|
||||
<Logger name="org.springframework.web" level="debug" />
|
||||
<Logger name="reactor" level="info" />
|
||||
<Logger name="io.reactivex" level="info" />
|
||||
<Root level="error">
|
||||
<AppenderRef ref="Console" />
|
||||
</Root>
|
||||
</Loggers>
|
||||
</Configuration>
|
||||
@@ -0,0 +1 @@
|
||||
test stylesheet content
|
||||
@@ -0,0 +1,2 @@
|
||||
Hello World
|
||||
This is a sample response text file.
|
||||
@@ -0,0 +1,2 @@
|
||||
Hello World
|
||||
This is a sample response text file.
|
||||
@@ -0,0 +1,2 @@
|
||||
Hello World
|
||||
This is a sample response text file.
|
||||
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
||||
|
||||
<bean id="mapping" class="org.springframework.web.reactive.handler.SimpleUrlHandlerMapping">
|
||||
<property name="urlDecode" value="true" />
|
||||
<property name="mappings">
|
||||
<value>
|
||||
welcome.html=mainController
|
||||
/**/pathmatchingTest.html=mainController
|
||||
/**/pathmatching??.html=mainController
|
||||
/**/path??matching.html=mainController
|
||||
/**/??path??matching.html=mainController
|
||||
/**/*.jsp=mainController
|
||||
/administrator/**/pathmatching.html=mainController
|
||||
/administrator/**/testlast*=mainController
|
||||
/administrator/another/bla.xml=mainController
|
||||
/administrator/testing/longer/**/**/**/**/**=mainController
|
||||
/administrator/testing/longer2/**/**/bla/**=mainController
|
||||
/*test*.jpeg=mainController
|
||||
/*/test.jpeg=mainController
|
||||
/outofpattern*yeah=mainController
|
||||
/anotherTest*=mainController
|
||||
/stillAnotherTestYeah=mainController
|
||||
/shortpattern/testing=mainController
|
||||
/show123.html=mainController
|
||||
/sho*=mainController
|
||||
/bookseats.html=mainController
|
||||
/reservation.html=mainController
|
||||
/payment.html=mainController
|
||||
/confirmation.html=mainController
|
||||
/test%26t%20est/path%26m%20atching.html=mainController
|
||||
</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="mainController" class="java.lang.Object"/>
|
||||
|
||||
</beans>
|
||||
@@ -0,0 +1 @@
|
||||
h2 { color:white; }
|
||||
@@ -0,0 +1,4 @@
|
||||
THIS DOES NOT START WITH "CACHE MANIFEST"
|
||||
|
||||
CACHE:
|
||||
bar.css
|
||||
@@ -0,0 +1,3 @@
|
||||
@import url("http://example.org/fonts/css");
|
||||
body { background: url("file:///home/spring/image.png") }
|
||||
figure { background: url("//example.org/style.css")}
|
||||
@@ -0,0 +1 @@
|
||||
h1 { color:red; }
|
||||
@@ -0,0 +1 @@
|
||||
h1 { color:red; }
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Foo</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1 @@
|
||||
Some text.
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 155 B |
@@ -0,0 +1 @@
|
||||
function foo() { console.log("hello bar"); }
|
||||
@@ -0,0 +1 @@
|
||||
function foo() { console.log("hello world"); }
|
||||
@@ -0,0 +1,9 @@
|
||||
|
||||
@import url("bar.css");
|
||||
@import url('bar.css');
|
||||
@import url(bar.css);
|
||||
|
||||
@import "foo.css";
|
||||
@import 'foo.css';
|
||||
|
||||
body { background: url("images/image.png") }
|
||||
@@ -0,0 +1,17 @@
|
||||
CACHE MANIFEST
|
||||
|
||||
# this is a comment
|
||||
CACHE:
|
||||
bar.css
|
||||
foo.css
|
||||
//example.org/style.css
|
||||
|
||||
NETWORK:
|
||||
*
|
||||
|
||||
CACHE:
|
||||
js/bar.js
|
||||
http://example.org/image.png
|
||||
|
||||
FALLBACK:
|
||||
/main /static.html
|
||||
@@ -0,0 +1 @@
|
||||
fail
|
||||
@@ -0,0 +1 @@
|
||||
h1 { color:red; }
|
||||
@@ -0,0 +1 @@
|
||||
function foo() { console.log("hello world"); }
|
||||
@@ -0,0 +1 @@
|
||||
big secret
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 121 KiB |
@@ -0,0 +1 @@
|
||||
<html><body>${hello}</body></html>
|
||||
@@ -0,0 +1,20 @@
|
||||
require 'erb'
|
||||
require 'ostruct'
|
||||
require 'java'
|
||||
|
||||
# Renders an ERB template against a hashmap of variables.
|
||||
def render(template, variables, url)
|
||||
context = OpenStruct.new(variables).instance_eval do
|
||||
variables.each do |k, v|
|
||||
instance_variable_set(k, v) if k[0] == '@'
|
||||
end
|
||||
|
||||
def partial(partial_name, options={})
|
||||
new_variables = marshal_dump.merge(options[:locals] || {})
|
||||
Java::Pavo::ERB.render(partial_name, new_variables)
|
||||
end
|
||||
|
||||
binding
|
||||
end
|
||||
ERB.new(template).result(context);
|
||||
end
|
||||
@@ -0,0 +1 @@
|
||||
<html><head><title><%= title %></title></head><body><p><%= body %></p></body></html>
|
||||
@@ -0,0 +1,5 @@
|
||||
from string import Template
|
||||
|
||||
def render(template, model, url):
|
||||
s = Template(template)
|
||||
return s.substitute(model)
|
||||
@@ -0,0 +1 @@
|
||||
<html><head><title>$title</title></head><body><p>$body</p></body></html>
|
||||
@@ -0,0 +1,10 @@
|
||||
import javax.script.*
|
||||
|
||||
// TODO Use engine.eval(String, Bindings) when https://youtrack.jetbrains.com/issue/KT-15450 will be fixed
|
||||
fun render(template: String, model: Map<String, Any>, url: String): String {
|
||||
val engine = ScriptEngineManager().getEngineByName("kotlin")
|
||||
val bindings = SimpleBindings()
|
||||
bindings.putAll(model)
|
||||
engine.setBindings(bindings, ScriptContext.ENGINE_SCOPE)
|
||||
return engine.eval(template) as String
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
"""<html><head><title>${bindings["title"]}</title></head><body><p>${bindings["body"]}</p></body></html>"""
|
||||
@@ -0,0 +1,7 @@
|
||||
function render(template, model) {
|
||||
return template.replace("{{title}}", model.title).replace("{{body}}", model.body);
|
||||
}
|
||||
|
||||
function renderWithUrl(template, model, url) {
|
||||
return template.replace("{{title}}", "Check url parameter").replace("{{body}}", url);
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<html><head><title>{{title}}</title></head><body><p>{{body}}</p></body></html>
|
||||
Reference in New Issue
Block a user