public class URLEncoderFactory extends Object
 This factory can both create URLEncoders as well as keep track of an encoder on
 a per-request basis.  Additionally, custom URLEncoders can be added manually via
 the setURLEncoder(org.apache.myfaces.trinidad.util.URLEncoder) method.
| Constructor and Description | 
|---|
| URLEncoderFactory() | 
| Modifier and Type | Method and Description | 
|---|---|
| static URLEncoderFactory | getFactory()Returns the current URLEncoderFactory. | 
| URLEncoder | getURLEncoder()Returns the current URLEncoder if it has been set. | 
| URLEncoder | getURLEncoder(javax.faces.context.ExternalContext ec)Returns a URLEncoder if one has been set. | 
| void | setURLEncoder(URLEncoder encoder) | 
public static URLEncoderFactory getFactory()
public URLEncoder getURLEncoder()
IllegalStateException - if no controller has been set and FacesContext is
         currently unavailble.public URLEncoder getURLEncoder(javax.faces.context.ExternalContext ec)
IllegalStateException - if no controller has been set and the ExternalContext object
         is nullpublic void setURLEncoder(URLEncoder encoder)
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.