/** * Helper to get the List of supported methods for web script. * For responding to OPTIONS requests. * * @return List of supported methods for web script */ public List<HttpMethod> getSupportedMethods() { final HttpMethod[] methods = HttpMethod.values(); List<HttpMethod> supportedMethods = new ArrayList<HttpMethod>(methods.length); Match match = null; for (int i = 0; i < methods.length; i++) { match = container.getRegistry().findWebScript(methods[i].name(), getScriptUrl()); if (match.getKind().equals(Match.Kind.FULL)) { supportedMethods.add(methods[i]); } } return supportedMethods; } }
/** * Helper to get the List of supported methods for web script. * For responding to OPTIONS requests. * * @return List of supported methods for web script */ public List<HttpMethod> getSupportedMethods() { final HttpMethod[] methods = HttpMethod.values(); List<HttpMethod> supportedMethods = new ArrayList<HttpMethod>(methods.length); Match match = null; for (int i = 0; i < methods.length; i++) { match = container.getRegistry().findWebScript(methods[i].name(), getScriptUrl()); if (match.getKind().equals(Match.Kind.FULL)) { supportedMethods.add(methods[i]); } } return supportedMethods; } }
/** * Helper to get the List of supported methods for web script. * For responding to OPTIONS requests. * * @return List of supported methods for web script */ public List<HttpMethod> getSupportedMethods() { final HttpMethod[] methods = HttpMethod.values(); List<HttpMethod> supportedMethods = new ArrayList<HttpMethod>(methods.length); Match match = null; for (int i = 0; i < methods.length; i++) { match = container.getRegistry().findWebScript(methods[i].name(), getScriptUrl()); if (match.getKind().equals(Match.Kind.FULL)) { supportedMethods.add(methods[i]); } } return supportedMethods; } }
if (match != null && match.getKind() != Match.Kind.URI)
if (match != null && match.getKind() != Match.Kind.URI)
if (match != null && match.getKind() != Match.Kind.URI)
if (match == null || match.getKind() == Match.Kind.URI)
if (match == null || match.getKind() == Match.Kind.URI)
if (match == null || match.getKind() == Match.Kind.URI)
if (match != null && match.getKind() == Match.Kind.URI)
if (match != null && match.getKind() == Match.Kind.URI)
if (match != null) if (match.getKind() == Match.Kind.URI)
if (match != null) if (match.getKind() == Match.Kind.URI)