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

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

      
    
Rootfs path

      
    
Size
2014 (2.0 KB)
MD5
c07f3c2d50052cd7ba7e8e3d3fce2fb8
SHA1
fff5d256d354f7658173704243e9d0245fddb531
SHA256
a64f2802cfdefd42fc0a395f8c041db3825b3e3310f011999fc30b2c4832ac21
SHA512

      
    
SHA1_git
1f5930094e37159e0318b5fb9f66d50802251c13
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
WatchedResourceSF.java | 2.0 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.core.StandardContext; import org.apache.juli.logging.Log; import org.apache.juli.logging.LogFactory; public class WatchedResourceSF extends StoreFactoryBase { private static final Log log = LogFactory.getLog(WatchedResourceSF.class); @Override public void store(PrintWriter aWriter, int indent, Object aElement) throws Exception { if (aElement instanceof StandardContext) { StoreDescription elementDesc = getRegistry().findDescription(aElement.getClass().getName() + ".[WatchedResource]"); String[] resources = ((StandardContext) aElement).findWatchedResources(); if (elementDesc != null) { if (log.isTraceEnabled()) { log.trace("store " + elementDesc.getTag() + "( " + aElement + " )"); } getStoreAppender().printTagArray(aWriter, "WatchedResource", indent, resources); } } else { log.warn(sm.getString("storeFactory.noDescriptor", aElement.getClass(), "WatchedResource")); } } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
55.35
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