com.aliyun.datahub.model.serialize.AppendDataConnectorFieldResultJsonDeser 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.AppendDataConnectorFieldRequest;
import com.aliyun.datahub.model.AppendDataConnectorFieldResult;
import com.aliyun.datahub.rest.DatahubHttpHeaders;
public class AppendDataConnectorFieldResultJsonDeser implements Deserializer {
@Override
public AppendDataConnectorFieldResult deserialize(AppendDataConnectorFieldRequest request, Response response) throws DatahubServiceException {
if (!response.isOK()) {
throw JsonErrorParser.getInstance().parse(response);
}
AppendDataConnectorFieldResult rs = new AppendDataConnectorFieldResult();
rs.setRequestId(response.getHeader(DatahubHttpHeaders.HEADER_DATAHUB_REQUEST_ID));
return rs;
}
private AppendDataConnectorFieldResultJsonDeser() {
}
private static AppendDataConnectorFieldResultJsonDeser instance;
public static AppendDataConnectorFieldResultJsonDeser getInstance() {
if (instance == null)
instance = new AppendDataConnectorFieldResultJsonDeser();
return instance;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy