org.apache.myfaces.commons.validator
Class UrlValidator
java.lang.Object
   org.apache.myfaces.commons.validator.ValidatorBase
org.apache.myfaces.commons.validator.ValidatorBase
       org.apache.myfaces.commons.validator.AbstractUrlValidator
org.apache.myfaces.commons.validator.AbstractUrlValidator
           org.apache.myfaces.commons.validator.UrlValidator
org.apache.myfaces.commons.validator.UrlValidator
- All Implemented Interfaces: 
- java.util.EventListener, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.validator.Validator
- public class UrlValidator 
- extends AbstractUrlValidator
 
 
| Fields inherited from interface javax.faces.validator.Validator | 
| NOT_IN_RANGE_MESSAGE_ID | 
 
 
| Method Summary | 
|  java.lang.String | getSchemes()CSV values that indicates the set of schemes to check this url.
 | 
|  boolean | isAllow2Slashes()Allow two slashes in the path component of the URL.
 | 
|  boolean | isAllowAllSchemas()Allows all validly formatted schemes to pass validation instead of 
  supplying a set of valid schemes.
 | 
|  void | setAllow2Slashes(boolean allow2Slashes)
 | 
|  void | setAllowAllSchemas(boolean allowAllSchemas)
 | 
|  void | setSchemes(java.lang.String schemes)
 | 
 
 
| Methods inherited from class org.apache.myfaces.commons.validator.ValidatorBase | 
| clearInitialState, getDetailMessage, getFacesContext, getFacesMessage, getMessage, getStateHelper, getStateHelper, getStringValue, getSummaryMessage, getValueExpression, initialStateMarked, isTransient, markInitialState, restoreAttachedState, restoreState, saveAttachedState, saveState, setDetailMessage, setMessage, setSummaryMessage, setTransient, setValueExpression | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
VALIDATOR_ID
public static final java.lang.String VALIDATOR_ID
- See Also:
- Constant Field Values
UrlValidator
public UrlValidator()
getSchemes
public java.lang.String getSchemes()
- Description copied from class: AbstractUrlValidator
- CSV values that indicates the set of schemes to check this url.
  
  If allowAllSchemas = true, the values of this field are ignored.
 
  If no schemes are provided, default to this set ("http", "https", "ftp").
 
- 
- Specified by:
- getSchemesin class- AbstractUrlValidator
 
- 
 
setSchemes
public void setSchemes(java.lang.String schemes)
- 
- Specified by:
- setSchemesin class- AbstractUrlValidator
 
- 
 
isAllow2Slashes
public boolean isAllow2Slashes()
- Description copied from class: AbstractUrlValidator
- Allow two slashes in the path component of the URL.
 
- 
- Specified by:
- isAllow2Slashesin class- AbstractUrlValidator
 
- 
 
setAllow2Slashes
public void setAllow2Slashes(boolean allow2Slashes)
- 
- Specified by:
- setAllow2Slashesin class- AbstractUrlValidator
 
- 
 
isAllowAllSchemas
public boolean isAllowAllSchemas()
- Description copied from class: AbstractUrlValidator
- Allows all validly formatted schemes to pass validation instead of 
  supplying a set of valid schemes.
 
- 
- Specified by:
- isAllowAllSchemasin class- AbstractUrlValidator
 
- 
 
setAllowAllSchemas
public void setAllowAllSchemas(boolean allowAllSchemas)
- 
- Specified by:
- setAllowAllSchemasin class- AbstractUrlValidator
 
- 
 
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.