Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

[groovy-user] URL Connection Timeout

Dean Del Ponte

2010-03-11

Replies: Find Java Web Hosting

Author LoginPost Reply
How can I open a url connection and supply a timeout?

def url = new URL("http://www.aboutgroovy.com") 
def connection = url.openConnection()

Is it possible to do this in Groovy?

- Dean Del Ponte
©2008 gg3721.com - Jax Systems, LLC, U.S.A.