this.functionPrefix = serviceRegistry.getFunctionPrefix(); this.functionName = this.functionPrefix + "." + method.getName(); httpMethods = resourceInvoker.getHttpMethods();
if (invoker.getHttpMethods().contains(httpMethod.toUpperCase())) for (Match match : matches) allowed.addAll(((ResourceMethodInvoker) match.expression.getInvoker()).getHttpMethods()); for (Match match : matches) if (((ResourceMethodInvoker) match.expression.getInvoker()).getHttpMethods().contains("PATCH"))
this.functionPrefix = serviceRegistry.getFunctionPrefix(); this.functionName = this.functionPrefix + "." + method.getName(); httpMethods = invoker.getHttpMethods();
for (String httpMethod : rm.getHttpMethods())
void handle(ModelNode response, String contextRootPath, Collection<String> servletMappings, String mapping, List<ResourceInvoker> resources) { for (ResourceInvoker resourceInvoker : resources) { if (ResourceMethodInvoker.class.isAssignableFrom(resourceInvoker.getClass())) { ResourceMethodInvoker resource = (ResourceMethodInvoker) resourceInvoker; final ModelNode node = new ModelNode(); node.get(CLASSNAME.getName()).set(resource.getResourceClass().getCanonicalName()); node.get(PATH.getName()).set(mapping); for (String servletMapping : servletMappings) { String method = formatMethod(resource, servletMapping, mapping, contextRootPath); for (final String httpMethod : resource.getHttpMethods()) { node.get(METHODS.getName()).add(String.format(method, httpMethod)); } } response.add(node); } } }
void handle(ModelNode response, String contextRootPath, Collection<String> servletMappings, String mapping, List<ResourceInvoker> resources) { for (ResourceInvoker resourceInvoker : resources) { if (ResourceMethodInvoker.class.isAssignableFrom(resourceInvoker.getClass())) { ResourceMethodInvoker resource = (ResourceMethodInvoker) resourceInvoker; final ModelNode node = new ModelNode(); node.get(CLASSNAME.getName()).set(resource.getResourceClass().getCanonicalName()); node.get(PATH.getName()).set(mapping); for (String servletMapping : servletMappings) { String method = formatMethod(resource, servletMapping, mapping, contextRootPath); for (final String httpMethod : resource.getHttpMethods()) { node.get(METHODS.getName()).add(String.format(method, httpMethod)); } } response.add(node); } } }
this.functionPrefix = serviceRegistry.getFunctionPrefix(); this.functionName = this.functionPrefix + "." + method.getName(); httpMethods = invoker.getHttpMethods();
if (invoker.getHttpMethods().contains(httpMethod.toUpperCase())) for (Match match : matches) allowed.addAll(((ResourceMethodInvoker) match.expression.getInvoker()).getHttpMethods()); for (Match match : matches) if (((ResourceMethodInvoker) match.expression.getInvoker()).getHttpMethods().contains("PATCH"))
if (invoker.getHttpMethods().contains(httpMethod.toUpperCase())) for (Match match : matches) allowed.addAll(((ResourceMethodInvoker) match.expression.getInvoker()).getHttpMethods()); for (Match match : matches) if (((ResourceMethodInvoker) match.expression.getInvoker()).getHttpMethods().contains("PATCH"))
private JaxrsResourceMethodDescription resMethodDescription(ResourceMethodInvoker methodInvoker, String contextPath, String mapping, Collection<String> servletMappings) { JaxrsResourceMethodDescription jaxrsRes = new JaxrsResourceMethodDescription(); jaxrsRes.consumeTypes = methodInvoker.getConsumes(); jaxrsRes.contextPath = contextPath; jaxrsRes.httpMethods = methodInvoker.getHttpMethods(); jaxrsRes.method = methodInvoker.getMethod(); jaxrsRes.produceTypes = methodInvoker.getProduces(); jaxrsRes.resourceClass = methodInvoker.getResourceClass(); jaxrsRes.resourcePath = mapping; jaxrsRes.servletMappings = servletMappings; addMethodParameters(jaxrsRes, methodInvoker.getMethod()); return jaxrsRes; }
private JaxrsResourceMethodDescription resMethodDescription(ResourceMethodInvoker methodInvoker, String contextPath, String mapping, Collection<String> servletMappings) { JaxrsResourceMethodDescription jaxrsRes = new JaxrsResourceMethodDescription(); jaxrsRes.consumeTypes = methodInvoker.getConsumes(); jaxrsRes.contextPath = contextPath; jaxrsRes.httpMethods = methodInvoker.getHttpMethods(); jaxrsRes.method = methodInvoker.getMethod(); jaxrsRes.produceTypes = methodInvoker.getProduces(); jaxrsRes.resourceClass = methodInvoker.getResourceClass(); jaxrsRes.resourcePath = mapping; jaxrsRes.servletMappings = servletMappings; addMethodParameters(jaxrsRes, methodInvoker.getMethod()); return jaxrsRes; }