> + HttpURLConnection connection = (HttpURLConnection) > url.openConnection(); > + connection.setDoOutput(true); > + connection.setDoInput(true); > + connection.setInstanceFollowRedirects(false); > + connection.setRequestMethod("POST"); > + connection.setUseCaches(false); > + connection.connect(); > + int code = connection.getResponseCode(); > + connection.disconnect(); > + > + return code == 202; > + } > + > + public static boolean execute(WebhookResponse webhook) throws IOException > { > + return execute(webhook.getAnonymousExecutionURI()); > + }
Could the logic in this class be included as part of the `WebhookApi`? Something like: ```java HttpResponse anonymousExecute(@EndpointParam(parser = ExtractURIFromWebhook.class) Webhook webhook); ``` --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-openstack/pull/48/files#r7513307