com.aliyun.datahub.model.serialize.ReloadDataConnectorResultJsonDeser Maven / Gradle / Ivy
package com.aliyun.datahub.model.serialize;
import com.aliyun.datahub.common.transport.Response;
import com.aliyun.datahub.exception.DatahubServiceException;
import com.aliyun.datahub.model.ReloadDataConnectorRequest;
import com.aliyun.datahub.model.ReloadDataConnectorResult;
public class ReloadDataConnectorResultJsonDeser implements Deserializer {
@Override
public ReloadDataConnectorResult deserialize(ReloadDataConnectorRequest request, Response response) throws DatahubServiceException {
if (!response.isOK()) {
throw JsonErrorParser.getInstance().parse(response);
}
return new ReloadDataConnectorResult();
}
private ReloadDataConnectorResultJsonDeser() {
}
private static ReloadDataConnectorResultJsonDeser instance;
public static ReloadDataConnectorResultJsonDeser getInstance() {
if (instance == null)
instance = new ReloadDataConnectorResultJsonDeser();
return instance;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy