1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 package org.apache.http.impl.nio.client;
28
29 import java.io.IOException;
30
31 import org.apache.http.HttpException;
32 import org.apache.http.HttpHost;
33 import org.apache.http.HttpRequest;
34 import org.apache.http.HttpResponse;
35 import org.apache.http.nio.ContentDecoder;
36 import org.apache.http.nio.ContentEncoder;
37 import org.apache.http.nio.IOControl;
38
39 interface InternalClientExec {
40
41 void prepare(
42 HttpHost target,
43 HttpRequest original,
44 InternalState state,
45 AbstractClientExchangeHandler handler) throws IOException, HttpException;
46
47 HttpRequest generateRequest(
48 InternalState state,
49 AbstractClientExchangeHandler handler) throws IOException, HttpException;
50
51 void produceContent(
52 InternalState state,
53 ContentEncoder encoder,
54 IOControl ioctrl) throws IOException;
55
56 void requestCompleted(
57 InternalState state,
58 AbstractClientExchangeHandler handler);
59
60 void responseReceived(
61 HttpResponse response,
62 InternalState state,
63 AbstractClientExchangeHandler handler) throws IOException, HttpException;
64
65 void consumeContent(
66 InternalState state,
67 ContentDecoder decoder,
68 IOControl ioctrl) throws IOException;
69
70 void responseCompleted(
71 InternalState state,
72 AbstractClientExchangeHandler handler) throws IOException, HttpException;
73
74 }