cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24402] - [PATCH] XML posting from SourceWritingTransformer by using an enhanced HTTPClientSource
Date Fri, 14 Nov 2003 14:51:24 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24402>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24402

[PATCH] XML posting from SourceWritingTransformer by using an enhanced HTTPClientSource





------- Additional Comments From danielf@nada.kth.se  2003-11-14 14:51 -------
I agree about the source:source-parameter part of your proposal, it seem like a
good idea to introduce that for all of the elements: write/insert/delete/post.
And also to make it more general so that we have:
  <source:source-parameter name="method">POST</source:source-parameter>
  <source:source-parameter name="header-xyz">VALUE</...>
as you sugested and maybe:
  <source:source-parameter name="query-param-xyz">VALUE</...>
as well for being able to add query parameters to the URI as well.

For combining source:post and source:write I am not that certain. The semantics
of the source:post is that is first gets the output stream from the modifyable
source and writes it XML fragment to it and after that it gets the input stream
and add the content of that to the output from the transformer.

The source:write just writes to the modifiable source and never asks for its
input stream. It is not certain that you want to output the content of e.g. a
file that you wrote to. I am not certain that all modifiable sources realy are
designed for reading from. So I think it is quite natural to differ between the
write and post operation, but maybe we shoud find another name than post as it
is coupled to the HTTP-protocol, but I didn't found any better names. Any ideas?

WDYT?

Mime
View raw message