[jboss-cvs] jboss-portal/core/src/main/org/jboss/portal/core/cms ...
Julien Viet
julien at jboss.com
Thu Jul 20 20:10:02 EDT 2006
User: julien
Date: 06/07/20 20:10:02
Modified: core/src/main/org/jboss/portal/core/cms
CMSObjectURLFactory.java
Log:
allow null prefixes for url factories
Revision Changes Path
1.9 +10 -3 jboss-portal/core/src/main/org/jboss/portal/core/cms/CMSObjectURLFactory.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CMSObjectURLFactory.java
===================================================================
RCS file: /cvsroot/jboss/jboss-portal/core/src/main/org/jboss/portal/core/cms/CMSObjectURLFactory.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- CMSObjectURLFactory.java 9 Jul 2006 00:35:43 -0000 1.8
+++ CMSObjectURLFactory.java 21 Jul 2006 00:10:02 -0000 1.9
@@ -30,7 +30,7 @@
/**
* @author <a href="mailto:julien at jboss.org">Julien Viet</a>
- * @version $Revision: 1.8 $
+ * @version $Revision: 1.9 $
*/
public class CMSObjectURLFactory extends URLFactoryDelegate
{
@@ -64,9 +64,16 @@
}
if(cmd instanceof StreamContentCommand)
{
- StreamContentCommand scc = (StreamContentCommand) cmd;
StringBuffer buffer = new StringBuffer();
+
+ //
+ if (prefix != null && prefix.length() > 0)
+ {
buffer.append('/').append(prefix);
+ }
+
+ //
+ StreamContentCommand scc = (StreamContentCommand) cmd;
buffer.append(scc.getPath());
AbstractServerURL asu = new AbstractServerURL();
asu.setPortalRequestPath(buffer.toString());
More information about the jboss-cvs-commits
mailing list