Advanced Dispatcher rules (eg. regex)

Avatar

Avatar

paro22

Avatar

paro22

paro22

15-10-2015

Hi,

I'm trying to add some advanced rules to the Dispatcher (4.1.9) but I'm finding myself very limited by the way patterns have to be written. [1] Is there any reason why it doesn't just use regex?

How would I implement rules like these with the current patterns?

  1. Only allow query parameters "q" and "fq". Saying /query "q=*&fq=*" allows everything because of the * I can't even say "q" OR "fq"
  2. Specify the number of characters (regex: {3}) [a-zA-Z0-9] only matches one character but I want to be able to say 'match unlimited number of this'.

In addition to these pattern issues, does anybody have resources for the new vanity url feature in 4.1.9?

[1] http://docs.adobe.com/docs/en/dispatcher/disp-config.html#Designing Patterns for glob Properties

View Entire Topic

Avatar

Avatar

paro22

Avatar

paro22

paro22

15-10-2015

Yeah, I saw the vanity url feature "explained" in the web cast, but couldn't find details anywhere. For example, where can I get the servlet that creates the vanity url list on the AEM side (the path referenced in the example doesn't exist for me)? 

 

  1. That seems awfully manual, doesn't it? Also, how do I allow unlimited number of "fq" parameters? 
  2. Yeah, with a regex that'd be easy but I don't see a way to do that with the Dsipatcher pattern.