[RM] Fix using service settings for codec settings.
MODIFY
BackEnd/Core/sailfish-core/src/main/java/com/exactpro/sf/services/mina/AbstractMINATCPServer.java
BackEnd/Core/sailfish-core/src/main/java/com/exactpro/sf/services/mina/AbstractMINATCPServer.java
@@ -32,6 +32,7 @@ import org.apache.mina.filter.codec.ProtocolCodecFilter;
import com.exactpro.sf.common.codecs.AbstractCodec;
import com.exactpro.sf.common.codecs.CodecFactory;
import com.exactpro.sf.common.messages.IMessage;
+import com.exactpro.sf.common.util.ICommonSettings;
import com.exactpro.sf.services.AbstractInitiatorService;
import com.exactpro.sf.services.IAcceptorService;
import com.exactpro.sf.services.ISession;
@@ -66,7 +67,7 @@ public abstract class AbstractMINATCPServer extends AbstractInitiatorService imp
throw new ServiceException("Can`t configure server`s acceptor", e);
}
- CodecFactory codecFactory = new CodecFactory(serviceContext, messageFactory, dictionary, getCodecClass(), getSettings());
+ CodecFactory codecFactory = new CodecFactory(serviceContext, messageFactory, dictionary, getCodecClass(), getCodecSettings());
tmpAcceptor.setHandler(this);
tmpAcceptor.getFilterChain().addLast("codec", new ProtocolCodecFilter(codecFactory));
tmpAcceptor.bind(new InetSocketAddress(getSettings().getHost(), getSettings().getPort()));
@@ -75,6 +76,10 @@ public abstract class AbstractMINATCPServer extends AbstractInitiatorService imp
serverSession.set(createServerSession());
}
+ protected ICommonSettings getCodecSettings() {
+ return getSettings();
+ }
+
@Override
public AbstractMINATCPServerSettings getSettings() {
return (AbstractMINATCPServerSettings) settings;

[RM] #61731. Fix using service settings for codec settings.

Change-Id: Ia61fc69e78b681ab4a721fa7d1bea765de97e4de