This is an automated email from the ASF dual-hosted git repository. rcordier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit f59c6dfe3637d50b18a1613d673c2a8f8e24c319 Author: Rene Cordier <rcord...@linagora.com> AuthorDate: Tue Mar 17 14:56:55 2020 +0700 JAMES-3092 Move JMAPUrls to jmap module --- .../src/main/java/org/apache/james/jmap/http/AuthenticationRoutes.java | 3 ++- .../src/main/java/org/apache/james/jmap/http/DownloadRoutes.java | 2 +- .../src/main/java/org/apache/james/jmap/http/JMAPApiRoutes.java | 2 +- .../src/main/java/org/apache/james/jmap/http/UploadRoutes.java | 2 +- .../src/test/java/org/apache/james/jmap/http/JMAPApiRoutesTest.java | 2 +- .../http => jmap/src/main/java/org/apache/james/jmap}/JMAPUrls.java | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/AuthenticationRoutes.java b/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/AuthenticationRoutes.java index db645dd..4c33bc9 100644 --- a/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/AuthenticationRoutes.java +++ b/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/AuthenticationRoutes.java @@ -28,7 +28,7 @@ import static io.netty.handler.codec.http.HttpResponseStatus.OK; import static io.netty.handler.codec.http.HttpResponseStatus.UNAUTHORIZED; import static org.apache.james.jmap.HttpConstants.JSON_CONTENT_TYPE; import static org.apache.james.jmap.HttpConstants.JSON_CONTENT_TYPE_UTF8; -import static org.apache.james.jmap.http.JMAPUrls.AUTHENTICATION; +import static org.apache.james.jmap.JMAPUrls.AUTHENTICATION; import static org.apache.james.jmap.http.LoggingHelper.jmapAction; import static org.apache.james.jmap.http.LoggingHelper.jmapAuthContext; import static org.apache.james.jmap.http.LoggingHelper.jmapContext; @@ -42,6 +42,7 @@ import javax.inject.Inject; import org.apache.james.core.Username; import org.apache.james.jmap.JMAPRoutes; +import org.apache.james.jmap.JMAPUrls; import org.apache.james.jmap.api.access.AccessToken; import org.apache.james.jmap.draft.api.AccessTokenManager; import org.apache.james.jmap.draft.api.SimpleTokenFactory; diff --git a/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/DownloadRoutes.java b/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/DownloadRoutes.java index 57b99bd..c32edc6 100644 --- a/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/DownloadRoutes.java +++ b/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/DownloadRoutes.java @@ -22,7 +22,7 @@ import static io.netty.handler.codec.http.HttpHeaderNames.CONTENT_TYPE; import static io.netty.handler.codec.http.HttpResponseStatus.NOT_FOUND; import static io.netty.handler.codec.http.HttpResponseStatus.OK; import static org.apache.james.jmap.HttpConstants.TEXT_PLAIN_CONTENT_TYPE; -import static org.apache.james.jmap.http.JMAPUrls.DOWNLOAD; +import static org.apache.james.jmap.JMAPUrls.DOWNLOAD; import static org.apache.james.jmap.http.LoggingHelper.jmapAction; import static org.apache.james.jmap.http.LoggingHelper.jmapAuthContext; import static org.apache.james.jmap.http.LoggingHelper.jmapContext; diff --git a/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/JMAPApiRoutes.java b/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/JMAPApiRoutes.java index 9a483e2..f8dc7ca 100644 --- a/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/JMAPApiRoutes.java +++ b/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/JMAPApiRoutes.java @@ -21,7 +21,7 @@ package org.apache.james.jmap.http; import static io.netty.handler.codec.http.HttpHeaderNames.CONTENT_TYPE; import static io.netty.handler.codec.http.HttpResponseStatus.OK; import static org.apache.james.jmap.HttpConstants.JSON_CONTENT_TYPE; -import static org.apache.james.jmap.http.JMAPUrls.JMAP; +import static org.apache.james.jmap.JMAPUrls.JMAP; import static org.apache.james.jmap.http.LoggingHelper.jmapAuthContext; import static org.apache.james.jmap.http.LoggingHelper.jmapContext; import static org.apache.james.util.ReactorUtils.logOnError; diff --git a/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/UploadRoutes.java b/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/UploadRoutes.java index ff0f306..2465b0b 100644 --- a/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/UploadRoutes.java +++ b/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/UploadRoutes.java @@ -22,7 +22,7 @@ import static io.netty.handler.codec.http.HttpHeaderNames.CONTENT_TYPE; import static io.netty.handler.codec.http.HttpResponseStatus.BAD_REQUEST; import static io.netty.handler.codec.http.HttpResponseStatus.CREATED; import static org.apache.james.jmap.HttpConstants.JSON_CONTENT_TYPE_UTF8; -import static org.apache.james.jmap.http.JMAPUrls.UPLOAD; +import static org.apache.james.jmap.JMAPUrls.UPLOAD; import static org.apache.james.jmap.http.LoggingHelper.jmapAction; import static org.apache.james.jmap.http.LoggingHelper.jmapAuthContext; import static org.apache.james.jmap.http.LoggingHelper.jmapContext; diff --git a/server/protocols/jmap-draft/src/test/java/org/apache/james/jmap/http/JMAPApiRoutesTest.java b/server/protocols/jmap-draft/src/test/java/org/apache/james/jmap/http/JMAPApiRoutesTest.java index 5cb214f..7973c98 100644 --- a/server/protocols/jmap-draft/src/test/java/org/apache/james/jmap/http/JMAPApiRoutesTest.java +++ b/server/protocols/jmap-draft/src/test/java/org/apache/james/jmap/http/JMAPApiRoutesTest.java @@ -21,7 +21,7 @@ package org.apache.james.jmap.http; import static io.restassured.RestAssured.given; import static io.restassured.config.EncoderConfig.encoderConfig; import static io.restassured.config.RestAssuredConfig.newConfig; -import static org.apache.james.jmap.http.JMAPUrls.JMAP; +import static org.apache.james.jmap.JMAPUrls.JMAP; import static org.hamcrest.Matchers.equalTo; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.doReturn; diff --git a/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/JMAPUrls.java b/server/protocols/jmap/src/main/java/org/apache/james/jmap/JMAPUrls.java similarity index 97% rename from server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/JMAPUrls.java rename to server/protocols/jmap/src/main/java/org/apache/james/jmap/JMAPUrls.java index 9252165..f7256c7 100644 --- a/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/JMAPUrls.java +++ b/server/protocols/jmap/src/main/java/org/apache/james/jmap/JMAPUrls.java @@ -17,7 +17,7 @@ * under the License. * ****************************************************************/ -package org.apache.james.jmap.http; +package org.apache.james.jmap; public interface JMAPUrls { String JMAP = "/jmap"; --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org