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

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


      logger.debug("PathInfo: " + request.getUri().getPath());
    }
    ResourceMethod invoker = ResourceRegistry.getInstance().getResourceMethod(request);
    if (ensureExists && invoker == null)
    {
      throw new NotFoundException("Unable to find resource associated with path: " + request.getUri().getPath());
    }
    return invoker;
  }
View Full Code Here


    if (invoker == null)
    {
      if (methods == null || methods.size() == 0)
      {
        throw new NotFoundException("Could not find resource for full path: " + request.getUri().getRequestUri());
      }
      throw new MethodNotAllowedException("No resource method found for " + httpMethod);
    }

    return invoker;
View Full Code Here

    {
      // we consumed entire path string
      ResourceMethod invoker = match(request.getHttpMethod(), request);
      if (invoker == null)
      {
        throw new NotFoundException("Could not find resource for relative : " + path + " of full path: " + request.getUri().getRequestUri());
      }
      uriInfo.pushMatchedURI(path, Encode.decode(path));
      populatePathParams(request, matcher, path);
      return invoker;
    }
    throw new NotFoundException("Could not find resource for relative : " + path + " of full path: " + request.getUri().getRequestUri());
  }
View Full Code Here

          lastFailure = e;
      }
    }
    if (lastFailure != null)
      throw lastFailure;
    throw new NotFoundException("Could not find resource for relative : " + path + " of full path: " + request.getUri().getRequestUri());
  }
View Full Code Here

      UriInfo uriInfo = request.getUri();
      if (start + segment.length() == path.length()) // we've reached end of string
      {
        ResourceMethod invoker = match(request.getHttpMethod(), request);
         if (invoker == null)
            throw new NotFoundException("Could not find resource for relative : " + path + " of full path: " + request.getUri().getRequestUri());

         uriInfo.pushMatchedURI(path, Encode.decode(path));
         return invoker;
      }
      else
View Full Code Here

TOP

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

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.