com.atlassian.bamboo.ww2.validators
Class XmppResourceValidator

java.lang.Object
  extended by com.opensymphony.xwork.validator.validators.ValidatorSupport
      extended by com.opensymphony.xwork.validator.validators.FieldValidatorSupport
          extended by com.opensymphony.xwork.validator.validators.RegexFieldValidator
              extended by com.atlassian.bamboo.ww2.validators.XmppResourceValidator
All Implemented Interfaces:
com.opensymphony.xwork.validator.FieldValidator, com.opensymphony.xwork.validator.ShortCircuitableValidator, com.opensymphony.xwork.validator.Validator

public class XmppResourceValidator
extends com.opensymphony.xwork.validator.validators.RegexFieldValidator

XmppResourceValidator checks that a given String field, if not empty, is a valid XMPP resource id. The regular expression used to validate that the string is:

 ^[a-z0-9!$&'()*+,:;=-._~]+$
 

Author:
Krystian Brazulewicz
See Also:
RFC 5122 section 3.3

Field Summary
static java.lang.String XMPP_RESOURCE_PATTERN
           
 
Fields inherited from class com.opensymphony.xwork.validator.validators.ValidatorSupport
defaultMessage, messageKey
 
Constructor Summary
XmppResourceValidator()
           
 
Method Summary
 
Methods inherited from class com.opensymphony.xwork.validator.validators.RegexFieldValidator
getExpression, isCaseSensitive, setCaseSensitive, setExpression, validate
 
Methods inherited from class com.opensymphony.xwork.validator.validators.FieldValidatorSupport
getFieldName, getValidatorType, setFieldName, setValidatorType
 
Methods inherited from class com.opensymphony.xwork.validator.validators.ValidatorSupport
addActionError, addFieldError, conditionalParse, getDefaultMessage, getFieldValue, getMessage, getMessageKey, getMessageParameters, getParse, getValidatorContext, isShortCircuit, setDefaultMessage, setMessageKey, setMessageParameters, setParse, setShortCircuit, setValidatorContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.opensymphony.xwork.validator.Validator
getDefaultMessage, getMessage, getMessageKey, getMessageParameters, getValidatorContext, setDefaultMessage, setMessageKey, setMessageParameters, setValidatorContext
 

Field Detail

XMPP_RESOURCE_PATTERN

public static final java.lang.String XMPP_RESOURCE_PATTERN
See Also:
Constant Field Values
Constructor Detail

XmppResourceValidator

public XmppResourceValidator()


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.