Package com.google.sitebricks.http

Examples of com.google.sitebricks.http.As


          }
          else if (annotation.annotationType().isAnnotationPresent(BindingAnnotation.class)) {
            bindingAnnotation = annotation;
          }
          else if (As.class.isInstance(annotation)) {
            As as = (As) annotation;
            if (method.isAnnotationPresent(Get.class)
              || method.isAnnotationPresent(Head.class)
              || method.isAnnotationPresent(Trace.class)) {
              if (! as.value().equals(Form.class)) {
                throw new IllegalArgumentException("Cannot accept a @As(...) request body from" +
                  " method marked @Get, @Head or @Trace: "
                  + method.getDeclaringClass().getName() + "#" + method.getName() + "()");
                }
            }

            preInjectableFound = true;
            args.add(new AsParameter(as.value(), TypeLiteral.get(method.getGenericParameterTypes()[i])));
            break;
          }
        }

        if (!preInjectableFound) {
View Full Code Here

TOP

Related Classes of com.google.sitebricks.http.As

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.