Re: General question about a mega-rewrite application code sample.

Splash Forums Rewrite Users General question about a mega-rewrite application code sample. Re: General question about a mega-rewrite application code sample.

#22517

Hey Julien,

regarding the first two questions:

First question

Inbound requests are incoming requests that are somehow processed by the servlet engine. Examples for this cases are requests sent by the browser, requests which are internally forwarded and so on.

In contrast to this outbound refers to URLs generated by the container. A typical example are URLs rendered to the HTML page. For example if a JSF form is rendered the JSF implementation has to insert an URL for the postback to the action attribute. You could change this URL using an outbound rule. Another example are redirects. If the servlet container sends a redirect outbound rules allow to rewrite these URLs.

Second question

Not.any() simply negates the rule you supply as an argument. The method is called any because you can supply more than one rule to the method. So the method means something like “return true if none of the supplied conditions are true”.

Christian