Package org.wicketstuff.rest.annotations

Examples of org.wicketstuff.rest.annotations.MethodMapping


    boolean isUsingAuthAnnot = false;

    for (int i = 0; i < methods.length; i++)
    {
      Method method = methods[i];
      MethodMapping methodMapped = method.getAnnotation(MethodMapping.class);
      AuthorizeInvocation authorizeInvocation = method.getAnnotation(AuthorizeInvocation.class);

      isUsingAuthAnnot = isUsingAuthAnnot || authorizeInvocation != null;

      if (methodMapped != null)
      {
        HttpMethod httpMethod = methodMapped.httpMethod();
        MethodMappingInfo methodMappingInfo = new MethodMappingInfo(methodMapped, method);

        if (!webSerialDeserial.isMimeTypeSupported(methodMappingInfo.getInputFormat()) ||
          !webSerialDeserial.isMimeTypeSupported(methodMappingInfo.getOutputFormat()))
          throw new WicketRuntimeException(
View Full Code Here

TOP

Related Classes of org.wicketstuff.rest.annotations.MethodMapping

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.