summaryrefslogtreecommitdiff
path: root/docs/modules/html-backend/examples/wrap.adoc
diff options
context:
space:
mode:
authorSarah White <graphitefriction@gmail.com>2020-12-18 16:56:51 -0700
committerGitHub <noreply@github.com>2020-12-18 16:56:51 -0700
commitfffa2ed16cd1be9f7f6bb7356e1eda83d47fc972 (patch)
tree0dda9ef8df40bbe8087b66bfadaee5cf948d1571 /docs/modules/html-backend/examples/wrap.adoc
parent47c5bf28ee16f598bff7f31901437c3a193ee685 (diff)
parent717a1cbd6b7c9af192325b76d96ae5e86aeeb595 (diff)
merge PR #3880
resolves #3861 import Asciidoctor docs from asciidoctor.org/docs
Diffstat (limited to 'docs/modules/html-backend/examples/wrap.adoc')
-rw-r--r--docs/modules/html-backend/examples/wrap.adoc17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/modules/html-backend/examples/wrap.adoc b/docs/modules/html-backend/examples/wrap.adoc
new file mode 100644
index 00000000..3f877d7d
--- /dev/null
+++ b/docs/modules/html-backend/examples/wrap.adoc
@@ -0,0 +1,17 @@
+// tag::nowrap[]
+[source%nowrap,java]
+----
+public class ApplicationConfigurationProvider extends HttpConfigurationProvider
+{
+ @Override
+ public Configuration getConfiguration(ServletContext context)
+ {
+ return ConfigurationBuilder.begin()
+ .addRule()
+ .when(Direction.isInbound().and(Path.matches("/{path}")))
+ .perform(Log.message(Level.INFO, "Client requested path: {path}"))
+ .where("path").matches(".*");
+ }
+}
+----
+// end::nowrap[]