ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/catalina/ssi/SSIExternalResolver.java

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

      
    
Rootfs path

      
    
Size
2250 (2.2 KB)
MD5
b1c2310e9646bd76e4914a47e51be0c2
SHA1
22da4923d86ca5a27b54a4c9a652d5612b24cd32
SHA256
c8b8fb577569b01813b4f2199c8e41decb43da523570c072f9cf492fd3cf3d81
SHA512

      
    
SHA1_git
acd198fda2710935ca98b8e1d0e56b70defdd4b7
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
SSIExternalResolver.java | 2.2 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.ssi; import java.io.IOException; import java.util.Collection; import java.util.Date; /** * Interface used by SSIMediator to talk to the 'outside world' ( usually a servlet ). */ public interface SSIExternalResolver { /** * Adds any external variables to the variableNames collection. * * @param variableNames the collection to add to */ void addVariableNames(Collection<String> variableNames); String getVariableValue(String name); /** * Set the named variable to the specified value. If value is null, then the variable will be removed ( ie. a call * to getVariableValue will return null ) * * @param name of the variable * @param value of the variable */ void setVariableValue(String name, String value); /** * Returns the current date. This is useful for putting the SSI stuff in a regression test. Since you can make the * current date a constant, it makes testing easier since the output won't change. * * @return the data */ Date getCurrentDate(); long getFileSize(String path, boolean virtual) throws IOException; long getFileLastModified(String path, boolean virtual) throws IOException; String getFileText(String path, boolean virtual) throws IOException; void log(String message, Throwable throwable); }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
41.9
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