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

Method init

java/org/apache/coyote/AbstractProtocol.java:933–959  ·  view source on GitHub ↗

Initializes the protocol handler. @throws Exception if initialization fails

()

Source from the content-addressed store, hash-verified

931 * @throws Exception if initialization fails
932 */
933 @Override
934 public void init() throws Exception {
935 if (getLog().isInfoEnabled()) {
936 getLog().info(sm.getString("abstractProtocolHandler.init", getName()));
937 logPortOffset();
938 }
939
940 if (oname == null) {
941 // Component not pre-registered so register it
942 oname = createObjectName();
943 if (oname != null) {
944 Registry.getRegistry(null).registerComponent(this, oname, null);
945 }
946 }
947
948 if (this.domain != null) {
949 ObjectName rgOname = new ObjectName(domain + ":type=GlobalRequestProcessor,name=" + getName());
950 this.rgOname = rgOname;
951 Registry.getRegistry(null).registerComponent(getHandler().getGlobal(), rgOname, null);
952 }
953
954 String endpointName = getName();
955 endpoint.setName(endpointName.substring(1, endpointName.length() - 1));
956 endpoint.setDomain(domain);
957
958 endpoint.init();
959 }
960
961
962 /**

Callers

nothing calls this directly

Calls 15

getLogMethod · 0.95
getNameMethod · 0.95
logPortOffsetMethod · 0.95
createObjectNameMethod · 0.95
getRegistryMethod · 0.95
getHandlerMethod · 0.95
lengthMethod · 0.80
isInfoEnabledMethod · 0.65
infoMethod · 0.65
getStringMethod · 0.65
registerComponentMethod · 0.65
getGlobalMethod · 0.65

Tested by

no test coverage detected