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
28 package org.apache.hc.core5.http.message;
29
30 import java.net.URI;
31 import java.net.URISyntaxException;
32
33 import org.apache.hc.core5.http.HttpRequest;
34 import org.apache.hc.core5.net.URIAuthority;
35
36
37
38
39 public class HttpRequestWrapper extends AbstractMessageWrapper implements HttpRequest {
40
41 private final HttpRequest message;
42
43 public HttpRequestWrapper(final HttpRequest message) {
44 super(message);
45 this.message = message;
46 }
47
48 @Override
49 public String getMethod() {
50 return message.getMethod();
51 }
52
53 @Override
54 public String getPath() {
55 return message.getPath();
56 }
57
58 @Override
59 public void setPath(final String path) {
60 message.setPath(path);
61 }
62
63 @Override
64 public String getScheme() {
65 return message.getScheme();
66 }
67
68 @Override
69 public void setScheme(final String scheme) {
70 message.setScheme(scheme);
71 }
72
73 @Override
74 public URIAuthority getAuthority() {
75 return message.getAuthority();
76 }
77
78 @Override
79 public void setAuthority(final URIAuthority authority) {
80 message.setAuthority(authority);
81 }
82
83 @Override
84 public String getRequestUri() {
85 return message.getRequestUri();
86 }
87
88 @Override
89 public URI getUri() throws URISyntaxException {
90 return message.getUri();
91 }
92
93 @Override
94 public void setUri(final URI requestUri) {
95 message.setUri(requestUri);
96 }
97
98 }