Return-Path: Delivered-To: apmail-cocoon-cvs-archive@www.apache.org Received: (qmail 43010 invoked from network); 6 Nov 2009 09:37:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Nov 2009 09:37:05 -0000 Received: (qmail 51042 invoked by uid 500); 6 Nov 2009 09:37:05 -0000 Delivered-To: apmail-cocoon-cvs-archive@cocoon.apache.org Received: (qmail 50943 invoked by uid 500); 6 Nov 2009 09:37:05 -0000 Mailing-List: contact cvs-help@cocoon.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@cocoon.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@cocoon.apache.org Received: (qmail 50933 invoked by uid 99); 6 Nov 2009 09:37:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Nov 2009 09:37:05 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Nov 2009 09:37:02 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id B2806238888F; Fri, 6 Nov 2009 09:36:42 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r833328 - in /cocoon/cocoon3/trunk/cocoon-profiling/src: main/java/org/apache/cocoon/profiling/profiler/ main/resources/COB-INF/ test/java/org/apache/cocoon/profiling/ test/resources/org/apache/cocoon/profiling/ Date: Fri, 06 Nov 2009 09:36:42 -0000 To: cvs@cocoon.apache.org From: reinhard@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091106093642.B2806238888F@eris.apache.org> Author: reinhard Date: Fri Nov 6 09:36:42 2009 New Revision: 833328 URL: http://svn.apache.org/viewvc?rev=833328&view=rev Log: cleanup the URI space for profiling URLs Modified: cocoon/cocoon3/trunk/cocoon-profiling/src/main/java/org/apache/cocoon/profiling/profiler/ServletProfiler.java cocoon/cocoon3/trunk/cocoon-profiling/src/main/resources/COB-INF/sitemap.xmap cocoon/cocoon3/trunk/cocoon-profiling/src/test/java/org/apache/cocoon/profiling/TestServletProfiler.java cocoon/cocoon3/trunk/cocoon-profiling/src/test/resources/org/apache/cocoon/profiling/simple.xml Modified: cocoon/cocoon3/trunk/cocoon-profiling/src/main/java/org/apache/cocoon/profiling/profiler/ServletProfiler.java URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-profiling/src/main/java/org/apache/cocoon/profiling/profiler/ServletProfiler.java?rev=833328&r1=833327&r2=833328&view=diff ============================================================================== --- cocoon/cocoon3/trunk/cocoon-profiling/src/main/java/org/apache/cocoon/profiling/profiler/ServletProfiler.java (original) +++ cocoon/cocoon3/trunk/cocoon-profiling/src/main/java/org/apache/cocoon/profiling/profiler/ServletProfiler.java Fri Nov 6 09:36:42 2009 @@ -30,7 +30,7 @@ */ public class ServletProfiler extends Profiler { - private final static String PROFILING_CONTROLLER_PATH = "controller/profiling/"; + private final static String PROFILING_CONTROLLER_PATH = "cocoon-profiling/"; private final static String PROFILING_ID_HEADER = "X-Cocoon-Profiling-ID"; private final static String PROFILING_URL_HEADER = "X-Cocoon-Profiling-URL"; private String mountPath; Modified: cocoon/cocoon3/trunk/cocoon-profiling/src/main/resources/COB-INF/sitemap.xmap URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-profiling/src/main/resources/COB-INF/sitemap.xmap?rev=833328&r1=833327&r2=833328&view=diff ============================================================================== --- cocoon/cocoon3/trunk/cocoon-profiling/src/main/resources/COB-INF/sitemap.xmap (original) +++ cocoon/cocoon3/trunk/cocoon-profiling/src/main/resources/COB-INF/sitemap.xmap Fri Nov 6 09:36:42 2009 @@ -21,17 +21,15 @@ xmlns:servlet="http://apache.org/cocoon/servlet" xmlns:controller="http://apache.org/cocoon/controller"> - - + - + - Modified: cocoon/cocoon3/trunk/cocoon-profiling/src/test/java/org/apache/cocoon/profiling/TestServletProfiler.java URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-profiling/src/test/java/org/apache/cocoon/profiling/TestServletProfiler.java?rev=833328&r1=833327&r2=833328&view=diff ============================================================================== --- cocoon/cocoon3/trunk/cocoon-profiling/src/test/java/org/apache/cocoon/profiling/TestServletProfiler.java (original) +++ cocoon/cocoon3/trunk/cocoon-profiling/src/test/java/org/apache/cocoon/profiling/TestServletProfiler.java Fri Nov 6 09:36:42 2009 @@ -36,25 +36,25 @@ @Test public void testRelativeUrl() { - assertEquals("controller/profiling/ID", this.servletProfiler.createRelativeUrl( + assertEquals("cocoon-profiling/ID", this.servletProfiler.createRelativeUrl( "http://localhost/myproject/home.html", "ID")); - assertEquals("../controller/profiling/ID", this.servletProfiler.createRelativeUrl( + assertEquals("../cocoon-profiling/ID", this.servletProfiler.createRelativeUrl( "http://localhost/myproject/foo/home.html", "ID")); - assertEquals("../../controller/profiling/ID", this.servletProfiler.createRelativeUrl( + assertEquals("../../cocoon-profiling/ID", this.servletProfiler.createRelativeUrl( "http://localhost/myproject/foo/bar/home.html", "ID")); - assertEquals("../../../controller/profiling/ID", this.servletProfiler.createRelativeUrl( + assertEquals("../../../cocoon-profiling/ID", this.servletProfiler.createRelativeUrl( "http://localhost/myproject/foo/bar/buz/home.html", "ID")); - assertEquals("../../../controller/profiling/ID", this.servletProfiler.createRelativeUrl( + assertEquals("../../../cocoon-profiling/ID", this.servletProfiler.createRelativeUrl( "http://localhost/myproject/foo/bar/buz/home.html?a=1", "ID")); - assertEquals("../../../controller/profiling/ID", this.servletProfiler.createRelativeUrl( + assertEquals("../../../cocoon-profiling/ID", this.servletProfiler.createRelativeUrl( "http://localhost/myproject/foo/bar/buz/home.html?a=1&b=2", "ID")); - assertEquals("../../../controller/profiling/ID", this.servletProfiler.createRelativeUrl( + assertEquals("../../../cocoon-profiling/ID", this.servletProfiler.createRelativeUrl( "http://localhost/myproject/foo/bar/buz/home.html?a=1&b=/", "ID")); } } Modified: cocoon/cocoon3/trunk/cocoon-profiling/src/test/resources/org/apache/cocoon/profiling/simple.xml URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-profiling/src/test/resources/org/apache/cocoon/profiling/simple.xml?rev=833328&r1=833327&r2=833328&view=diff ============================================================================== --- cocoon/cocoon3/trunk/cocoon-profiling/src/test/resources/org/apache/cocoon/profiling/simple.xml (original) +++ cocoon/cocoon3/trunk/cocoon-profiling/src/test/resources/org/apache/cocoon/profiling/simple.xml Fri Nov 6 09:36:42 2009 @@ -1,17 +1,20 @@ - + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + --> simple-text