I'm working on an algorithm that runs in a tight loop. I don't want to call new() on anything every time I want to change my url I am going to use for a rest call via urlfetch. however, the java.net httpclient, url, urlstreamhandler, and the urlfetch HTTPRequest all require this. In c#/.net there is a factory for creating new httpwebrequest objects each time you want to change the url.
All I really need is a setUrl(String url) method I can call on an instantiated urlfetch HTTPRequest object. Why does this not exist? I have found this to be quite a pain point. I could easily write my own implementation with raw tcp sockets if app engine supported that. Does anyone know of a workaround here? Any plans to add an instance method to HTTPRequest for setUrl(String url)? Thanks, David Nelson http://developeradvocate.appspot.com http://twitter.com/devadvocate
-- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
