ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/jasper/el/ELContextWrapper.java

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

      
    
Rootfs path

      
    
Size
2581 (2.5 KB)
MD5
2261cb1e42df276d39477514f6e70c46
SHA1
59aa43f47212843281b5f409cd5fe843706a75bc
SHA256
960c9519fd290229fcba11867e651b6a03b6c3dfef416b70f9d2c4cd5f823a4f
SHA512

      
    
SHA1_git
a3b62f2a0b119d0908fea20d98ea6d1574e03066
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
ELContextWrapper.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.jasper.el; import java.util.Locale; import jakarta.el.ELContext; import jakarta.el.ELResolver; import jakarta.el.FunctionMapper; import jakarta.el.VariableMapper; /** * Simple ELContextWrapper for runtime evaluation of EL w/ dynamic FunctionMappers */ public final class ELContextWrapper extends ELContext { private final ELContext target; private final FunctionMapper fnMapper; public ELContextWrapper(ELContext target, FunctionMapper fnMapper) { this.target = target; this.fnMapper = fnMapper; } @Override public ELResolver getELResolver() { return this.target.getELResolver(); } @Override public FunctionMapper getFunctionMapper() { if (this.fnMapper != null) { return this.fnMapper; } return this.target.getFunctionMapper(); } @Override public VariableMapper getVariableMapper() { return this.target.getVariableMapper(); } @Override public Object getContext(Class<?> key) { return this.target.getContext(key); } @Override public Locale getLocale() { return this.target.getLocale(); } @Override public boolean isPropertyResolved() { return this.target.isPropertyResolved(); } @Override public void putContext(Class<?> key, Object contextObject) throws NullPointerException { this.target.putContext(key, contextObject); } @Override public void setLocale(Locale locale) { this.target.setLocale(locale); } @Override public void setPropertyResolved(boolean resolved) { this.target.setPropertyResolved(resolved); } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
44.07
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