/** * Constructor. * * @param value The raw header value. */ protected HeaderEntityValidator(String value) { this.value = new EntityValidator(value); }
/** * Constructor. * * @param value The raw header value. */ protected HeaderEntityValidator(String value) { this.value = new EntityValidator(value); }
/** * Constructor. * * @param value The raw header value. */ protected HeaderEntityValidator(String value) { this.value = new EntityValidator(value); }
/** * Constructor. * * @param value The raw header value. */ protected HeaderEntityValidatorArray(String value) { String[] s = StringUtils.split(value); this.value = new EntityValidator[s.length]; for (int i = 0; i < s.length; i++) { this.value[i] = new EntityValidator(s[i]); } }
/** * Constructor. * * @param value The raw header value. */ protected HeaderEntityValidatorArray(String value) { String[] s = StringUtils.split(value); this.value = new EntityValidator[s.length]; for (int i = 0; i < s.length; i++) { this.value[i] = new EntityValidator(s[i]); } }
/** * Constructor. * * @param value The raw header value. */ protected HeaderEntityValidatorArray(String value) { String[] s = StringUtils.split(value); this.value = new EntityValidator[s.length]; for (int i = 0; i < s.length; i++) { this.value[i] = new EntityValidator(s[i]); } }
/** * Returns this header value as an {@link EntityValidator} object. * * @return * This header value as a {@link EntityValidator} object, or <jk>null</jk> if the value is not an entity * validator. */ public EntityValidator asValidator() { char c0 = charAt(value, 0), c1 = charAt(value, 1); if (c0 == '*' || c0 == '"' || (c0 == 'W' && c1 == '/')) return new EntityValidator(value); return null; } }
/** * Returns this header value as an {@link EntityValidator} object. * * @return * This header value as a {@link EntityValidator} object, or <jk>null</jk> if the value is not an entity * validator. */ public EntityValidator asValidator() { char c0 = charAt(value, 0), c1 = charAt(value, 1); if (c0 == '*' || c0 == '"' || (c0 == 'W' && c1 == '/')) return new EntityValidator(value); return null; } }
/** * Returns this header value as an {@link EntityValidator} object. * * @return * This header value as a {@link EntityValidator} object, or <jk>null</jk> if the value is not an entity * validator. */ public EntityValidator asValidator() { char c0 = charAt(value, 0), c1 = charAt(value, 1); if (c0 == '*' || c0 == '"' || (c0 == 'W' && c1 == '/')) return new EntityValidator(value); return null; } }