You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ondrej Zizka <oz...@redhat.com> on 2013/03/03 10:35:17 UTC

Ignoring requests already processed by other servlet (REST)

Hi all,

I have a wicket app at /*  and REST API at /rest .
When REST returns 404 (e.g. to reqest for non-existent ID), Wicket 
processes this.

What's the technique to tell wicket to let some requests pass?

I was thinking I could mount a page to /rest which would just copy the 
response somehow, like

       getRequestCycle().scheduleRequestHandlerAfterCurrent(new 
ErrorCodeRequestHandler(...));

But I believe there is a declarative way - in settings. Maybe even some 
filter?


Thanks,
Ondra

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Found - init-param ignorePaths /// Re: Ignoring requests already processed by other servlet (REST)

Posted by Ondrej Zizka <oz...@redhat.com>.
Found - thanks to Erics blog:

|<filter> <filter-name>wicket.filter</filter-name> 
<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class> <init-param> 
<param-name>ignorePaths</param-name> 
<param-value>images/,rest/</param-value> </init-param> </filter>

|http://day-to-day-stuff.blogspot.cz/2009/05/more-wicket-filter-options.html




On 03/03/2013 10:35 AM, Ondrej Zizka wrote:
> Hi all,
>
> I have a wicket app at /*  and REST API at /rest .
> When REST returns 404 (e.g. to reqest for non-existent ID), Wicket 
> processes this.
>
> What's the technique to tell wicket to let some requests pass?
>
> I was thinking I could mount a page to /rest which would just copy the 
> response somehow, like
>
>       getRequestCycle().scheduleRequestHandlerAfterCurrent(new 
> ErrorCodeRequestHandler(...));
>
> But I believe there is a declarative way - in settings. Maybe even 
> some filter?
>
>
> Thanks,
> Ondra
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Ignoring requests already processed by other servlet (REST)

Posted by Bernard <bh...@gmail.com>.
See
https://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-Ignoringpaths


On Sun, 03 Mar 2013 10:35:17 +0100, you wrote:

>Hi all,
>
>I have a wicket app at /*  and REST API at /rest .
>When REST returns 404 (e.g. to reqest for non-existent ID), Wicket 
>processes this.
>
>What's the technique to tell wicket to let some requests pass?
>
>I was thinking I could mount a page to /rest which would just copy the 
>response somehow, like
>
>       getRequestCycle().scheduleRequestHandlerAfterCurrent(new 
>ErrorCodeRequestHandler(...));
>
>But I believe there is a declarative way - in settings. Maybe even some 
>filter?
>
>
>Thanks,
>Ondra
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>For additional commands, e-mail: users-help@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org