From ccf72d6752ca6b3b6f1d7ad28ed0a040592a9597 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Thu, 16 Mar 2017 11:28:43 -0700 Subject: [PATCH] Issue #1403 - moving CookieCompliance to jetty-http module --- .../main/java/org/eclipse/jetty/http}/CookieCompliance.java | 4 ++-- jetty-server/src/main/config/etc/jetty.xml | 2 +- .../main/java/org/eclipse/jetty/server/HttpConfiguration.java | 1 + .../src/main/java/org/eclipse/jetty/server/Response.java | 1 + .../src/test/java/org/eclipse/jetty/server/ResponseTest.java | 1 + 5 files changed, 6 insertions(+), 3 deletions(-) rename {jetty-server/src/main/java/org/eclipse/jetty/server => jetty-http/src/main/java/org/eclipse/jetty/http}/CookieCompliance.java (91%) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/CookieCompliance.java b/jetty-http/src/main/java/org/eclipse/jetty/http/CookieCompliance.java similarity index 91% rename from jetty-server/src/main/java/org/eclipse/jetty/server/CookieCompliance.java rename to jetty-http/src/main/java/org/eclipse/jetty/http/CookieCompliance.java index de4e5410581..5e64dad1f79 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/CookieCompliance.java +++ b/jetty-http/src/main/java/org/eclipse/jetty/http/CookieCompliance.java @@ -16,10 +16,10 @@ // ======================================================================== // -package org.eclipse.jetty.server; +package org.eclipse.jetty.http; /** * The compliance for Cookie handling. * */ -public enum CookieCompliance { RFC6265, RFC2965 } \ No newline at end of file +public enum CookieCompliance { RFC6265, RFC2965 } diff --git a/jetty-server/src/main/config/etc/jetty.xml b/jetty-server/src/main/config/etc/jetty.xml index 3ee6a989214..a7082741a24 100644 --- a/jetty-server/src/main/config/etc/jetty.xml +++ b/jetty-server/src/main/config/etc/jetty.xml @@ -90,7 +90,7 @@ - + diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConfiguration.java b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConfiguration.java index df9acc868b6..11e0fb77d78 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConfiguration.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConfiguration.java @@ -23,6 +23,7 @@ import java.util.List; import java.util.Set; import java.util.concurrent.CopyOnWriteArrayList; +import org.eclipse.jetty.http.CookieCompliance; import org.eclipse.jetty.http.HttpMethod; import org.eclipse.jetty.http.HttpScheme; import org.eclipse.jetty.util.Jetty; diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/Response.java b/jetty-server/src/main/java/org/eclipse/jetty/server/Response.java index 4266a5c61d2..0502955eb92 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/Response.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/Response.java @@ -35,6 +35,7 @@ import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; +import org.eclipse.jetty.http.CookieCompliance; import org.eclipse.jetty.http.DateGenerator; import org.eclipse.jetty.http.HttpContent; import org.eclipse.jetty.http.HttpCookie; diff --git a/jetty-server/src/test/java/org/eclipse/jetty/server/ResponseTest.java b/jetty-server/src/test/java/org/eclipse/jetty/server/ResponseTest.java index 564528274be..bad490a1653 100644 --- a/jetty-server/src/test/java/org/eclipse/jetty/server/ResponseTest.java +++ b/jetty-server/src/test/java/org/eclipse/jetty/server/ResponseTest.java @@ -57,6 +57,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; +import org.eclipse.jetty.http.CookieCompliance; import org.eclipse.jetty.http.HttpField; import org.eclipse.jetty.http.HttpFields; import org.eclipse.jetty.http.HttpHeader;