wuxw7
2018-07-02 fec26dfca0c796c2c9d4cd3c206affa0bc06c281
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
29
30
31
32
33
34
35
36
package com.java110.event.center.event;
 
import com.java110.core.context.DataFlow;
 
import java.util.Map;
 
/**
 * 请求进来事件
 * Created by wuxw on 2018/7/2.
 */
public class ReceiveRequestEvent extends DataFlowEvent {
 
    private final String requestData;
    private final Map<String,String> headers;
    /**
     * Constructs a prototypical Event.
     *
     * @param source   The object on which the Event initially occurred.
     * @param dataFlow
     * @throws IllegalArgumentException if source is null.
     */
    public ReceiveRequestEvent(Object source, DataFlow dataFlow,
                               String requestData, Map<String,String> headers) {
        super(source, dataFlow);
        this.requestData = requestData;
        this.headers = headers;
    }
 
    public String getRequestData() {
        return requestData;
    }
 
    public Map<String, String> getHeaders() {
        return headers;
    }
}