grails - setting a different timeout on groovyx.net.http.HTTPBuilder -
i followed this post on how specify timeout, doing:
def http = new httpbuilder(restendpointurl); http.getparams().setparameter("http.socket.timeout", new integer(2000)) and got error:
class: groovy.lang.missingmethodexception message:no signature of method: groovyx.net.http.httpbuilder.getparams() applicable argument types: () values: [] possible solutions: getparser(), getclass(), getheaders(), geturi() i'm setting on wrong class if directly know i'm doing wrong comments appreciated. i'm new groovy/grails.
thanks
you set timer on underlying client ...
http.getclient().getparams().setparameter("http.socket.timeout", new integer(2000))
Comments
Post a Comment