Package org.apache.jsieve.exception

Examples of org.apache.jsieve.exception.FeatureException


     * Unsupported, see <a href='http://tools.ietf.org/html/rfc4790#section-9.1.1'>RFC4790</a>.
     * @see org.apache.jsieve.comparators.Contains#contains(String, String)
     */
    public boolean contains(String container, String content) throws FeatureException {
        // TODO: Consider using finer grained exception
        throw new FeatureException("Substring match unsupported by ascii-numeric");
    }
View Full Code Here


     * @see org.apache.jsieve.comparators.Matches#matches(String, String)
     */
    public boolean matches(String string, String glob)
            throws FeatureException {
        // TODO: Consider using finer grained exception
        throw new FeatureException("Substring match unsupported by ascii-numeric");
    }
View Full Code Here

        // Validate as a Test
        try {
            validateTest(name, context);
        } catch (LookupException e) {
            throw new FeatureException("Feature \"" + name
                    + "\" is not supported.");
        }
    }
View Full Code Here

        // Validate as a Test
        try {
            validateTest(name);
        } catch (LookupException e) {
            throw new FeatureException("Feature \"" + name
                    + "\" is not supported.");
        }
    }
View Full Code Here

    protected void validateFeature(String name, MailAdapter mail,
            SieveContext context) throws FeatureException {
        if (name.startsWith(COMPARATOR_PREFIX)) {
            final String comparatorName = name.substring(COMPARATOR_PREFIX_LENGTH);
            if (!context.getComparatorManager().isSupported(comparatorName)) {
                throw new FeatureException("Comparator \"" + comparatorName
                        + "\" is not supported.");
            }
        } else {
            // Validate as a Command
            try {
                validateCommand(name, context);
                return;
            } catch (LookupException e) {
                // Not a command
            }
   
            // Validate as a Test
            try {
                validateTest(name, context);
            } catch (LookupException e) {
                throw new FeatureException("Feature \"" + name
                        + "\" is not supported.");
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.jsieve.exception.FeatureException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.