On Oct 14, 2007, at 10:28 PM, Lorenzo Moretti wrote:
Hi,
I am currently working on a java project that uses hessian and
burlap (3.0.8, ancient, I know ;)) over http. It is sometimes
useful to customize the request headers (ex: adding a Connection:
Close) or reading the response header (ex: catching a Set-Cookie
sent back by the server). One way to do this would be to pass to
the HessianProxyFactory.create() method a URL instance (containing
a custom UrlStreamHandler) instead of a String that Hessian then
uses to instantiate a URL.
1) Are there alternatives in the latest version of hessian to read
and write the connection headers (if the connection is an
HttpUrlConnection) ?
2) Is there a strong argument against having an hessian client
customize the UrlStreamHandler (maybe the latest version of hessian
already uses a custom handler, and providing a new one would break
the invoke method) ?
3) If the answer to 2) is no, then could the next versions of the
HessianProxyFactory and BurlapProxyFactory containing such
overloads (I can send a patch if needed) ? Obviously there is no
need to bother with the current and older versions of hessian and
burlap, I can upgrade to the appropriate burlap and hessian versions.
I've added this as a bug report as http://bugs.caucho.com/view.php?
id=2070
Hessian is independent of the HTTP headers, so it's perfectly
possible to change them without affecting the protocol.
Actually, you could even modify Hessian to send simple arguments in
the URL instead of in a call and have the servlet respond in Hessian,
i.e. convert the Hessian servlet to a REST-style GET. (The only real
advantage would be caching, but it's possible.)
Hessian itself only cares about the Input and OutputStreams,
everything else is really just housekeeping.
-- Scott
Thanks for your time,
-- Lorenzo
Are you ready for Windows Live Messenger Beta 8.5 ? Get the latest
for free today!
_______________________________________________
hessian-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/hessian-interest
_______________________________________________
hessian-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/hessian-interest