ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/catalina/storeconfig/StandardServiceSF.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/catalina/storeconfig/StandardServiceSF.java
Status
scanned
Type
file
Name
StandardServiceSF.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
2531 (2.5 KB)
MD5
5fa48f740c783ce45a6daf1421eb84ab
SHA1
846be120d21189c4571c030f8c83eb39af2df7ca
SHA256
bb39373b30bb137ef17673f1b0f5d692c5cdaebb230121cc9af2ad9d1a26f9ce
SHA512

      
    
SHA1_git
4dc1af3da15d25328aa300b0ca43e5217173224a
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
StandardServiceSF.java | 2.5 KB |

/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.catalina.storeconfig; import java.io.PrintWriter; import org.apache.catalina.Engine; import org.apache.catalina.Executor; import org.apache.catalina.LifecycleListener; import org.apache.catalina.connector.Connector; import org.apache.catalina.core.StandardService; /** * Store server.xml Element Service and all children */ public class StandardServiceSF extends StoreFactoryBase { /** * Store the specified service element children. * <p> * {@inheritDoc} */ @Override public void storeChildren(PrintWriter aWriter, int indent, Object aService, StoreDescription parentDesc) throws Exception { if (aService instanceof StandardService service) { // Store nested <Listener> elements LifecycleListener[] listeners = service.findLifecycleListeners(); storeElementArray(aWriter, indent, listeners); // Store nested <Executor> elements Executor[] executors = service.findExecutors(); storeElementArray(aWriter, indent, executors); Connector[] connectors = service.findConnectors(); storeElementArray(aWriter, indent, connectors); // Store nested <Engine> element Engine container = service.getContainer(); if (container != null) { StoreDescription elementDesc = getRegistry().findDescription(container.getClass()); if (elementDesc != null) { IStoreFactory factory = elementDesc.getStoreFactory(); factory.store(aWriter, indent, container); } } } } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
46.85
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9