edu.wisc.my.portlets.bookmarks.domain.validation
Class BookmarkValidator
java.lang.Object
edu.wisc.my.portlets.bookmarks.domain.validation.EntryValidator
edu.wisc.my.portlets.bookmarks.domain.validation.BookmarkValidator
- All Implemented Interfaces:
- org.springframework.validation.Validator
public class BookmarkValidator
- extends EntryValidator
Validates a Bookmark, requires a valid URL, determined by calling new URL on the URL String. Also
appends a default protocol of http:// if it isn't already there. The default protocol the validator
uses may be set via the defaultProtocol property.
- Version:
- $Revision: 12165 $
- Author:
- Eric Dalquist eric.dalquist@doit.wisc.edu
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BookmarkValidator
public BookmarkValidator()
getDefaultProtocol
public java.lang.String getDefaultProtocol()
- Returns:
- Returns the defaultProtocol.
setDefaultProtocol
public void setDefaultProtocol(java.lang.String defaultProtocol)
- Parameters:
defaultProtocol - The defaultProtocol to set.
supports
public boolean supports(java.lang.Class clazz)
- Specified by:
supports in interface org.springframework.validation.Validator- Overrides:
supports in class EntryValidator
- See Also:
EntryValidator.supports(java.lang.Class)
validate
public void validate(java.lang.Object obj,
org.springframework.validation.Errors errors)
- Specified by:
validate in interface org.springframework.validation.Validator- Overrides:
validate in class EntryValidator
- See Also:
EntryValidator.validate(java.lang.Object, org.springframework.validation.Errors)
Copyright © 1998-2007 Java Architectures Special Interest Group. All Rights Reserved.