MCPcopy Index your code
hub / github.com/apache/tomcat / StoreConfig

Class StoreConfig

java/org/apache/catalina/storeconfig/StoreConfig.java:40–286  ·  view source on GitHub ↗

Store Server/Service/Host/Context at file or PrintWriter. Default server.xml is at $catalina.base/conf/server.xml

Source from the content-addressed store, hash-verified

38 * Store Server/Service/Host/Context at file or PrintWriter. Default server.xml is at $catalina.base/conf/server.xml
39 */
40public class StoreConfig implements IStoreConfig {
41 private static final Log log = LogFactory.getLog(StoreConfig.class);
42 /**
43 * String manager for this class.
44 */
45 protected static final StringManager sm = StringManager.getManager(Constants.Package);
46
47 /**
48 * Default constructor.
49 */
50 public StoreConfig() {
51 }
52
53 private String serverFilename = "conf/server.xml";
54
55 private StoreRegistry registry;
56
57 private Server server;
58
59 /**
60 * Get server.xml location
61 *
62 * @return The server file name
63 */
64 public String getServerFilename() {
65 return serverFilename;
66 }
67
68 /**
69 * Set new server.xml location.
70 *
71 * @param string The server.xml location
72 */
73 public void setServerFilename(String string) {
74 serverFilename = string;
75 }
76
77 @Override
78 public StoreRegistry getRegistry() {
79 return registry;
80 }
81
82 @Override
83 public void setServer(Server aServer) {
84 server = aServer;
85 }
86
87 @Override
88 public Server getServer() {
89 return server;
90 }
91
92 @Override
93 public void setRegistry(StoreRegistry aRegistry) {
94 registry = aRegistry;
95 }
96
97 @Override

Callers

nothing calls this directly

Calls 2

getLogMethod · 0.95
getManagerMethod · 0.95

Tested by

no test coverage detected