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

com.aliyun.datahub.model.serialize.AppendConnectorFieldResultJsonDeser 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.Response;
import com.aliyun.datahub.exception.DatahubServiceException;
import com.aliyun.datahub.model.AppendConnectorFieldRequest;
import com.aliyun.datahub.model.AppendConnectorFieldResult;

@Deprecated
public class AppendConnectorFieldResultJsonDeser implements Deserializer {
    @Override
    public AppendConnectorFieldResult deserialize(AppendConnectorFieldRequest request, Response response) throws DatahubServiceException {
        if (!response.isOK()) {
            throw JsonErrorParser.getInstance().parse(response);
        }
        return new AppendConnectorFieldResult();
    }

    private AppendConnectorFieldResultJsonDeser() {

    }

    private static AppendConnectorFieldResultJsonDeser instance;

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy