Package org.cruxframework.crux.core.shared.rest.annotation

Examples of org.cruxframework.crux.core.shared.rest.annotation.Path


   */
  protected RestMethodRegistrationInfo processMethod(String base, Class<?> clazz, Method method, Set<String> restMethodNames)
  {
    if (method != null)
    {
      Path path = method.getAnnotation(Path.class);
      String httpMethod = null;
            try
            {
              httpMethod = HttpMethodHelper.getHttpMethod(method.getAnnotations());
            }
View Full Code Here


  public UriBuilder path(Class<?> resource) throws IllegalArgumentException
  {
    if (resource == null)
      throw new IllegalArgumentException("path was null");
    Path ann = (Path) resource.getAnnotation(Path.class);
    if (ann != null)
    {
      String[] segments = new String[] { ann.value() };
      path = paths(true, path, segments);
    }
    else
    {
      throw new IllegalArgumentException("Class must be annotated with @Path to invoke path(Class)");
View Full Code Here

  public UriBuilder path(Method method) throws IllegalArgumentException
  {
    if (method == null)
      throw new IllegalArgumentException("method was null");
    Path ann = method.getAnnotation(Path.class);
    if (ann != null)
    {
      path = paths(true, path, ann.value());
    }
    else
    {
      throw new IllegalArgumentException("method is not annotated with @Path");
    }
View Full Code Here

TOP

Related Classes of org.cruxframework.crux.core.shared.rest.annotation.Path

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.