docs/modules/html-backend/examples/wrap.adoc
raw| 1 | // tag::nowrap[] |
| 2 | [%nowrap,java] |
| 3 | ---- |
| 4 | public class ApplicationConfigurationProvider extends HttpConfigurationProvider |
| 5 | { |
| 6 | @Override |
| 7 | public Configuration getConfiguration(ServletContext context) |
| 8 | { |
| 9 | return ConfigurationBuilder.begin() |
| 10 | .addRule() |
| 11 | .when(Direction.isInbound().and(Path.matches("/{path}"))) |
| 12 | .perform(Log.message(Level.INFO, "Client requested path: {path}")) |
| 13 | .where("path").matches(".*"); |
| 14 | } |
| 15 | } |
| 16 | ---- |
| 17 | // end::nowrap[] |