]> juplo.de Git - maven-thymeleaf-skin/commitdiff
WIP: proxy
authorKai Moritz <kai@juplo.de>
Thu, 16 Jun 2016 11:43:24 +0000 (13:43 +0200)
committerKai Moritz <kai@juplo.de>
Thu, 16 Jun 2016 11:43:24 +0000 (13:43 +0200)
src/main/java/de/juplo/thymeproxy/Application.java
src/main/java/de/juplo/thymeproxy/RegexUrlHandlerMapping.java

index 8a496959ac2240103a950a9204b5ed75ff672725..a12205e2da4cd0da235e6c18f5512a3d4be8fcba 100644 (file)
@@ -7,14 +7,13 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.context.annotation.Bean;
 import org.springframework.core.Ordered;
 import org.springframework.core.env.Environment;
-import org.springframework.web.servlet.handler.SimpleUrlHandlerMapping;
 
 
 @SpringBootApplication
 public class Application
 {
   @Bean
-  public SimpleUrlHandlerMapping proxiedHandlerMapping(
+  public RegexUrlHandlerMapping proxiedHandlerMapping(
       ProxyHttpRequestHandler handler
       )
   {
index c7e52b4f94e31629a6748164c4e3f5314cfe122b..9c27b43c90c3d3a06b9656697365ac7f26bebf04 100644 (file)
@@ -1,16 +1,23 @@
-/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
 package de.juplo.thymeproxy;
 
 
+import org.springframework.util.PathMatcher;
+import org.springframework.web.servlet.handler.SimpleUrlHandlerMapping;
+
+
+
 /**
  *
  * @author kai
  */
-public class RegexUrlHandlerMapping
+public class RegexUrlHandlerMapping extends SimpleUrlHandlerMapping
 {
-  
+  private final RegexPathMatcher matcher = new RegexPathMatcher();
+
+
+  @Override
+  public PathMatcher getPathMatcher()
+  {
+    return matcher;
+  }
 }