Examples of MethodNotAllowedException


Examples of org.apache.slide.webdav.method.MethodNotAllowedException

        if( !rRk.isSupportedMethod(req.getMethod()) ) {
            // check precondition C_MUST_BE_CHECKED_IN
            if( rRk instanceof CheckedOut ) {
                throw new PreconditionViolationException(new ViolatedPrecondition(C_MUST_BE_CHECKED_IN, WebdavStatus.SC_CONFLICT), rNrds.getUri());
            }
            throw new MethodNotAllowedException( rRk );
        }
       
        if( rRk instanceof Version ) {
           
            UriHandler rUh = UriHandler.getUriHandler( rUri );
View Full Code Here

Examples of org.apache.slide.webdav.method.MethodNotAllowedException

                                                                              WebdavStatus.SC_CONFLICT),
                                                     rNrds.getUri());
        }
       
        if( !rRk.isSupportedMethod(req.getMethod()) ) {
            throw new MethodNotAllowedException( rRk );
        }
       
        // get checked-out VR
        NodeProperty coutProp = rNrd.getProperty( P_CHECKED_OUT );
        String coutHref = getElementValue((String)coutProp.getValue());
View Full Code Here

Examples of org.apache.slide.webdav.method.MethodNotAllowedException

            // check precondition C_MUST_BE_CHECKED_OUT
            if( (rRk instanceof CheckedInVersionControlled) ) {
                throw new PreconditionViolationException(
                    new ViolatedPrecondition(C_MUST_BE_CHECKED_OUT, WebdavStatus.SC_CONFLICT), rUri);
            }
            throw new MethodNotAllowedException( rRk );
        }
       
        if( rRk instanceof CheckedOutVersionControlled || rRk instanceof Working ) {
           
            boolean isWorkingResource = (rRk instanceof Working);
View Full Code Here

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

    {
      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

Examples of org.jboss.resteasy.spi.MethodNotAllowedException

               throw new DefaultOptionsMethodException("No resource method found for options, return OK with Allow header", res);
            }
            else
            {
               Response res = Response.status(HttpResponseCodes.SC_METHOD_NOT_ALLOWED).header(HttpHeaderNames.ALLOW, allowHeaderValue).build();
               throw new MethodNotAllowedException("No resource method found for " + httpMethod + ", return 405 with Allow header", res);
            }
         }
         else if (!consumeMatch)
         {
            throw new UnsupportedMediaTypeException("Cannot consume content type");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.