"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tapestry-core/src/main/java/org/apache/tapestry5/modules/AssetsModule.java" between
apache-tapestry-5.6.2-sources.zip and apache-tapestry-5.6.3-sources.zip

About: Apache Tapestry is a framework for creating dynamic, robust, highly scalable web applications in Java. Source code.

AssetsModule.java  (apache-tapestry-5.6.2-sources):AssetsModule.java  (apache-tapestry-5.6.3-sources)
skipping to change at line 21 skipping to change at line 21
// limitations under the License. // limitations under the License.
package org.apache.tapestry5.modules; package org.apache.tapestry5.modules;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import org.apache.tapestry5.SymbolConstants; import org.apache.tapestry5.SymbolConstants;
import org.apache.tapestry5.internal.AssetConstants; import org.apache.tapestry5.internal.AssetConstants;
import org.apache.tapestry5.internal.InternalConstants; import org.apache.tapestry5.internal.InternalConstants;
import org.apache.tapestry5.internal.services.*; import org.apache.tapestry5.internal.services.AssetSourceImpl;
import org.apache.tapestry5.internal.services.assets.*; import org.apache.tapestry5.internal.services.ClasspathAssetAliasManagerImpl;
import org.apache.tapestry5.internal.services.ClasspathAssetFactory;
import org.apache.tapestry5.internal.services.ContextAssetFactory;
import org.apache.tapestry5.internal.services.ExternalUrlAssetFactory;
import org.apache.tapestry5.internal.services.IdentityAssetPathConverter;
import org.apache.tapestry5.internal.services.RequestConstants;
import org.apache.tapestry5.internal.services.ResourceStreamer;
import org.apache.tapestry5.internal.services.assets.AssetChecksumGeneratorImpl;
import org.apache.tapestry5.internal.services.assets.AssetPathConstructorImpl;
import org.apache.tapestry5.internal.services.assets.CSSURLRewriter;
import org.apache.tapestry5.internal.services.assets.ClasspathAssetRequestHandle
r;
import org.apache.tapestry5.internal.services.assets.CompressionAnalyzerImpl;
import org.apache.tapestry5.internal.services.assets.ContentTypeAnalyzerImpl;
import org.apache.tapestry5.internal.services.assets.ContextAssetRequestHandler;
import org.apache.tapestry5.internal.services.assets.JavaScriptStackAssembler;
import org.apache.tapestry5.internal.services.assets.JavaScriptStackAssemblerImp
l;
import org.apache.tapestry5.internal.services.assets.JavaScriptStackMinimizeDisa
bler;
import org.apache.tapestry5.internal.services.assets.MasterResourceMinimizer;
import org.apache.tapestry5.internal.services.assets.ResourceChangeTracker;
import org.apache.tapestry5.internal.services.assets.ResourceChangeTrackerImpl;
import org.apache.tapestry5.internal.services.assets.SRSCachingInterceptor;
import org.apache.tapestry5.internal.services.assets.SRSCompressedCachingInterce
ptor;
import org.apache.tapestry5.internal.services.assets.SRSCompressingInterceptor;
import org.apache.tapestry5.internal.services.assets.SRSMinimizingInterceptor;
import org.apache.tapestry5.internal.services.assets.StackAssetRequestHandler;
import org.apache.tapestry5.internal.services.assets.StreamableResourceSourceImp
l;
import org.apache.tapestry5.internal.services.assets.UTF8ForTextAssets;
import org.apache.tapestry5.internal.services.messages.ClientLocalizationMessage Resource; import org.apache.tapestry5.internal.services.messages.ClientLocalizationMessage Resource;
import org.apache.tapestry5.ioc.*; import org.apache.tapestry5.ioc.MappedConfiguration;
import org.apache.tapestry5.ioc.annotations.*; import org.apache.tapestry5.ioc.OperationTracker;
import org.apache.tapestry5.ioc.OrderedConfiguration;
import org.apache.tapestry5.ioc.Resource;
import org.apache.tapestry5.ioc.ServiceBinder;
import org.apache.tapestry5.ioc.annotations.Autobuild;
import org.apache.tapestry5.ioc.annotations.Contribute;
import org.apache.tapestry5.ioc.annotations.Decorate;
import org.apache.tapestry5.ioc.annotations.Marker;
import org.apache.tapestry5.ioc.annotations.Order;
import org.apache.tapestry5.ioc.annotations.Primary;
import org.apache.tapestry5.ioc.annotations.Symbol;
import org.apache.tapestry5.ioc.services.ChainBuilder; import org.apache.tapestry5.ioc.services.ChainBuilder;
import org.apache.tapestry5.ioc.services.FactoryDefaults; import org.apache.tapestry5.ioc.services.FactoryDefaults;
import org.apache.tapestry5.ioc.services.SymbolProvider; import org.apache.tapestry5.ioc.services.SymbolProvider;
import org.apache.tapestry5.services.*; import org.apache.tapestry5.services.ApplicationGlobals;
import org.apache.tapestry5.services.assets.*; import org.apache.tapestry5.services.AssetFactory;
import org.apache.tapestry5.services.AssetPathConverter;
import org.apache.tapestry5.services.AssetRequestDispatcher;
import org.apache.tapestry5.services.AssetSource;
import org.apache.tapestry5.services.ClasspathAssetAliasManager;
import org.apache.tapestry5.services.ClasspathAssetProtectionRule;
import org.apache.tapestry5.services.ClasspathProvider;
import org.apache.tapestry5.services.ComponentClassResolver;
import org.apache.tapestry5.services.ContextProvider;
import org.apache.tapestry5.services.Core;
import org.apache.tapestry5.services.Dispatcher;
import org.apache.tapestry5.services.Request;
import org.apache.tapestry5.services.ResponseCompressionAnalyzer;
import org.apache.tapestry5.services.assets.AssetChecksumGenerator;
import org.apache.tapestry5.services.assets.AssetPathConstructor;
import org.apache.tapestry5.services.assets.AssetRequestHandler;
import org.apache.tapestry5.services.assets.CompressionAnalyzer;
import org.apache.tapestry5.services.assets.ContentTypeAnalyzer;
import org.apache.tapestry5.services.assets.ResourceMinimizer;
import org.apache.tapestry5.services.assets.StreamableResourceSource;
import org.apache.tapestry5.services.javascript.JavaScriptStackSource; import org.apache.tapestry5.services.javascript.JavaScriptStackSource;
import org.apache.tapestry5.services.messages.ComponentMessagesSource; import org.apache.tapestry5.services.messages.ComponentMessagesSource;
/** /**
* @since 5.3 * @since 5.3
*/ */
@Marker(Core.class) @Marker(Core.class)
public class AssetsModule public class AssetsModule
{ {
public static void bind(ServiceBinder binder) public static void bind(ServiceBinder binder)
skipping to change at line 376 skipping to change at line 431
public static void contributeClasspathAssetProtectionRule( public static void contributeClasspathAssetProtectionRule(
OrderedConfiguration<ClasspathAssetProtectionRule> configuration) OrderedConfiguration<ClasspathAssetProtectionRule> configuration)
{ {
ClasspathAssetProtectionRule classFileRule = (s) -> s.toLowerCase().ends With(".class"); ClasspathAssetProtectionRule classFileRule = (s) -> s.toLowerCase().ends With(".class");
configuration.add("ClassFile", classFileRule); configuration.add("ClassFile", classFileRule);
ClasspathAssetProtectionRule propertiesFileRule = (s) -> s.toLowerCase() .endsWith(".properties"); ClasspathAssetProtectionRule propertiesFileRule = (s) -> s.toLowerCase() .endsWith(".properties");
configuration.add("PropertiesFile", propertiesFileRule); configuration.add("PropertiesFile", propertiesFileRule);
ClasspathAssetProtectionRule xmlFileRule = (s) -> s.toLowerCase().endsWi th(".xml"); ClasspathAssetProtectionRule xmlFileRule = (s) -> s.toLowerCase().endsWi th(".xml");
configuration.add("XMLFile", xmlFileRule); configuration.add("XMLFile", xmlFileRule);
ClasspathAssetProtectionRule folderRule = (s) -> isFolderToBlock(s);
configuration.add("Folder", folderRule);
}
final private static boolean isFolderToBlock(String path)
{
path = path.replace('\\', '/');
final int lastIndex = path.lastIndexOf('/');
if (lastIndex >= 0)
{
path = path.substring(lastIndex);
}
return !path.contains(".");
} }
} }
 End of changes. 4 change blocks. 
6 lines changed or deleted 79 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)