All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dingtalk.open.app.api.protocol.MessageConverterMapping Maven / Gradle / Ivy

There is a newer version: 1.3.7
Show newest version
package com.dingtalk.open.app.api.protocol;

import com.dingtalk.open.app.stream.protocol.ContentType;

import java.util.HashMap;
import java.util.Map;

/**
 * @author feiyin
 * @date 2023/3/7
 */
public class MessageConverterMapping {

    private static final Map MAPPING = new HashMap<>();

    static {
        MAPPING.put(ContentType.APPLICATION_JSON, new JsonMessageConverter());
    }

    public static MessageConverter getConverter(ContentType contentType) {
        return MAPPING.get(contentType);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy