Java Code Examples for org.apache.catalina.Host#setName()
The following examples show how to use
org.apache.catalina.Host#setName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Tomcat.java From Tomcat8-Source-Read with MIT License | 5 votes |
public Host getHost() { Engine engine = getEngine(); if (engine.findChildren().length > 0) { return (Host) engine.findChildren()[0]; } Host host = new StandardHost(); host.setName(hostname); getEngine().addChild(host); return host; }
Example 2
Source File: RedisStoreTest.java From session-managers with Apache License 2.0 | 5 votes |
@Before public void setupManager() { Context context = new StandardContext(); Host host = new StandardHost(); this.manager.setContext(context); context.setName("test-context-name"); context.setParent(host); host.setName("test-host-name"); }
Example 3
Source File: CatalinaContainer.java From scipio-erp with Apache License 2.0 | 4 votes |
private static Host createHost(String hostName) { Host host = new StandardHost(); host.setName(hostName); configureHost(host); return host; }