Package org.exquery.xquery

Examples of org.exquery.xquery.TypedArgumentValue


       
        //extract the param mappings for the Body Content Annotations
        if(!getBodyContentAnnotations().isEmpty()) {
            final Sequence requestBody = extractRequestBody(request);
            for(final HttpMethodWithBodyAnnotation bodyContentAnnotation : getBodyContentAnnotations()) {
                paramNameValues.add(new TypedArgumentValue(){
                    @Override
                    public String getArgumentName() {
                        return bodyContentAnnotation.getBodyParameterName();
                    }

                    @Override
                    public Sequence getTypedValue() {
                        return requestBody;
                    }
                });
            }
        }
       
        //extract the param mappings for Param Annotations
        for(final ParameterAnnotation parameterAnnotation : getResourceFunction().getParameterAnnotations()) {
            final TypedArgumentValue typedArgumentValue = parameterAnnotation.extractParameter(request);
            paramNameValues.add(new TypedArgumentValue(){

                @Override
                public String getArgumentName() {
                    return typedArgumentValue.getArgumentName();
                }

                @Override
                public Sequence getTypedValue() {
                    return typedArgumentValue.getTypedValue();
                }
            });
        }
       
        return paramNameValues;
View Full Code Here


         * urlencoded MUST obtain their values from the servlet request parameters if the request body has already
         * been consumed. Servlet APIs do not differentiate between parameters in the URI and body of a request so
         * URI-based query parameters may be included in the entity parameter
         */
       
        return new TypedArgumentValue() {

            @Override
            public String getArgumentName() {
                return getParameterAnnotationMapping().getFunctionArgumentName();
            }
View Full Code Here

TOP

Related Classes of org.exquery.xquery.TypedArgumentValue

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.