|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.continuum.utils.ContinuumUrlValidator
@Service(value="continuumUrlValidator#continuumUrl") public class ContinuumUrlValidator
Field Summary | |
---|---|
protected String[] |
defaultSchemes
If no schemes are provided, default to this set. |
Constructor Summary | |
---|---|
ContinuumUrlValidator()
Create a UrlValidator with default properties. |
|
ContinuumUrlValidator(String[] schemes)
Behavior of validation is modified by passing in several strings options: |
Method Summary | |
---|---|
void |
configure(org.codehaus.plexus.configuration.PlexusConfiguration plexusConfiguration)
|
URLUserInfo |
extractURLUserInfo(String url)
|
boolean |
isValid(String value)
Checks if a field has a valid url address. |
boolean |
validate(String value)
Checks if a field has a valid url address. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String[] defaultSchemes
Constructor Detail |
---|
public ContinuumUrlValidator()
public ContinuumUrlValidator(String[] schemes)
schemes
- Pass in one or more url schemes to consider valid, passing in
a null will default to "http,https,ftp" being valid.
If a non-null schemes is specified then all valid schemes must
be specified.Method Detail |
---|
public boolean validate(String value)
Checks if a field has a valid url address.
value
- The value validation is being performed on. A null
value is considered invalid.
public boolean isValid(String value)
Checks if a field has a valid url address.
value
- The value validation is being performed on. A null
value is considered valid.
public URLUserInfo extractURLUserInfo(String url) throws URISyntaxException
url
-
URISyntaxException
public void configure(org.codehaus.plexus.configuration.PlexusConfiguration plexusConfiguration) throws org.codehaus.plexus.configuration.PlexusConfigurationException
configure
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Configurable
org.codehaus.plexus.configuration.PlexusConfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |