AnsweredAssumed Answered

Calling Java Class in GEL

Question asked by helloworld on Apr 17, 2015
Latest reply on Apr 20, 2015 by helloworld

Hi,

 

I want to use the HttpURLConnection for invoking a REST URL in GEL. How do I build the below statements in GEL?

 

          URL url = new URL ("http://www.test.com");
          HttpURLConnection connection = (HttpURLConnection) url.openConnection();

 

I can use the core:new tag for the first statement. Need help with the second statement.

Thanks in advance,

 

Leo.

Outcomes