1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.esigate.events.impl;
17
18 import org.apache.http.client.methods.CloseableHttpResponse;
19 import org.esigate.HttpErrorPage;
20 import org.esigate.events.Event;
21 import org.esigate.http.IncomingRequest;
22
23
24
25
26
27
28
29 public class ProxyEvent extends Event {
30
31
32
33 private final IncomingRequest originalRequest;
34
35
36
37
38 private CloseableHttpResponse response = null;
39
40
41
42
43 private HttpErrorPage errorPage = null;
44
45 public ProxyEvent(IncomingRequest originalRequest) {
46 this.originalRequest = originalRequest;
47 }
48
49 public CloseableHttpResponse getResponse() {
50 return response;
51 }
52
53 public void setResponse(CloseableHttpResponse response) {
54 this.response = response;
55 }
56
57 public HttpErrorPage getErrorPage() {
58 return errorPage;
59 }
60
61 public void setErrorPage(HttpErrorPage errorPage) {
62 this.errorPage = errorPage;
63 }
64
65 public IncomingRequest getOriginalRequest() {
66 return originalRequest;
67 }
68 }