You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Art Spasky <ar...@dgma.donetsk.ua> on 2004/10/18 10:31:14 UTC
The diffrennce between StreamGenerator and using upload
Hi all
Can someone tell me what is the difference between using StreamGenerator or
usnig pseudoprotocol upload:// when you handle uploaded files?
I see no diffeerences except of incorrect handling UTF-8 (cyrrilic
characters) in StreamGenerator.
Am I right?
Thank you in advance.
Art.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: The diffrennce between StreamGenerator and using upload
Posted by Art Spasky <ar...@dgma.donetsk.ua>.
Thank you. I understand.
For example, Xml Post is used by SOAP?
----- Original Message -----
From: "Paul Crabtree" <pa...@gmail.com>
To: <us...@cocoon.apache.org>
Sent: Monday, October 18, 2004 2:25 PM
Subject: Re: The diffrennce between StreamGenerator and using upload
> An XML post is like a normal form post but instead of a load of
> name/value params as request parameters the whole request body is an
> XML document.
>
> You cant make an XML post by using normal HTML forms but you can use
> client side javascript or make them from ASP/Java on the server.
>
> Paul
>
>
> On Mon, 18 Oct 2004 14:19:25 +0400, Art Spasky
> <ar...@dgma.donetsk.ua> wrote:
> > Excuse me. I did not understand
> > what do you mean by "XML Post"?
> >
> >
> >
> > ----- Original Message -----
> > From: "Paul Crabtree" <pa...@gmail.com>
> > To: <us...@cocoon.apache.org>
> > Sent: Monday, October 18, 2004 1:51 PM
> > Subject: Re: The diffrennce between StreamGenerator and using upload
> >
> > > I think the StreamGenerator is for taking either a XML Post and
> > > generating SAX events for the body of the request or optionally taking
> > > a specfic request parameter and turning the value into SAX.
> > >
> > > The upload protocol is not tied to generating SAX events, it can be
> > > any kind of data including binary.
> > >
> > > So for creating XML from the request you could either use a
> > > FileGenerator with the upload protocol in the src or the
> > > StreamGenerator.
> > >
> > > Paul
> > >
> > >
> > > On Mon, 18 Oct 2004 12:31:14 +0400, Art Spasky
> > > <ar...@dgma.donetsk.ua> wrote:
> > > > Hi all
> > > >
> > > > Can someone tell me what is the difference between using
StreamGenerator
> > or
> > > > usnig pseudoprotocol upload:// when you handle uploaded files?
> > > >
> > > > I see no diffeerences except of incorrect handling UTF-8 (cyrrilic
> > > > characters) in StreamGenerator.
> > > >
> > > > Am I right?
> > > >
> > > > Thank you in advance.
> > > >
> > > > Art.
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > > > For additional commands, e-mail: users-help@cocoon.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > > For additional commands, e-mail: users-help@cocoon.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> >
> >
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: The diffrennce between StreamGenerator and using upload
Posted by Paul Crabtree <pa...@gmail.com>.
An XML post is like a normal form post but instead of a load of
name/value params as request parameters the whole request body is an
XML document.
You cant make an XML post by using normal HTML forms but you can use
client side javascript or make them from ASP/Java on the server.
Paul
On Mon, 18 Oct 2004 14:19:25 +0400, Art Spasky
<ar...@dgma.donetsk.ua> wrote:
> Excuse me. I did not understand
> what do you mean by "XML Post"?
>
>
>
> ----- Original Message -----
> From: "Paul Crabtree" <pa...@gmail.com>
> To: <us...@cocoon.apache.org>
> Sent: Monday, October 18, 2004 1:51 PM
> Subject: Re: The diffrennce between StreamGenerator and using upload
>
> > I think the StreamGenerator is for taking either a XML Post and
> > generating SAX events for the body of the request or optionally taking
> > a specfic request parameter and turning the value into SAX.
> >
> > The upload protocol is not tied to generating SAX events, it can be
> > any kind of data including binary.
> >
> > So for creating XML from the request you could either use a
> > FileGenerator with the upload protocol in the src or the
> > StreamGenerator.
> >
> > Paul
> >
> >
> > On Mon, 18 Oct 2004 12:31:14 +0400, Art Spasky
> > <ar...@dgma.donetsk.ua> wrote:
> > > Hi all
> > >
> > > Can someone tell me what is the difference between using StreamGenerator
> or
> > > usnig pseudoprotocol upload:// when you handle uploaded files?
> > >
> > > I see no diffeerences except of incorrect handling UTF-8 (cyrrilic
> > > characters) in StreamGenerator.
> > >
> > > Am I right?
> > >
> > > Thank you in advance.
> > >
> > > Art.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > > For additional commands, e-mail: users-help@cocoon.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
>
>
> ---------------------------------------------------------------------
>
>
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re[2]: About cocoon's pseudo protocols
Posted by gr...@bluebottle.com.
Hi grek,
W Twoim liście datowanym 18 października 2004 (18:07:33) można przeczytać:
> Hi Art,
>> Hi all, once more
>> Does anybody know where to find in one place information about all
>> pseudo-protocols supported by Cocoon?
> http://cocoon.apache.org/2.1/apidocs/overview-summary.html
I'm sorry, above url is my mistake. I think this may help you:
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/source/impl/package-summary.html
--
Best regards,
grek@bluebottle.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: About cocoon's pseudo protocols
Posted by gr...@bluebottle.com.
Hi Art,
> Hi all, once more
> Does anybody know where to find in one place information about all
> pseudo-protocols supported by Cocoon?
http://cocoon.apache.org/2.1/apidocs/overview-summary.html
--
Best regards,
grek@bluebottle.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: About cocoon's pseudo protocols
Posted by Paul Crabtree <pa...@gmail.com>.
The ones that are available be default are in WEB-INF/cocoon.xmap
They are
cocoon://
upload://
context://
resource://
file://
and a catch all "*" which says it matches everything else and uses a URLSource.
On Mon, 18 Oct 2004 18:57:05 +0400, Art Spasky
<ar...@dgma.donetsk.ua> wrote:
> It's a pity.
>
> This does not work
>
>
>
> ----- Original Message -----
> From: "Timur Izhbulatov" <ti...@yxo.ru>
> To: <us...@cocoon.apache.org>
> Sent: Monday, October 18, 2004 6:23 PM
> Subject: Re: About cocoon's pseudo protocols
>
> > Art Spasky писал(а):
> >
> > > Hi all, once more
> > >
> > > Does anybody know where to find in one place information about all
> > > pseudo-protocols supported by Cocoon?
> >
> > I thinks you have to find all the classes implementing the Source
> interface.
> >
> > Timur
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: About cocoon's pseudo protocols
Posted by Tony Collen <co...@umn.edu>.
Art Spasky wrote:
> It's a pity.
>
> This does not work
Much of it is already supported in Java, i.e. http://, ftp://, etc.
Look up the protocols a java.net.URL (I *think*) support.
Tony
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: About cocoon's pseudo protocols
Posted by Art Spasky <ar...@dgma.donetsk.ua>.
It's a pity.
This does not work
----- Original Message -----
From: "Timur Izhbulatov" <ti...@yxo.ru>
To: <us...@cocoon.apache.org>
Sent: Monday, October 18, 2004 6:23 PM
Subject: Re: About cocoon's pseudo protocols
> Art Spasky писал(а):
>
> > Hi all, once more
> >
> > Does anybody know where to find in one place information about all
> > pseudo-protocols supported by Cocoon?
>
> I thinks you have to find all the classes implementing the Source
interface.
>
> Timur
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: About cocoon's pseudo protocols
Posted by Timur Izhbulatov <ti...@yxo.ru>.
Art Spasky писал(а):
> Hi all, once more
>
> Does anybody know where to find in one place information about all
> pseudo-protocols supported by Cocoon?
I thinks you have to find all the classes implementing the Source interface.
Timur
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
About cocoon's pseudo protocols
Posted by Art Spasky <ar...@dgma.donetsk.ua>.
Hi all, once more
Does anybody know where to find in one place information about all
pseudo-protocols supported by Cocoon?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: The diffrennce between StreamGenerator and using upload
Posted by Art Spasky <ar...@dgma.donetsk.ua>.
Excuse me. I did not understand
what do you mean by "XML Post"?
----- Original Message -----
From: "Paul Crabtree" <pa...@gmail.com>
To: <us...@cocoon.apache.org>
Sent: Monday, October 18, 2004 1:51 PM
Subject: Re: The diffrennce between StreamGenerator and using upload
> I think the StreamGenerator is for taking either a XML Post and
> generating SAX events for the body of the request or optionally taking
> a specfic request parameter and turning the value into SAX.
>
> The upload protocol is not tied to generating SAX events, it can be
> any kind of data including binary.
>
> So for creating XML from the request you could either use a
> FileGenerator with the upload protocol in the src or the
> StreamGenerator.
>
> Paul
>
>
> On Mon, 18 Oct 2004 12:31:14 +0400, Art Spasky
> <ar...@dgma.donetsk.ua> wrote:
> > Hi all
> >
> > Can someone tell me what is the difference between using StreamGenerator
or
> > usnig pseudoprotocol upload:// when you handle uploaded files?
> >
> > I see no diffeerences except of incorrect handling UTF-8 (cyrrilic
> > characters) in StreamGenerator.
> >
> > Am I right?
> >
> > Thank you in advance.
> >
> > Art.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: The diffrennce between StreamGenerator and using upload
Posted by Paul Crabtree <pa...@gmail.com>.
I think the StreamGenerator is for taking either a XML Post and
generating SAX events for the body of the request or optionally taking
a specfic request parameter and turning the value into SAX.
The upload protocol is not tied to generating SAX events, it can be
any kind of data including binary.
So for creating XML from the request you could either use a
FileGenerator with the upload protocol in the src or the
StreamGenerator.
Paul
On Mon, 18 Oct 2004 12:31:14 +0400, Art Spasky
<ar...@dgma.donetsk.ua> wrote:
> Hi all
>
> Can someone tell me what is the difference between using StreamGenerator or
> usnig pseudoprotocol upload:// when you handle uploaded files?
>
> I see no diffeerences except of incorrect handling UTF-8 (cyrrilic
> characters) in StreamGenerator.
>
> Am I right?
>
> Thank you in advance.
>
> Art.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org