RTC Forums
November 24, 2024, 12:51:39 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Removing a set FilePath  (Read 4468 times)
Dany
RTC License++
*****
Posts: 69


« on: April 01, 2014, 10:19:52 AM »

Hi!

I would like to know where the best place to remove a virtual path would be. Something like "FixupRequest".

A request coming in with http://anyhost.dom/virt/anything.html i would like to convert to http://anyhost.dom/anything.html before any TRtcDataProviders get at the request. Only if the "virtual path" exactly matches my "setting", in this case "virt".

Thank you,

/Dany
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: April 01, 2014, 01:34:31 PM »

You can do it inside the OnCheckRequest of a TRtcDataProvider component, without calling Accept. For the OnCheckRequest of that DataProvider to get called before any other components OnCheckRequest, make sure the CheckOrder value is lower than CheckOrder of all other assigned DataProvider or ServerModule components.

Best Regards,
Danijel Tkalcec
Logged
Dany
RTC License++
*****
Posts: 69


« Reply #2 on: April 01, 2014, 01:38:14 PM »

Ah, brilliant! Exactly what i need.

Thanks,

/Dany
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.024 seconds with 17 queries.