MCPcopy Create free account
hub / github.com/amadeus4dev/amadeus-java / buildUserAgent

Method buildUserAgent

src/main/java/com/amadeus/Request.java:153–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers 1

prepareHeadersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected