Author: julien(a)jboss.com
Date: 2007-02-10 19:39:20 -0500 (Sat, 10 Feb 2007)
New Revision: 6208
Modified:
trunk/common/src/main/org/jboss/portal/common/markup/MarkupElement.java
Log:
- moved markup classes to common
- test case for markup classes
- removed obsolete x-www-url-formencoded encoder because it is duplicated by
FastURLEncoder
- added UndeclaredIOException to prevent classes to have to throw IOException in their
signature
Modified: trunk/common/src/main/org/jboss/portal/common/markup/MarkupElement.java
===================================================================
--- trunk/common/src/main/org/jboss/portal/common/markup/MarkupElement.java 2007-02-11
00:38:43 UTC (rev 6207)
+++ trunk/common/src/main/org/jboss/portal/common/markup/MarkupElement.java 2007-02-11
00:39:20 UTC (rev 6208)
@@ -136,9 +136,9 @@
return null;
}
- public void write(String contextPath, Writer writer) throws UndeclaredIOException
+ public void write(String urlPrefix, Writer writer) throws UndeclaredIOException
{
- if (contextPath == null)
+ if (urlPrefix == null)
{
throw new IllegalArgumentException("No context path provided");
}
@@ -162,7 +162,7 @@
writer.write("=\"");
if (attribute.value.startsWith("/"))
{
- MarkupAttribute.Type.URI.encode(contextPath, writer);
+ MarkupAttribute.Type.URI.encode(urlPrefix, writer);
}
writer.write(attribute.encodedValue);
writer.write('"');
Show replies by date