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

com.aliyun.datahub.model.serialize.ListTopicRequestJsonSer Maven / Gradle / Ivy

There is a newer version: 2.25.6
Show newest version
package com.aliyun.datahub.model.serialize;

import com.aliyun.datahub.common.transport.DefaultRequest;
import com.aliyun.datahub.common.transport.HttpMethod;
import com.aliyun.datahub.exception.DatahubClientException;
import com.aliyun.datahub.model.ListTopicRequest;

public class ListTopicRequestJsonSer implements Serializer {
    @Override
    public DefaultRequest serialize(ListTopicRequest request) throws DatahubClientException {
        DefaultRequest req = new DefaultRequest();
        req.setResource("/projects/" + request.getProjectName() + "/topics");
        req.setHttpMethod(HttpMethod.GET);
        return req;
    }

    private ListTopicRequestJsonSer() {

    }

    private static ListTopicRequestJsonSer instance;

    public static ListTopicRequestJsonSer getInstance() {
        if (instance == null)
            instance = new ListTopicRequestJsonSer();
        return instance;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy