Package com.tinkerpop.rexster.extension

Examples of com.tinkerpop.rexster.extension.ExtensionRequestParameter


                || descriptor.apiBehavior() == ExtensionApiBehavior.EXTENSION_PARAMETER_ONLY)) {
            final Annotation[][] parametersAnnotationSets = method.getParameterAnnotations();
            for (Annotation[] parameterAnnotationSet : parametersAnnotationSets) {
                for (Annotation annotation : parameterAnnotationSet) {
                    if (annotation instanceof ExtensionRequestParameter) {
                        final ExtensionRequestParameter extensionRequestParameter = (ExtensionRequestParameter) annotation;
                        queryStringParameters.put(new HashMap<String, String>() {{
                            put(QUERY_STRING_PARAMETER_NAME, extensionRequestParameter.name());
                            put(QUERY_STRING_PARAMETER_DESCRIPTION, extensionRequestParameter.description());
                        }});
                    }
                }
            }
        }
View Full Code Here


                    } else {
                        // don't know what it is so just push a null
                        methodToCallParams.add(null);
                    }
                } else if (annotation[0] instanceof ExtensionRequestParameter) {
                    final ExtensionRequestParameter extensionRequestParameter = (ExtensionRequestParameter) annotation[0];
                    if (parameterTypes[ix].equals(String.class)) {
                        composeStringExtensionArgs(methodToCallParams, extensionRequestParameter);
                    } else if (parameterTypes[ix].equals(Integer.class)) {
                        composeIntegerExtensionArgs(methodToCallParams, extensionRequestParameter);
                    } else if (parameterTypes[ix].equals(Float.class)) {
View Full Code Here

TOP

Related Classes of com.tinkerpop.rexster.extension.ExtensionRequestParameter

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.