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

Class StandardServer

java/org/apache/catalina/core/StandardServer.java:65–1032  ·  view source on GitHub ↗

Standard implementation of the Server interface, available for use (but not required) when deploying and starting Catalina.

Source from the content-addressed store, hash-verified

63 * starting Catalina.
64 */
65public final class StandardServer extends LifecycleMBeanBase implements Server {
66
67 private static final Log log = LogFactory.getLog(StandardServer.class);
68 private static final StringManager sm = StringManager.getManager(StandardServer.class);
69
70
71 // ------------------------------------------------------------ Constructor
72
73 /**
74 * Construct a default instance of this class.
75 */
76 public StandardServer() {
77
78 super();
79
80 globalNamingResources = new NamingResourcesImpl();
81 globalNamingResources.setContainer(this);
82
83 if (isUseNaming()) {
84 namingContextListener = new NamingContextListener();
85 addLifecycleListener(namingContextListener);
86 } else {
87 namingContextListener = null;
88 }
89
90 }
91
92
93 // ----------------------------------------------------- Instance Variables
94
95
96 /**
97 * Global naming resources context.
98 */
99 private javax.naming.Context globalNamingContext = null;
100
101
102 /**
103 * Global naming resources.
104 */
105 private NamingResourcesImpl globalNamingResources;
106
107
108 /**
109 * The naming context listener for this web application.
110 */
111 private final NamingContextListener namingContextListener;
112
113
114 /**
115 * The port number on which we wait for shutdown commands.
116 */
117 private int port = 8005;
118
119 private int portOffset = 0;
120
121 /**
122 * The address on which we wait for shutdown commands.

Callers

nothing calls this directly

Calls 4

getLogMethod · 0.95
getManagerMethod · 0.95
readLockMethod · 0.80
writeLockMethod · 0.80

Tested by

no test coverage detected