any way to match on http request type
Is there any way to match/select in the pipeline for the HTTP method used in the request? I'd like to write a pipeline for handling PUT requests. -- Miles Egan [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part
Re: any way to match on http request type
Have you looked at the HeaderSelector? Miles Egan [EMAIL PROTECTED] wrote:Is there any way to match/select in the pipeline for the HTTP method used in the request? I'd like to write a pipeline for handling PUT requests. -- Miles Egan ATTACHMENT part 2 application/pgp-signature name=signature.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: any way to match on http request type
The problem is that I don't want to select on one of the headers, but the actual request method (GET/POST/PUT). On Mon, 2003-06-02 at 11:26, Alex Romayev wrote: Have you looked at the HeaderSelector? Miles Egan [EMAIL PROTECTED] wrote:Is there any way to match/select in the pipeline for the HTTP method used in the request? I'd like to write a pipeline for handling PUT requests. -- Miles Egan [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part
Re: any way to match on http request type
Sorry. You need the RequestMethodSelector. http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/selection/RequestMethodSelector.html --- Miles Egan [EMAIL PROTECTED] wrote: The problem is that I don't want to select on one of the headers, but the actual request method (GET/POST/PUT). On Mon, 2003-06-02 at 11:26, Alex Romayev wrote: Have you looked at the HeaderSelector? Miles Egan [EMAIL PROTECTED] wrote:Is there any way to match/select in the pipeline for the HTTP method used in the request? I'd like to write a pipeline for handling PUT requests. -- Miles Egan [EMAIL PROTECTED] ATTACHMENT part 2 application/pgp-signature name=signature.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: any way to match on http request type
Perfect! Thanks. On Mon, 2003-06-02 at 11:59, Alex Romayev wrote: Sorry. You need the RequestMethodSelector. http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/selection/RequestMethodSelector.html --- Miles Egan [EMAIL PROTECTED] wrote: The problem is that I don't want to select on one of the headers, but the actual request method (GET/POST/PUT). On Mon, 2003-06-02 at 11:26, Alex Romayev wrote: Have you looked at the HeaderSelector? Miles Egan [EMAIL PROTECTED] wrote:Is there any way to match/select in the pipeline for the HTTP method used in the request? I'd like to write a pipeline for handling PUT requests. -- Miles Egan [EMAIL PROTECTED] ATTACHMENT part 2 application/pgp-signature name=signature.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Miles Egan [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part
Re: any way to match on http request type
On 02.Jun.2003 -- 09:20 AM, Miles Egan wrote: Is there any way to match/select in the pipeline for the HTTP method used in the request? I'd like to write a pipeline for handling PUT requests. Another possibility is to construct your own Matcher from the (Caching)WildCardMatcher in o.a.c.matching.modular and the RequestInputModule : !-- ... -- map:matchers default=wildcard map:matcher name=host-matcher logger=sitemap.matcher.wildcard src=org.apache.cocoon.matching.modular.CachingWildcardMatcher input-module name=request/ parameter-nameserverName/parameter-name /map:matcher !-- ... -- /map:matchers !-- ... -- map:match type=host-matcher pattern=localhost !-- ... -- /map:match !-- ... -- The above snippet is taken from the mail block sample for sendmail and checks for the server name. Adjusting it to your needs should be trivial. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]