allowHeaderValue += allow;
}
if (httpMethod.equals("OPTIONS"))
{
Response res = Response.ok().header(HttpHeaderNames.ALLOW, allowHeaderValue).build();
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)
{