Package org.cruxframework.crux.core.server.rest.spi

Examples of org.cruxframework.crux.core.server.rest.spi.AmbiguousServiceException


  {
    for (ResourceMethod res : methods)
    {
      if (res.getHttpMethod() != null && res.getHttpMethod().equals(invoker.getHttpMethod()))
      {
        throw new AmbiguousServiceException("Ambiguous service methods. Methods ["+invoker.getMethod().getName()+"] " +
            "and ["+res.getMethod().getName()+"], declared on class ["+invoker.getResourceClass().getCanonicalName()+"] tries to serve" +
        " the same rest path and HTTP method.");
      }
    }
    methods.add(invoker);
View Full Code Here

TOP

Related Classes of org.cruxframework.crux.core.server.rest.spi.AmbiguousServiceException

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.