1 package org.esigate.events.impl;
2
3 import org.apache.http.client.methods.CloseableHttpResponse;
4 import org.apache.http.client.methods.HttpRequestWrapper;
5 import org.esigate.events.Event;
6 import org.esigate.http.OutgoingRequestContext;
7
8
9
10
11
12
13
14 public class FetchEvent extends Event {
15
16
17
18
19
20
21 private CloseableHttpResponse httpResponse;
22
23
24
25 private final OutgoingRequestContext httpContext;
26
27
28
29 private final HttpRequestWrapper httpRequest;
30
31 public FetchEvent(OutgoingRequestContext httpContext, HttpRequestWrapper httpRequest) {
32 this.httpContext = httpContext;
33 this.httpRequest = httpRequest;
34 }
35
36 public CloseableHttpResponse getHttpResponse() {
37 return httpResponse;
38 }
39
40 public void setHttpResponse(CloseableHttpResponse httpResponse) {
41 this.httpResponse = httpResponse;
42 }
43
44 public OutgoingRequestContext getHttpContext() {
45 return httpContext;
46 }
47
48 public HttpRequestWrapper getHttpRequest() {
49 return httpRequest;
50 }
51
52 }