Skip to content

Commit 4b5e269

Browse files
Fix build
1 parent 5fc693e commit 4b5e269

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

modules/transport-h2/src/main/java/org/apache/axis2/transport/h2/impl/httpclient5/H2TransportSender.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@
2727
import org.apache.axis2.context.MessageContext;
2828
import org.apache.axis2.context.OperationContext;
2929
import org.apache.axis2.builder.Builder;
30-
import org.apache.axis2.description.AxisConfiguration;
30+
import org.apache.axis2.engine.AxisConfiguration;
3131
import org.apache.axis2.description.HandlerDescription;
3232
import org.apache.axis2.description.TransportOutDescription;
33+
import org.apache.axis2.engine.Handler;
3334
import org.apache.axis2.engine.Phase;
3435
import org.apache.axis2.kernel.MessageFormatter;
3536
import org.apache.axis2.kernel.http.HTTPConstants;
@@ -543,10 +544,10 @@ private String detectConfiguredJsonLibrary(ConfigurationContext configContext) {
543544
java.util.List<Phase> inFlowPhases = axisConfig.getInFlowPhases();
544545
for (Phase phase : inFlowPhases) {
545546
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) {
548549
if ("JSONMessageHandler".equals(handler.getName())) {
549-
String handlerClass = handler.getClassName();
550+
String handlerClass = handler.getHandlerDesc().getClassName();
550551
if (handlerClass.contains(".json.moshi.")) {
551552
log.debug("Detected Moshi JSONMessageHandler: " + handlerClass);
552553
return "MOSHI";

0 commit comments

Comments
 (0)