1 package org.esigate.events.impl;
2
3 import java.nio.charset.Charset;
4
5 import org.esigate.events.Event;
6
7
8
9
10
11
12
13 public class ReadEntityEvent extends Event {
14
15
16
17 private final String mimeType;
18
19
20
21
22
23
24
25
26 private final Charset charset;
27
28
29
30
31
32 private final byte[] rawEntityContent;
33
34
35
36
37
38
39
40 private String entityContent;
41
42 public ReadEntityEvent(String mimeType, Charset charset, byte[] rawEntityContent) {
43 this.mimeType = mimeType;
44 this.charset = charset;
45 this.rawEntityContent = rawEntityContent;
46 }
47
48 public String getEntityContent() {
49 return entityContent;
50 }
51
52 public void setEntityContent(String entityContent) {
53 this.entityContent = entityContent;
54 }
55
56 public String getMimeType() {
57 return mimeType;
58 }
59
60 public Charset getCharset() {
61 return charset;
62 }
63
64 public byte[] getRawEntityContent() {
65 return rawEntityContent;
66 }
67 }