MCPcopy Index your code
hub / github.com/amadeus4dev/amadeus-java / Request

Method Request

src/main/java/com/amadeus/Request.java:86–106  ·  view source on GitHub ↗
(HttpVerbs verb, String path, Params params, String body, String bearerToken,
                 HTTPClient client)

Source from the content-addressed store, hash-verified

84 private @Getter HttpURLConnection connection;
85
86 protected Request(HttpVerbs verb, String path, Params params, String body, String bearerToken,
87 HTTPClient client) {
88 Configuration config = client.getConfiguration();
89
90 this.verb = verb;
91 this.host = config.getHost();
92 this.path = path;
93 this.params = params;
94 this.body = body;
95 this.bearerToken = bearerToken;
96 this.languageVersion = System.getProperty("java.version");
97 this.clientVersion = Amadeus.VERSION;
98 this.appId = config.getCustomAppId();
99 this.appVersion = config.getCustomAppVersion();
100 this.port = config.getPort();
101 this.ssl = config.isSsl();
102
103 determineScheme();
104 prepareUrl();
105 prepareHeaders();
106 }
107
108 // Builds a HttpURLConnection using all the data for this request.
109 protected void establishConnection() throws IOException {

Callers

nothing calls this directly

Calls 3

determineSchemeMethod · 0.95
prepareUrlMethod · 0.95
prepareHeadersMethod · 0.95

Tested by

no test coverage detected