1 17 18 19 package org.apache.jasper.security; 20 21 28 29 public final class SecurityClassLoad { 30 31 private static org.apache.commons.logging.Log log= 32 org.apache.commons.logging.LogFactory.getLog( SecurityClassLoad.class ); 33 34 public static void securityClassLoad(ClassLoader loader){ 35 36 if( System.getSecurityManager() == null ){ 37 return; 38 } 39 40 String basePackage = "org.apache.jasper."; 41 try { 42 loader.loadClass( basePackage + 43 "runtime.JspFactoryImpl$PrivilegedGetPageContext"); 44 loader.loadClass( basePackage + 45 "runtime.JspFactoryImpl$PrivilegedReleasePageContext"); 46 47 loader.loadClass( basePackage + 48 "runtime.JspRuntimeLibrary"); 49 loader.loadClass( basePackage + 50 "runtime.JspRuntimeLibrary$PrivilegedIntrospectHelper"); 51 52 loader.loadClass( basePackage + 53 "runtime.ServletResponseWrapperInclude"); 54 loader.loadClass( basePackage + 55 "runtime.TagHandlerPool"); 56 loader.loadClass( basePackage + 57 "runtime.JspFragmentHelper"); 58 59 loader.loadClass( basePackage + 60 "runtime.ProtectedFunctionMapper"); 61 loader.loadClass( basePackage + 62 "runtime.ProtectedFunctionMapper$1"); 63 loader.loadClass( basePackage + 64 "runtime.ProtectedFunctionMapper$2"); 65 loader.loadClass( basePackage + 66 "runtime.ProtectedFunctionMapper$3"); 67 loader.loadClass( basePackage + 68 "runtime.ProtectedFunctionMapper$4"); 69 70 loader.loadClass( basePackage + 71 "runtime.PageContextImpl"); 72 loader.loadClass( basePackage + 73 "runtime.PageContextImpl$1"); 74 loader.loadClass( basePackage + 75 "runtime.PageContextImpl$2"); 76 loader.loadClass( basePackage + 77 "runtime.PageContextImpl$3"); 78 loader.loadClass( basePackage + 79 "runtime.PageContextImpl$4"); 80 loader.loadClass( basePackage + 81 "runtime.PageContextImpl$5"); 82 loader.loadClass( basePackage + 83 "runtime.PageContextImpl$6"); 84 loader.loadClass( basePackage + 85 "runtime.PageContextImpl$7"); 86 loader.loadClass( basePackage + 87 "runtime.PageContextImpl$8"); 88 loader.loadClass( basePackage + 89 "runtime.PageContextImpl$9"); 90 loader.loadClass( basePackage + 91 "runtime.PageContextImpl$10"); 92 loader.loadClass( basePackage + 93 "runtime.PageContextImpl$11"); 94 loader.loadClass( basePackage + 95 "runtime.PageContextImpl$12"); 96 loader.loadClass( basePackage + 97 "runtime.PageContextImpl$13"); 98 99 loader.loadClass( basePackage + 100 "runtime.JspContextWrapper"); 101 102 loader.loadClass( basePackage + 103 "servlet.JspServletWrapper"); 104 105 loader.loadClass( basePackage + 106 "runtime.JspWriterImpl$1"); 107 } catch (ClassNotFoundException ex) { 108 log.error("SecurityClassLoad", ex); 109 } 110 } 111 } 112 | Popular Tags |