org.apache.myfaces.trinidadinternal.share.url
Class FacesURLEncoder

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.share.url.FacesURLEncoder
All Implemented Interfaces:
URLEncoder

public class FacesURLEncoder
extends java.lang.Object
implements URLEncoder


Constructor Summary
FacesURLEncoder(javax.faces.context.FacesContext context)
           
 
Method Summary
 java.lang.String encodeParameter(java.lang.String key)
          Given the logical name of a parameter, return the parameter key that should be used in the URL.
 java.lang.String encodeURL(java.lang.String url)
          Encode an URL.
 java.lang.String getDefaultURL()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacesURLEncoder

public FacesURLEncoder(javax.faces.context.FacesContext context)
Method Detail

encodeParameter

public java.lang.String encodeParameter(java.lang.String key)
Description copied from interface: URLEncoder
Given the logical name of a parameter, return the parameter key that should be used in the URL. This function should not be used for parameter values.

Specified by:
encodeParameter in interface URLEncoder

encodeURL

public java.lang.String encodeURL(java.lang.String url)
Description copied from interface: URLEncoder
Encode an URL.

Specified by:
encodeURL in interface URLEncoder

getDefaultURL

public java.lang.String getDefaultURL()
Specified by:
getDefaultURL in interface URLEncoder
Returns:
this is an URL to the current page. This is useful, for example, in a form submission; if the destination of a form has not been set, this default URL can be used to submit the form back to the page it originated from.


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.