forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r488448 - /forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/Controller.java
Date Mon, 18 Dec 2006 23:07:56 GMT
Author: rgardler
Date: Mon Dec 18 15:07:55 2006
New Revision: 488448

URL: http://svn.apache.org/viewvc?view=rev&rev=488448
Log:
Use Scheme Specific Part not Path of URI (solves problem with URIs such as site:plugin)

Modified:
    forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/Controller.java

Modified: forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/Controller.java
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/Controller.java?view=diff&rev=488448&r1=488447&r2=488448
==============================================================================
--- forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/Controller.java
(original)
+++ forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/Controller.java
Mon Dec 18 15:07:55 2006
@@ -469,12 +469,9 @@
 	 * 
 	 * @see org.apache.forrest.core.IController#getOutputDocument(java.net.URI)
 	 */
-	public AbstractOutputDocument getOutputDocument(final URI requestURI)
+	public AbstractOutputDocument getOutputDocument(URI requestURI)
 			throws MalformedURLException, ProcessingException {
-		String path = requestURI.getPath();
-		if (path == null) {
-			throw new ProcessingException("Unable to process request URI: " + requestURI);
-		}
+		String path = requestURI.getSchemeSpecificPart();
 		if (path.endsWith(this.sourceURLExtension)) {
 			return getSourceDocumentAsOutput(requestURI);
 		} else if (path.endsWith(this.internalURLExtension)) {



Mime
View raw message