开发者

HTTP request using asynchronous pluggable protocol in Java

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜