Re: URL pattern /admin/*

"Andras Balogh" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <002101c33bae$de1e6cb0$0200a8c0@andras>
    Hi,

It could be a solution to map your events (or some of them) to /Common/* in web.xml.
I tested out this solution and it should work but a drawback is that you should have a different path
(or base href) for images stylesheets etc. 
I needed to change in Barracuda source in the 
ApplicationGateway.java handleDefaultExt method:

//figure out the name of the event handler being requested
target = req.getServletPath();

(this won't contain the event name being requested in case of /Common/*)

this should be replaced with

target=req.getRequestUri();

(but this will !!)


BW,

Andras.
 


  ----- Original Message ----- 
  From: Vijay Balakrishnan 
  To: '[email protected]' 
  Sent: Wednesday, June 25, 2003 2:50 AM
  Subject: Re: [Barracuda] URL pattern /admin/*


  Hi,

  I was wondering if somebody (Sergey) could show me 
  some code that overrides the ApplicationGateway and 
  Also the method of mapping the event classes to 
  url-patterns like "/Common/*"

  I am thinking of overriding the handleDefaultExt() method in 
  ApplicationGateway to check for /Common/*.event and then apply 
  security policies.We have a requirement to implement a  
  Role Based Access Control(hierarchical) authorization scheme 
  using web.xml as well as the Master gateway filtering of roles.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.