Package org.exquery

Examples of org.exquery.ExQueryException


                //add service location and compiled query to the cache
                RestXqServiceCompiledXQueryCacheImpl.getInstance().returnCompiledQuery(xqueryLocation, compiled);
            }
           
        } catch(final URISyntaxException use) {
            throw new ExQueryException(use.getMessage(), use);
        } catch(final AnnotationException ae) {
            throw new ExQueryException(ae.getMessage(), ae);
        }
       
        return services;
    }
View Full Code Here


    public static ResourceFunction create(final URI xQueryLocation, final Set<Annotation> annotations) throws ExQueryException {
        final ResourceFunctionImpl resourceFunction = new ResourceFunctionImpl();
        resourceFunction.setXQueryLocation(xQueryLocation);
       
        if(annotations == null || annotations.isEmpty()) {
            throw new ExQueryException("A Resource Function must have at least one RESTXQ Annotation");
        }
       
        for(final Annotation annotation : annotations) {
            if(!isResourceFunctionAnnotation(annotation.getName())) {
                throw new ExQueryException("Annotation is not a valid EXQuery RESTXQ or Serialization Annotation");
            }
           
            if(annotation instanceof PathAnnotation) {
                resourceFunction.setPathAnnotation((PathAnnotation)annotation);
            } else if(annotation instanceof HttpMethodAnnotation) {
View Full Code Here

TOP

Related Classes of org.exquery.ExQueryException

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.