use of org.openstack4j.core.transport.HttpRequest in project openstack4j by ContainX.
the class SenlinWebHookServiceImpl method action.
@Override
public ActionID action(String webHookUrl) {
checkNotNull(webHookUrl);
HttpRequest newReq = new HttpRequest();
newReq.toBuilder().methodPost().endpoint(webHookUrl).path("");
newReq.builder(SenlinAction.class);
return HttpExecutor.create().execute(newReq).getEntity(SenlinActionID.class);
}
Aggregations