Skip navigation links
org.apache.myfaces.trinidad.util
Class URLEncoderFactory
java.lang.Object
org.apache.myfaces.trinidad.util.URLEncoderFactory
-
public class URLEncoderFactory
- extends java.lang.Object
This is a factory for the URLEncoder. The URL encoder is a convenience class that handles URL encoding in a container independant fashion. The Portlet bridge spec and later JSF specifications have tried to make URL encoding more specific, but these technologies do not always address the needs of Trinidad URL encoding in all circumstances. This method aims to do just that.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLEncoderFactory
public URLEncoderFactory()
getFactory
public static URLEncoderFactory getFactory()
getURLEncoder
public URLEncoder getURLEncoder()
getURLEncoder
public URLEncoder getURLEncoder(javax.faces.context.ExternalContext ec)
- Returns a URLEncoder for this request.
-
- Returns:
- a URLEncoder for the given request
- Throws:
java.lang.IllegalStateException - when there is not FacesContext available and a URLEncoder has not been manually set. This can also be thrown if the URLEncoder has already been cleaned up at the end of the request.
setURLEncoder
public void setURLEncoder(URLEncoder encoder)
Skip navigation links
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.