From 70cd3ed6d1bd67c3c92d92388c0ca7fe256748d9 Mon Sep 17 00:00:00 2001 From: Takayuki Uchida <157561926+tisuchida@users.noreply.github.com> Date: Wed, 8 May 2024 21:34:24 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=E3=81=84=E3=81=8F=E3=81=A4=E3=81=8B?= =?UTF-8?q?=E3=81=AEAPI=E3=82=92=E5=85=AC=E9=96=8BAPI=E5=8C=96=E3=81=97?= =?UTF-8?q?=E3=81=BE=E3=81=97=E3=81=9F=20(#21)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 公開APIの追加 * refactor: インスペクション警告の対応 --- src/main/java/nablarch/integration/router/PathOptions.java | 2 ++ .../java/nablarch/integration/router/PathOptionsFormatter.java | 3 +++ .../java/nablarch/integration/router/RoutesMappingTest.java | 1 - .../nablarch/integration/router/RoutesMethodBinderTest.java | 1 - 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/nablarch/integration/router/PathOptions.java b/src/main/java/nablarch/integration/router/PathOptions.java index d56c6da..6b3bcd8 100644 --- a/src/main/java/nablarch/integration/router/PathOptions.java +++ b/src/main/java/nablarch/integration/router/PathOptions.java @@ -1,5 +1,6 @@ package nablarch.integration.router; +import nablarch.core.util.annotation.Published; import net.unit8.http.router.Options; /** @@ -7,6 +8,7 @@ * * @author Tanaka Tomoyuki */ +@Published(tag = "architect") public class PathOptions { private final String path; private final Options options; diff --git a/src/main/java/nablarch/integration/router/PathOptionsFormatter.java b/src/main/java/nablarch/integration/router/PathOptionsFormatter.java index d78ef80..cf32203 100644 --- a/src/main/java/nablarch/integration/router/PathOptionsFormatter.java +++ b/src/main/java/nablarch/integration/router/PathOptionsFormatter.java @@ -1,5 +1,7 @@ package nablarch.integration.router; +import nablarch.core.util.annotation.Published; + import java.util.List; /** @@ -7,6 +9,7 @@ * * @author Tanaka Tomoyuki */ +@Published(tag = "architect") public interface PathOptionsFormatter { /** diff --git a/src/test/java/nablarch/integration/router/RoutesMappingTest.java b/src/test/java/nablarch/integration/router/RoutesMappingTest.java index 59c9bca..9b6a5c4 100644 --- a/src/test/java/nablarch/integration/router/RoutesMappingTest.java +++ b/src/test/java/nablarch/integration/router/RoutesMappingTest.java @@ -14,7 +14,6 @@ import nablarch.fw.web.HttpResponse; import nablarch.fw.web.handler.MethodBinderFactory; import nablarch.fw.web.servlet.HttpRequestWrapper; -import nablarch.fw.web.servlet.NablarchHttpServletRequestWrapper; import nablarch.fw.web.servlet.ServletExecutionContext; import nablarch.integration.router.sub.SubRoutesMappingTestAction; import net.unit8.http.router.RoutingException; diff --git a/src/test/java/nablarch/integration/router/RoutesMethodBinderTest.java b/src/test/java/nablarch/integration/router/RoutesMethodBinderTest.java index ec52f23..7c5464c 100644 --- a/src/test/java/nablarch/integration/router/RoutesMethodBinderTest.java +++ b/src/test/java/nablarch/integration/router/RoutesMethodBinderTest.java @@ -9,7 +9,6 @@ import nablarch.fw.web.servlet.ServletExecutionContext; import org.junit.Test; -import javax.servlet.Servlet; import javax.servlet.http.HttpServletRequest; import static org.hamcrest.CoreMatchers.is; From 0aacc449cdc08cb199eb16ee72e1d99536766afc Mon Sep 17 00:00:00 2001 From: Takayuki Uchida Date: Fri, 13 Sep 2024 09:40:41 +0900 Subject: [PATCH 2/3] =?UTF-8?q?sastruts-advanced-routes=E3=81=AE=E8=A8=98?= =?UTF-8?q?=E8=BC=89=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/nablarch/integration/router/RoutesMappingTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/nablarch/integration/router/RoutesMappingTest.java b/src/test/java/nablarch/integration/router/RoutesMappingTest.java index 9b6a5c4..2a7e16f 100644 --- a/src/test/java/nablarch/integration/router/RoutesMappingTest.java +++ b/src/test/java/nablarch/integration/router/RoutesMappingTest.java @@ -37,7 +37,7 @@ * {@link NablarchControllerDetector}も合わせてテストします。 *

* ルーティングライブラリの仕様は以下を見てください。
- * https://github.com/kawasima/sastruts-advanced-routes/blob/master/README.ja.md + * https://github.com/kawasima/http-request-router/blob/master/README.ja.md */ public class RoutesMappingTest { From e8dd0d1d315220108d57c8f5a49e1c6ebd210cb3 Mon Sep 17 00:00:00 2001 From: oguchi-shiori03 Date: Fri, 13 Sep 2024 19:53:16 +0900 Subject: [PATCH 3/3] =?UTF-8?q?6u2=E3=83=AA=E3=83=AA=E3=83=BC=E3=82=B9?= =?UTF-8?q?=E7=94=A8=E3=81=AE=E3=83=90=E3=83=BC=E3=82=B8=E3=83=A7=E3=83=B3?= =?UTF-8?q?=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 280b970..dea889f 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.nablarch.integration nablarch-router-adaptor - 6-NEXT-SNAPSHOT + 2.1.0 scm:git:git://github.com/nablarch/${project.artifactId}.git @@ -16,7 +16,7 @@ com.nablarch nablarch-parent - 6-NEXT-SNAPSHOT + 6u2