Reinhard Poetz skrev:
Daniel Fagerstrom wrote:
hmm, the "src" attribute of generators desribes, what is feed into
the component. In the case of a servlet service generator, the
output stream of a servlet is used as stream input.
Rather something that is transformed to SAX output.
The "data" parameter defines the content that is passed to the
servlet service. IMO that's not the starting point of the generator.
IMO it is ;)
The normal case:
Source ==[octet stream]==> Generator ==[SAX]==> ...
Servlet service generator as I see it:
Source ==[octet stream]==> Generator ==[SAX]==> ...
| ^
v |
ServletService
As you can see, the connection to the servlet service is something
that differ from the ordinary generator usage, and because of that it
is natural to put it in a parameter.
:-) yes, technically that's of course right but from a user's POV the
generator uses a servlet service as source.
I don't see how a user would gain anything in having a faulty conceptual
view of what the component does or why we should add to the potential
confusion by having a non consistent use of the source attribute.
The src attribute is used for reading from a source in all other cases,
using it for posting would be really confusing from a user POV ;)
The data is the payload added to the request and only the _indirect_
source for the calling pipeline.
This is really a technical POV, and no, there is nothing _indirect_ in
this particular use of the src attribute.
/Daniel