28293031323334
private RequestStack stack; public DefaultHttpRequest(URI uri, RestClient client) { this.uri = uri; this.client = client; this.stack = new RequestStack(client); }
3233343536373839
this.client = client; this.stack = new RequestStack(client); } private Response sendPayload(Object payload, String verb) { RequestStack stack = createStack(); return stack.process(this, verb, uri, payload); }
979899100101102103104
this.headers.putAll(headers); return this; } public Response access() { RequestStack stack = createStack(); return stack.process(this, verb, uri, null); }
30313233343536
3435363738394041
99100101102103104105106
private final ExecutorService threads; public DefaultHttpRequest(URI uri, RestClient client) { this.uri = uri; this.client = client; this.stack = new RequestStack(client); this.threads = client.getThreads(); }
3738394041424344
this.stack = new RequestStack(client); this.threads = client.getThreads(); } private Response sendPayload(Object payload, String verb) { RequestStack stack = createStack(); return stack.process(this, verb, uri, payload); }
118119120121122123124125