private void generateOffsetInfo(List<OffsetInfo> offsetPerBroker,
            TubeHttpTopicInfoList.TopicInfoList.TopicInfo topicInfo,
            OffsetQueryRes res) {
        OffsetInfo offsetInfo = new OffsetInfo();
        offsetInfo.setBrokerId(topicInfo.getBrokerId());
        offsetInfo.setBrokerIp(topicInfo.getBrokerIp());
        if (TubeConst.SUCCESS_CODE == res.getErrCode()) {
            List<GroupOffsetRes> dataSet = res.getDataSet();
            for (GroupOffsetRes groupOffsetRes : dataSet) {
                for (TopicOffsetRes topicOffsetRes : groupOffsetRes.getSubInfo()) {
                    List<OffsetPartitionRes> offsets = topicOffsetRes.getOffsets();
                    offsetInfo.setOffsets(offsets);
                }
            }
            offsetPerBroker.add(offsetInfo);
        }
    }
Validates if the provided URL string is in a valid URL format.

@param url The URL string to be validated.
@return True if the URL is in a valid format, otherwise false.
inlong-tubemq/tubemq-manager/src/main/java/org/apache/inlong/tubemq/manager/service/TopicServiceImpl.java