Search in sources :

Example 1 with HttpRequest

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);
}
Also used : HttpRequest(org.openstack4j.core.transport.HttpRequest)

Aggregations

HttpRequest (org.openstack4j.core.transport.HttpRequest)1