开发者

HTTP request using asynchronous pluggable protocol in Java

开发者 https://www.devze.com 2022-12-28 01:20 出处:网络
I need to make an HTTP request to a resource that looks like \"xy:index.html\" in Java. The HTTP implementation does not have to be sophisticated. I just need to be able to do this to avoid same-ori

I need to make an HTTP request to a resource that looks like "xy:index.html" in Java.

The HTTP implementation does not have to be sophisticated. I just need to be able to do this to avoid same-origin violations when running in development mode for a GWT app by forwarding HTTP requests on the server-side to the "xy" protocol.

Any clues about how I may be able to do this would be extremely appreciated. I feel like I'm a bi开发者_开发知识库t out of my league on this one ;)


I'm not sure if I understand the question properly but perhaps you can register a URL handler. This link has some info about how to do that. Perhaps you can register a custom handler for the xy: protocol and re-use the HTTP URL handlder for the real work.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号