1 package com.foxinmy.weixin4j.http.message;
2
3 import java.io.IOException;
4 import java.util.List;
5
6 import com.foxinmy.weixin4j.http.HttpResponse;
7 import com.foxinmy.weixin4j.http.MimeType;
8
9
10
11
12
13
14
15
16
17
18
19 public interface MessageConverter {
20
21
22
23
24
25 public List<MimeType> supportedMimeTypes();
26
27
28
29
30
31
32
33
34
35
36 public boolean canConvert(Class<?> clazz, HttpResponse response);
37
38
39
40
41
42
43
44
45
46
47
48 public <T> T convert(Class<? extends T> clazz, HttpResponse response)
49 throws IOException;
50 }