Standard implementation of the Host interface. Each child container must be a Context implementation to process the requests directed to a particular web application.
| 51 | * process the requests directed to a particular web application. |
| 52 | */ |
| 53 | public class StandardHost extends ContainerBase implements Host { |
| 54 | |
| 55 | private static final Log log = LogFactory.getLog(StandardHost.class); |
| 56 | |
| 57 | // ----------------------------------------------------------- Constructors |
| 58 | |
| 59 | |
| 60 | /** |
| 61 | * Create a new StandardHost component with the default basic Valve. |
| 62 | */ |
| 63 | public StandardHost() { |
| 64 | |
| 65 | super(); |
| 66 | pipeline.setBasic(new StandardHostValve()); |
| 67 | |
| 68 | } |
| 69 | |
| 70 | |
| 71 | // ----------------------------------------------------- Instance Variables |
| 72 | |
| 73 | |
| 74 | /** |
| 75 | * The set of aliases for this Host. |
| 76 | */ |
| 77 | private String[] aliases = new String[0]; |
| 78 | |
| 79 | private final Object aliasesLock = new Object(); |
| 80 | |
| 81 | |
| 82 | /** |
| 83 | * The application root for this Host. |
| 84 | */ |
| 85 | private String appBase = "webapps"; |
| 86 | private volatile File appBaseFile = null; |
| 87 | |
| 88 | |
| 89 | /** |
| 90 | * The legacy (Java EE) application root for this Host. |
| 91 | */ |
| 92 | private String legacyAppBase = "webapps-javaee"; |
| 93 | private volatile File legacyAppBaseFile = null; |
| 94 | |
| 95 | |
| 96 | /** |
| 97 | * The XML root for this Host. |
| 98 | */ |
| 99 | private String xmlBase = null; |
| 100 | |
| 101 | /** |
| 102 | * host's default config path |
| 103 | */ |
| 104 | private volatile File hostConfigBase = null; |
| 105 | |
| 106 | /** |
| 107 | * The auto deploy flag for this Host. |
| 108 | */ |
| 109 | private boolean autoDeploy = true; |
| 110 |