File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 238238 <dependency >
239239 <groupId >com.gooddata</groupId >
240240 <artifactId >gooddata-rest-common</artifactId >
241- <version >1.0.1 </version >
241+ <version >1.2.0 </version >
242242 </dependency >
243243 <dependency >
244244 <groupId >com.gooddata</groupId >
Original file line number Diff line number Diff line change 1212import com .gooddata .dataload .processes .ProcessService ;
1313import com .gooddata .export .ExportService ;
1414import com .gooddata .featureflag .FeatureFlagService ;
15+ import com .gooddata .gdc .Header ;
1516import com .gooddata .md .maintenance .ExportImportService ;
1617import com .gooddata .notification .NotificationService ;
1718import com .gooddata .projecttemplate .ProjectTemplateService ;
5859 */
5960public class GoodData {
6061
61- public static final String GDC_REQUEST_ID_HEADER = "X-GDC-REQUEST" ;
62+ /**
63+ * @deprecated use {@link Header#GDC_REQUEST_ID} instead.
64+ */
65+ @ Deprecated
66+ public static final String GDC_REQUEST_ID_HEADER = Header .GDC_REQUEST_ID ;
6267
6368 protected static final String PROTOCOL = GoodDataEndpoint .PROTOCOL ;
6469 protected static final int PORT = GoodDataEndpoint .PORT ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 77
88import com .gooddata .GoodDataRestException ;
99import com .gooddata .gdc .ErrorStructure ;
10+ import com .gooddata .gdc .Header ;
1011import org .springframework .http .client .ClientHttpResponse ;
1112import org .springframework .http .converter .HttpMessageConversionException ;
1213import org .springframework .http .converter .HttpMessageConverter ;
1718import java .io .IOException ;
1819import java .util .List ;
1920
20- import static com .gooddata .GoodData .GDC_REQUEST_ID_HEADER ;
2121import static com .gooddata .util .Validate .noNullElements ;
2222
2323/**
@@ -39,7 +39,7 @@ public void handleError(ClientHttpResponse response) {
3939 error = gdcErrorExtractor .extractData (response );
4040 } catch (RestClientException | IOException | HttpMessageConversionException ignored ) {
4141 }
42- final String requestId = response .getHeaders ().getFirst (GDC_REQUEST_ID_HEADER );
42+ final String requestId = response .getHeaders ().getFirst (Header . GDC_REQUEST_ID );
4343 int statusCode ;
4444 try {
4545 statusCode = response .getRawStatusCode ();
You can’t perform that action at this time.
0 commit comments