1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package org.miloss.fgsms.agentcore;
23
24 import org.miloss.fgsms.common.Constants;
25 import org.apache.log4j.Level;
26 import org.miloss.fgsms.common.Logger;
27
28
29
30
31
32
33
34 public class ApacheCxfSslHelper {
35
36 private static final Logger log = Logger.getLogger(org.miloss.fgsms.common.Constants.LoggerName);
37
38 public static void doCXF(Object webserviceclient, ConfigLoader cfg) {
39
40 try {
41
42 Class<?> loadClass = Thread.currentThread().getContextClassLoader().loadClass("org.apache.cxf.transport.http.HTTPConduit");
43 if (loadClass == null) {
44 return;
45 }
46 Class<?> loadClass2 = Thread.currentThread().getContextClassLoader().loadClass("org.apache.cxf.common.i18n.UncheckedException");
47 if (loadClass2 == null) {
48 return;
49 }
50 log.log(Level.INFO, "CXF stack detected, adding SSL information");
51
52 ApacheCxfSSlHelperGo.doCXF(webserviceclient, cfg);
53 } catch (ClassNotFoundException ex) {
54 log.log(Level.DEBUG, "CXF stack not found, most likely this is ignorable", ex);
55 } catch (NoClassDefFoundError ex) {
56 log.log(Level.DEBUG, "CXF stack not found, most likely this is ignorable", ex);
57
58 }
59 }
60 }