| 151 | // Determines the User-Agent header, based on the client version, language version, and custom |
| 152 | // app information. |
| 153 | private String buildUserAgent() { |
| 154 | String userAgent = String.format("amadeus-java/%s", clientVersion); |
| 155 | userAgent = userAgent.concat(String.format(" java/%s", languageVersion)); |
| 156 | if (appId != null) { |
| 157 | userAgent = userAgent.concat(String.format(" %s/%s", appId, appVersion)); |
| 158 | } |
| 159 | return userAgent; |
| 160 | } |
| 161 | |
| 162 | // Gets the serialized params, only if this is a Get call |
| 163 | private String getQueryParams() { |