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:
- 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 String getDefaultProtocol()
- Returns:
- Returns the defaultProtocol.
setDefaultProtocol
public void setDefaultProtocol(String defaultProtocol)
- Parameters:
defaultProtocol - The defaultProtocol to set.
supports
public boolean supports(Class clazz)
- Specified by:
supports in interface Validator- Overrides:
supports in class EntryValidator
- See Also:
EntryValidator.supports(java.lang.Class)
validate
public void validate(Object obj,
Errors errors)
- Specified by:
validate in interface Validator- Overrides:
validate in class EntryValidator
- See Also:
EntryValidator.validate(java.lang.Object, org.springframework.validation.Errors)
Copyright © 1998-2008 Java Architectures Special Interest Group. All Rights Reserved.