use of com.centurylink.mdw.common.utilities.HttpHelper in project mdw-designer by CenturyLinkCloud.
the class DesignerDataAccess method importFromVcs.
public void importFromVcs(String mdwWebUrl) throws DataAccessException {
try {
HttpHelper httpHelper = currentServer.getHttpHelper(mdwWebUrl + "/Services/GitVcs/*");
Map<String, String> hdrs = new HashMap<>();
hdrs.put("request-query-string", "gitAction=pull");
httpHelper.setHeaders(hdrs);
httpHelper.setConnectTimeout(getConnectTimeout());
httpHelper.setReadTimeout(getReadTimeout());
httpHelper.post("{}");
} catch (IOException ex) {
throw new DataAccessException(0, IOEXCEPTION, ex);
}
}
Aggregations