|
27 | 27 | import org.apache.axis2.context.MessageContext; |
28 | 28 | import org.apache.axis2.context.OperationContext; |
29 | 29 | import org.apache.axis2.builder.Builder; |
30 | | -import org.apache.axis2.description.AxisConfiguration; |
| 30 | +import org.apache.axis2.engine.AxisConfiguration; |
31 | 31 | import org.apache.axis2.description.HandlerDescription; |
32 | 32 | import org.apache.axis2.description.TransportOutDescription; |
| 33 | +import org.apache.axis2.engine.Handler; |
33 | 34 | import org.apache.axis2.engine.Phase; |
34 | 35 | import org.apache.axis2.kernel.MessageFormatter; |
35 | 36 | import org.apache.axis2.kernel.http.HTTPConstants; |
@@ -543,10 +544,10 @@ private String detectConfiguredJsonLibrary(ConfigurationContext configContext) { |
543 | 544 | java.util.List<Phase> inFlowPhases = axisConfig.getInFlowPhases(); |
544 | 545 | for (Phase phase : inFlowPhases) { |
545 | 546 | if ("Transport".equals(phase.getName())) { |
546 | | - java.util.List<HandlerDescription> handlers = phase.getHandlers(); |
547 | | - for (HandlerDescription handler : handlers) { |
| 547 | + java.util.List<Handler> handlers = phase.getHandlers(); |
| 548 | + for (Handler handler : handlers) { |
548 | 549 | if ("JSONMessageHandler".equals(handler.getName())) { |
549 | | - String handlerClass = handler.getClassName(); |
| 550 | + String handlerClass = handler.getHandlerDesc().getClassName(); |
550 | 551 | if (handlerClass.contains(".json.moshi.")) { |
551 | 552 | log.debug("Detected Moshi JSONMessageHandler: " + handlerClass); |
552 | 553 | return "MOSHI"; |
|
0 commit comments