Author: thomas.heute(a)jboss.com
Date: 2007-06-29 09:46:03 -0400 (Fri, 29 Jun 2007)
New Revision: 7647
Modified:
trunk/wsrp/src/main/org/jboss/portal/wsrp/WSRPRewritingConstants.java
Log:
Fix encoding issue.
Modified: trunk/wsrp/src/main/org/jboss/portal/wsrp/WSRPRewritingConstants.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/WSRPRewritingConstants.java 2007-06-29
12:26:35 UTC (rev 7646)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/WSRPRewritingConstants.java 2007-06-29
13:46:03 UTC (rev 7647)
@@ -37,7 +37,7 @@
/**
* 10.2.1 <p>All portlet URLs (i.e. those the Consumer needs to rewrite) are
demarcated in the markup by a token
- * (wsrp_rewrite) both at the start (with a �?� appended to clearly delimit the start
of the name/value pairs).</p>
+ * (wsrp_rewrite) both at the start (with a '?' appended to clearly delimit
the start of the name/value pairs).</p>
*/
public static final String BEGIN_WSRP_REWRITE = WSRP_REWRITE + "?";
@@ -45,7 +45,7 @@
/**
* 10.2.1 <p>All portlet URLs (i.e. those the Consumer needs to rewrite) are
demarcated in the markup by a token
- * (wsrp_rewrite) at the end (proceeded by a �/� to form the end token) of the URL
declaration.</p>
+ * (wsrp_rewrite) at the end (proceeded by a '/' to form the end token) of the
URL declaration.</p>
*/
public static final String END_WSRP_REWRITE = "/" + WSRP_REWRITE;
@@ -68,7 +68,7 @@
/**
* 10.2.1.1.2 wsrp-urlType = render <p>Activation of the URL will result in an
invocation of getMarkup(). This
- * mechanism permits a Portlet�s markup to contain URLs, which do not involve changes
to local state, to avoid the
+ * mechanism permits a Portlet's markup to contain URLs, which do not involve
changes to local state, to avoid the
* overhead of two-step processing by directly invoking getMarkup(). The URL MAY
specify a wsrp-navigationalState
* portlet URL parameter, whose value the Consumer MUST supply in the
navigationalState field of the MarkupParams
* structure. If there is no such portlet URL parameter, the Consumer MUST NOT supply
a value for this field.</p>
@@ -79,7 +79,7 @@
* 10.2.1.1.3 wsrp-urlType = resource <p>Activation of the URL will result in
the Consumer acting as a gateway to the
* underlying resource, possibly in a cached manner, and returning it to the
user-agent. The URL for the resource
* (including any query string parameters) is encoded as the value of the wsrp-url
parameter. When a portlet URL
- * specifies �resource� for the wsrp-urlType portlet URL parameter, both the wsrp-url
and wsrp-requiresRewrite
+ * specifies 'resource' for the wsrp-urlType portlet URL parameter, both the
wsrp-url and wsrp-requiresRewrite
* portlet URL parameters MUST also be specified. If the Portlet needs to share data
with the referenced resource, it
* can exploit the cookie support defined in section 10.4.</p>
*/
@@ -88,7 +88,7 @@
/**
* 10.2.1.1.3.1 wsrp-url <p>This parameter provides the actual URL to the
resource. Note that this needs to be an
* absolute URL as the resource fetch will have no base for use in fetching a relative
URL. Also note that since this
- * resource URL will appear as a parameter value, it has to be strictly encoded (i.e.
�&�, �=�, �/�, and �?� need to
+ * resource URL will appear as a parameter value, it has to be strictly encoded (i.e.
'&', '=', '/', and '?' need to
* be url-escaped) so that special URL characters do not invalidate the processing of
the enclosing URL. Consumers
* are encouraged to use the same communication style (e.g. HTTP Get or Post) for
retrieving the resource as was used
* in requesting the resource by the user-agent.</p>
@@ -99,11 +99,11 @@
* 10.2.1.1.3.2 wsrp-requiresRewrite <p>This boolean informs the Consumer that
the resource needs to be parsed for
* URL rewriting. Normally this means that there are names that will be
cross-referenced between the markup and this
* resource (e.g. JavaScript references). Note that this means the Consumer needs to
deal with rewriting unique
- * �namespaced� names in a set of documents, rather than treating each document
individually. Processing such
- * resources in a manner that allows caching of the resulting resource by the
End-User�s user-agent can improve the
+ * 'namespaced' names in a set of documents, rather than treating each
document individually. Processing such
+ * resources in a manner that allows caching of the resulting resource by the
End-User's user-agent can improve the
* performance of the aggregated page for the End-User. In particular, Consumers can
process namespace rewriting by
* using a prefix that is unique to the user/Portlet pair provided any such prefix is
held constant for the duration
- * of use within the user�s session with the Consumer of any one Portlet.</p>
+ * of use within the user's session with the Consumer of any one
Portlet.</p>
*/
public static final String RESOURCE_REQUIRES_REWRITE =
"wsrp-requiresRewrite";
@@ -125,8 +125,8 @@
* 10.2.1.4 wsrp-mode <p>Activating this URL includes a request to change the
mode parameter in MarkupParams into the
* mode specified as the value for this portlet URL parameter. The value for wsrp-mode
MUST be one of the modes
* detailed in section 6.8 or a custom mode the Consumer specified as supported during
registration. The wsrp-mode
- * portlet URL parameter MAY be used whenever the wsrp-urlType portlet URL parameter
has a value of �blockingAction�
- * or �render�.</p>
+ * portlet URL parameter MAY be used whenever the wsrp-urlType portlet URL parameter
has a value of 'blockingAction'
+ * or 'render'.</p>
*/
public static final String MODE = "wsrp-mode";
@@ -135,7 +135,7 @@
* MarkupParams into the window state specified as the value for this portlet URL
parameter. The value for wsrp-
* windowState MUST be one of the values detailed in section 6.9 or a custom window
state the Consumer specified as
* supported during registration. The wsrp-windowState portlet URL parameter MAY be
used whenever the wsrp-urlType
- * portlet URL parameter has a value of �blockingAction� or �render�.</p>
+ * portlet URL parameter has a value of 'blockingAction' or
'render'.</p>
*/
public static final String WINDOW_STATE = "wsrp-windowState";
@@ -148,14 +148,14 @@
/**
* 10.2.1.7 wsrp-secureURL <p>The value for the wsrp-secureURL is a boolean
indicating whether the resulting URL MUST
* involve secure communication between the client and Consumer, as well as between
the Consumer and Producer. The
- * default value of this boolean is �false�. Note that the Consumer�s aggregated page
MUST be secure if any of the
+ * default value of this boolean is 'false'. Note that the Consumer's
aggregated page MUST be secure if any of the
* Portlets whose content is being displayed on the page have indicated the need for
secure communication for their
* current markup.</p>
*/
public static final String SECURE_URL = "wsrp-secureURL";
/**
- * 10.3.1 Consumer Rewriting (Namespace encoding) <p>The Portlet can prefix the
token with �wsrp_rewrite_�. The
+ * 10.3.1 Consumer Rewriting (Namespace encoding) <p>The Portlet can prefix the
token with 'wsrp_rewrite_'. The
* Consumer will locate such markers and MUST replace them with a prefix that is
unique to this instance of this
* portlet on the page. This prefix has been chosen such that the Consumer is able to
do a single parse of the markup
* to both locate such markers and the URL rewrite expressions described in section
10.2.1. In addition, this prefix