| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.commons.validator.ValidatorBase
org.apache.myfaces.commons.validator.AbstractUrlValidator
@JSFValidator(name="mcv:validateUrl",
              clazz="org.apache.myfaces.commons.validator.UrlValidator",
              tagClass="org.apache.myfaces.commons.validator.ValidateUrlTag",
              serialuidtag="6041422002721046221L")
public abstract class AbstractUrlValidatorA custom validator for url format, based upons Jakarta Commons.
| Field Summary | |
|---|---|
| static java.lang.String | URL_MESSAGE_IDThe message identifier of the FacesMessageto be created if
 the maximum length check fails. | 
| static java.lang.String | VALIDATOR_IDThe standard converter id for this converter. | 
| Fields inherited from interface javax.faces.validator.Validator | 
|---|
| NOT_IN_RANGE_MESSAGE_ID | 
| Constructor Summary | |
|---|---|
| AbstractUrlValidator() | |
| Method Summary | |
|---|---|
| abstract  java.lang.String | getSchemes()CSV values that indicates the set of schemes to check this url. | 
| abstract  boolean | isAllow2Slashes()Allow two slashes in the path component of the URL. | 
| abstract  boolean | isAllowAllSchemas()Allows all validly formatted schemes to pass validation instead of supplying a set of valid schemes. | 
| abstract  void | setAllow2Slashes(boolean allow2Slashes) | 
| abstract  void | setAllowAllSchemas(boolean allowAllSchemas) | 
| abstract  void | setSchemes(java.lang.String schemes) | 
|  void | validate(javax.faces.context.FacesContext facesContext,
         javax.faces.component.UIComponent uiComponent,
         java.lang.Object value)method that validates an url address. | 
| 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 | 
| Field Detail | 
|---|
public static final java.lang.String VALIDATOR_ID
The standard converter id for this converter.
public static final java.lang.String URL_MESSAGE_ID
The message identifier of the FacesMessage to be created if
 the maximum length check fails.
| Constructor Detail | 
|---|
public AbstractUrlValidator()
| Method Detail | 
|---|
public void validate(javax.faces.context.FacesContext facesContext,
                     javax.faces.component.UIComponent uiComponent,
                     java.lang.Object value)
              throws javax.faces.validator.ValidatorException
javax.faces.validator.ValidatorExceptionpublic abstract void setSchemes(java.lang.String schemes)
@JSFProperty public abstract java.lang.String getSchemes()
public abstract void setAllow2Slashes(boolean allow2Slashes)
@JSFProperty(defaultValue="false") public abstract boolean isAllow2Slashes()
public abstract void setAllowAllSchemas(boolean allowAllSchemas)
@JSFProperty(defaultValue="false") public abstract boolean isAllowAllSchemas()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||