Implement alias resources. Key features:
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 12 Jun 2009 11:38:29 +0000 (11:38 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 12 Jun 2009 11:38:29 +0000 (11:38 +0000)
commite2ca78f16a17d28840b776b0a407680055a72b5b
tree78f4a0bf29b0ac240bc768bb8ef8256fd77e5183
parentce716a25d714ea7481850c92ff0a3d49ac754e46
Implement alias resources. Key features:
- configured at the context level in the same way as the other resource related attributes
- maps paths to directories or WAR files (single files not supported)

Implementation notes:
- Correct results for getRealPath() required this to be pushed down to the BaseDirContext as the short-cuts previously used needed to take account of any aliases. This in turn meant an addition to the Context interface
- Thanks to Tim F. The configuration format is all his idea

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@784083 13f79535-47bb-0310-9956-ffa450edef68
java/org/apache/catalina/Context.java
java/org/apache/catalina/core/ApplicationContext.java
java/org/apache/catalina/core/StandardContext.java
java/org/apache/catalina/core/mbeans-descriptors.xml
java/org/apache/naming/resources/BaseDirContext.java
java/org/apache/naming/resources/FileDirContext.java
java/org/apache/naming/resources/LocalStrings.properties
java/org/apache/naming/resources/VirtualDirContext.java
java/org/apache/naming/resources/WARDirContext.java
webapps/docs/config/context.xml