this.response = response;
}
public Object executeCommand(CommandCell command, Map<String, Object> ctx)
{
UrlCommandCell urlCommandCell = (UrlCommandCell) command;
urlCommandCell.failOnErrors();
// ignore local caching
if (urlCommandCell.getUrl() != null)
{
urlCommandCell.expandUrl(ctx);
HttpURLConnection conn = null;
try
{
conn = (HttpURLConnection)new URL(urlCommandCell.getUrl()).openConnection();
conn.setAllowUserInteraction(false);
conn.setRequestMethod(request.getMethod() != null ? request.getMethod() : "GET");
conn.setDoOutput(true); // true
conn.setDoInput(true); // true
conn.setReadTimeout(220000);