blob: e0ec89667fe6bfec8572da645a6aa16769da4102 (
plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
|
package org.simpleframework.http.core;
import org.simpleframework.http.message.Body;
import org.simpleframework.http.message.Entity;
import org.simpleframework.http.message.Header;
import org.simpleframework.transport.Channel;
public class MockEntity implements Entity {
private Body body;
private Header header;
public MockEntity() {
super();
}
public MockEntity(Body body) {
this.body = body;
}
public MockEntity(Body body, Header header) {
this.body = body;
this.header = header;
}
public long getTime() {
return 0;
}
public Body getBody() {
return body;
}
public Header getHeader() {
return header;
}
public Channel getChannel() {
return null;
}
public void close() {}
public long getStart() {
return 0;
}
}
|