@Override public String getMethodResponseDoc(OperationResourceInfo ori) { Method method = ori.getAnnotatedMethod() == null ? ori.getMethodToInvoke() : ori.getAnnotatedMethod(); String methodResponseKey = method.getDeclaringClass().getName() + "." + method.getName() + "." + "returnCommentTag"; return dumpedDocFile.getProperty(methodResponseKey); }
@Override public String getMethodParameterDoc(OperationResourceInfo ori, int paramIndex) { Method method = ori.getAnnotatedMethod() == null ? ori.getMethodToInvoke() : ori.getAnnotatedMethod(); String methodParamKey = method.getDeclaringClass().getName() + "." + method.getName() + ".paramCommentTag." + paramIndex; return dumpedDocFile.getProperty(methodParamKey); }
@Override public String getMethodDoc(OperationResourceInfo ori) { Method method = ori.getAnnotatedMethod() == null ? ori.getMethodToInvoke() : ori.getAnnotatedMethod(); String methodKey = method.getDeclaringClass().getName() + "." + method.getName(); return dumpedDocFile.getProperty(methodKey); }
@Override public String getMethodResponseDoc(OperationResourceInfo ori) { Method method = ori.getAnnotatedMethod() == null ? ori.getMethodToInvoke() : ori.getAnnotatedMethod(); String methodResponseKey = method.getDeclaringClass().getName() + "." + method.getName() + "." + "returnCommentTag"; return dumpedDocFile.getProperty(methodResponseKey); }
@Override public String getMethodParameterDoc(OperationResourceInfo ori, int paramIndex) { Method method = ori.getAnnotatedMethod() == null ? ori.getMethodToInvoke() : ori.getAnnotatedMethod(); String methodParamKey = method.getDeclaringClass().getName() + "." + method.getName() + ".paramCommentTag." + paramIndex; return dumpedDocFile.getProperty(methodParamKey); }
@Override public String getMethodDoc(OperationResourceInfo ori) { Method method = ori.getAnnotatedMethod() == null ? ori.getMethodToInvoke() : ori.getAnnotatedMethod(); String methodKey = method.getDeclaringClass().getName() + "." + method.getName(); return dumpedDocFile.getProperty(methodKey); }
protected static Multipart getMultipart(OperationResourceInfo ori, int index) { Method aMethod = ori.getAnnotatedMethod(); return aMethod != null ? AnnotationUtils.getAnnotation( aMethod.getParameterAnnotations()[index], Multipart.class) : null; }
private Method getMethod(OperationResourceInfo ori) { Method annMethod = ori.getAnnotatedMethod(); return annMethod != null ? annMethod : ori.getMethodToInvoke(); }
protected static Multipart getMultipart(OperationResourceInfo ori, int index) { Method aMethod = ori.getAnnotatedMethod(); return aMethod != null ? AnnotationUtils.getAnnotation( aMethod.getParameterAnnotations()[index], Multipart.class) : null; }
private Method getMethod(OperationResourceInfo ori) { Method annMethod = ori.getAnnotatedMethod(); return annMethod != null ? annMethod : ori.getMethodToInvoke(); }
private static Multipart getMultipart(OperationResourceInfo ori, int index) { Method aMethod = ori.getAnnotatedMethod(); return aMethod != null ? AnnotationUtils.getAnnotation( aMethod.getParameterAnnotations()[index], Multipart.class) : null; }
private Method getMethod(OperationResourceInfo ori) { Method annMethod = ori.getAnnotatedMethod(); return annMethod != null ? annMethod : ori.getMethodToInvoke(); }
public static java.lang.reflect.Method getMethod(final OperationResourceInfo ori) { final java.lang.reflect.Method annMethod = ori.getAnnotatedMethod(); return annMethod != null ? annMethod : ori.getMethodToInvoke(); }
public static Method getMethod(final OperationResourceInfo ori) { final Method annMethod = ori.getAnnotatedMethod(); return annMethod != null ? annMethod : ori.getMethodToInvoke(); }
public RedbackAuthorization getRedbackAuthorization( Message message ) { OperationResourceInfo operationResourceInfo = message.getExchange().get( OperationResourceInfo.class ); if ( operationResourceInfo == null ) { return null; } Method method = operationResourceInfo.getAnnotatedMethod(); log.debug( " method name {}", method == null ? "null" : method.getName() ); RedbackAuthorization redbackAuthorization = method.getAnnotation( RedbackAuthorization.class ); return redbackAuthorization; } }
@Override public void handleMessage(Message message) { OperationResourceInfo ori = message.getExchange().get(OperationResourceInfo.class); simpleRequest(message, ori.getAnnotatedMethod()); } }
@Override public void handleMessage(Message message) { OperationResourceInfo ori = message.getExchange().get(OperationResourceInfo.class); simpleRequest(message, ori.getAnnotatedMethod()); } }
public Response handleRequest(Message m, ClassResourceInfo resourceClass) { OperationResourceInfo opResInfo = m.getExchange().get(OperationResourceInfo.class); CrossOriginResourceSharing annotation = opResInfo == null ? null : getAnnotation(opResInfo.getAnnotatedMethod(), CrossOriginResourceSharing.class); if ("OPTIONS".equals(m.get(Message.HTTP_REQUEST_METHOD))) { return preflightRequest(m, annotation, opResInfo, resourceClass); } return simpleRequest(m, annotation); }
private Method getResourceMethod(Message m, String httpMethod) { String requestUri = HttpUtils.getPathToMatch(m, true); List<ClassResourceInfo> resources = JAXRSUtils.getRootResources(m); Map<ClassResourceInfo, MultivaluedMap<String, String>> matchedResources = JAXRSUtils.selectResourceClass(resources, requestUri, m); if (matchedResources == null) { return null; } MultivaluedMap<String, String> values = new MetadataMap<>(); OperationResourceInfo ori = findPreflightMethod(matchedResources, requestUri, httpMethod, values, m); return ori == null ? null : ori.getAnnotatedMethod(); }
private Method getResourceMethod(Message m, String httpMethod) { String requestUri = HttpUtils.getPathToMatch(m, true); List<ClassResourceInfo> resources = JAXRSUtils.getRootResources(m); Map<ClassResourceInfo, MultivaluedMap<String, String>> matchedResources = JAXRSUtils.selectResourceClass(resources, requestUri, m); if (matchedResources == null) { return null; } MultivaluedMap<String, String> values = new MetadataMap<>(); OperationResourceInfo ori = findPreflightMethod(matchedResources, requestUri, httpMethod, values, m); return ori == null ? null : ori.getAnnotatedMethod(); }