diff --git a/src/main/java/com/alibaba/druid/filter/config/loader/ConfigLoader.java b/src/main/java/com/alibaba/druid/filter/config/loader/ConfigLoader.java index bcdf6119e6..c5da0afd39 100644 --- a/src/main/java/com/alibaba/druid/filter/config/loader/ConfigLoader.java +++ b/src/main/java/com/alibaba/druid/filter/config/loader/ConfigLoader.java @@ -1,3 +1,18 @@ +/* + * Copyright 1999-2011 Alibaba Group Holding Ltd. + * + * Licensed 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 com.alibaba.druid.filter.config.loader; import java.util.Properties; diff --git a/src/main/java/com/alibaba/druid/filter/config/loader/ConfigLoaderFactory.java b/src/main/java/com/alibaba/druid/filter/config/loader/ConfigLoaderFactory.java index 6cf5c2a0f9..fa7527819b 100644 --- a/src/main/java/com/alibaba/druid/filter/config/loader/ConfigLoaderFactory.java +++ b/src/main/java/com/alibaba/druid/filter/config/loader/ConfigLoaderFactory.java @@ -1,3 +1,18 @@ +/* + * Copyright 1999-2011 Alibaba Group Holding Ltd. + * + * Licensed 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 com.alibaba.druid.filter.config.loader; import com.alibaba.druid.support.logging.Log; @@ -58,7 +73,7 @@ public class ConfigLoaderFactory { for (String key : p.stringPropertyNames()) { String clazzName = p.getProperty(key); System.out.println(clazzName); - Class clazz = classLoader.loadClass(clazzName); + Class clazz = classLoader.loadClass(clazzName); ConfigLoader configLoader = (ConfigLoader) clazz.newInstance(); addConfigLoader(configLoader); diff --git a/src/main/java/com/alibaba/druid/filter/config/loader/impl/FileConfigLoader.java b/src/main/java/com/alibaba/druid/filter/config/loader/impl/FileConfigLoader.java index 6a03eeba58..c60ecf867f 100644 --- a/src/main/java/com/alibaba/druid/filter/config/loader/impl/FileConfigLoader.java +++ b/src/main/java/com/alibaba/druid/filter/config/loader/impl/FileConfigLoader.java @@ -1,3 +1,18 @@ +/* + * Copyright 1999-2011 Alibaba Group Holding Ltd. + * + * Licensed 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 com.alibaba.druid.filter.config.loader.impl; import com.alibaba.druid.filter.config.loader.ConfigLoader; diff --git a/src/main/java/com/alibaba/druid/filter/config/loader/impl/HttpConfigLoader.java b/src/main/java/com/alibaba/druid/filter/config/loader/impl/HttpConfigLoader.java index 5eeb45edb4..19ae01f14c 100644 --- a/src/main/java/com/alibaba/druid/filter/config/loader/impl/HttpConfigLoader.java +++ b/src/main/java/com/alibaba/druid/filter/config/loader/impl/HttpConfigLoader.java @@ -1,3 +1,18 @@ +/* + * Copyright 1999-2011 Alibaba Group Holding Ltd. + * + * Licensed 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 com.alibaba.druid.filter.config.loader.impl; import com.alibaba.druid.filter.config.loader.ConfigLoader; diff --git a/src/main/java/com/alibaba/druid/filter/config/security/decrypter/AbstractDecrypter.java b/src/main/java/com/alibaba/druid/filter/config/security/decrypter/AbstractDecrypter.java index a58c94ceaa..3c2ff942dd 100644 --- a/src/main/java/com/alibaba/druid/filter/config/security/decrypter/AbstractDecrypter.java +++ b/src/main/java/com/alibaba/druid/filter/config/security/decrypter/AbstractDecrypter.java @@ -1,3 +1,18 @@ +/* + * Copyright 1999-2011 Alibaba Group Holding Ltd. + * + * Licensed 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 com.alibaba.druid.filter.config.security.decrypter; import com.alibaba.druid.util.Base64; diff --git a/src/main/java/com/alibaba/druid/filter/config/security/decrypter/DecryptException.java b/src/main/java/com/alibaba/druid/filter/config/security/decrypter/DecryptException.java index 450450b137..c2d755a59e 100644 --- a/src/main/java/com/alibaba/druid/filter/config/security/decrypter/DecryptException.java +++ b/src/main/java/com/alibaba/druid/filter/config/security/decrypter/DecryptException.java @@ -1,3 +1,18 @@ +/* + * Copyright 1999-2011 Alibaba Group Holding Ltd. + * + * Licensed 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 com.alibaba.druid.filter.config.security.decrypter; /** @@ -6,6 +21,8 @@ package com.alibaba.druid.filter.config.security.decrypter; * @author Jonas Yang */ public class DecryptException extends Exception { + private static final long serialVersionUID = 1L; + public DecryptException() { super(); } diff --git a/src/main/java/com/alibaba/druid/filter/config/security/decrypter/Decrypter.java b/src/main/java/com/alibaba/druid/filter/config/security/decrypter/Decrypter.java index a922806f0c..8a8c82f3ce 100644 --- a/src/main/java/com/alibaba/druid/filter/config/security/decrypter/Decrypter.java +++ b/src/main/java/com/alibaba/druid/filter/config/security/decrypter/Decrypter.java @@ -1,3 +1,18 @@ +/* + * Copyright 1999-2011 Alibaba Group Holding Ltd. + * + * Licensed 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 com.alibaba.druid.filter.config.security.decrypter; import java.util.Properties; diff --git a/src/main/java/com/alibaba/druid/filter/config/security/decrypter/DecrypterFactory.java b/src/main/java/com/alibaba/druid/filter/config/security/decrypter/DecrypterFactory.java index 93dc6d389d..0a061d6f4a 100644 --- a/src/main/java/com/alibaba/druid/filter/config/security/decrypter/DecrypterFactory.java +++ b/src/main/java/com/alibaba/druid/filter/config/security/decrypter/DecrypterFactory.java @@ -1,3 +1,18 @@ +/* + * Copyright 1999-2011 Alibaba Group Holding Ltd. + * + * Licensed 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 com.alibaba.druid.filter.config.security.decrypter; import com.alibaba.druid.support.logging.Log; diff --git a/src/main/java/com/alibaba/druid/filter/config/security/decrypter/RsaDecrypter.java b/src/main/java/com/alibaba/druid/filter/config/security/decrypter/RsaDecrypter.java index 0203a5f9d5..114ec7c19a 100644 --- a/src/main/java/com/alibaba/druid/filter/config/security/decrypter/RsaDecrypter.java +++ b/src/main/java/com/alibaba/druid/filter/config/security/decrypter/RsaDecrypter.java @@ -1,3 +1,18 @@ +/* + * Copyright 1999-2011 Alibaba Group Holding Ltd. + * + * Licensed 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 com.alibaba.druid.filter.config.security.decrypter; import com.alibaba.druid.support.logging.Log; diff --git a/src/main/java/com/alibaba/druid/filter/config/security/decrypter/SensitiveParameters.java b/src/main/java/com/alibaba/druid/filter/config/security/decrypter/SensitiveParameters.java index 473f1baf22..d53a0061f6 100644 --- a/src/main/java/com/alibaba/druid/filter/config/security/decrypter/SensitiveParameters.java +++ b/src/main/java/com/alibaba/druid/filter/config/security/decrypter/SensitiveParameters.java @@ -1,3 +1,18 @@ +/* + * Copyright 1999-2011 Alibaba Group Holding Ltd. + * + * Licensed 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 com.alibaba.druid.filter.config.security.decrypter; /**