final @NotNull Codec defaultCodec)
throws IOException, ServiceChannelException {
if (logger.isLoggable(Level.FINEST)) {
logger.log(Level.FINEST, MessagesMessages.WSTCP_1036_CONNECTION_MANAGER_DO_OPEN_CHANNEL_ENTER());
}
final ServiceChannelWSImpl serviceChannelWSImplPort = getSessionServiceChannel(connectionSession);
// Send to server possible mime types and parameters
final BindingUtils.NegotiatedBindingContent negotiatedContent = BindingUtils.getNegotiatedContentTypesAndParams(wsBinding);
if (logger.isLoggable(Level.FINEST)) {
logger.log(Level.FINEST, MessagesMessages.WSTCP_1037_CONNECTION_MANAGER_DO_OPEN_WS_CALL(targetWSURI, negotiatedContent.negotiatedMimeTypes, negotiatedContent.negotiatedParams));
}
Holder<List<String>> negotiatedMimeTypesHolder = new Holder<List<String>>(negotiatedContent.negotiatedMimeTypes);
Holder<List<String>> negotiatedParamsHolder = new Holder<List<String>>(negotiatedContent.negotiatedParams);
final int channelId = serviceChannelWSImplPort.openChannel(targetWSURI.toString(),
negotiatedMimeTypesHolder,
negotiatedParamsHolder);
ChannelSettings settings = new ChannelSettings(negotiatedMimeTypesHolder.value,
negotiatedParamsHolder.value, channelId, wsService.getServiceName(), targetWSURI);