forked from sendgrid/sendgrid-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContentType.java
More file actions
93 lines (75 loc) · 2.62 KB
/
ContentType.java
File metadata and controls
93 lines (75 loc) · 2.62 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
package com.sendgrid;
/**
* Content type enumeration.
* @author Marcos Barbero
*/
public class ContentType {
/**
* Public constant media type that includes all media ranges (i.e. "*/*").
*/
public static final String ALL = "*/*";
/**
* Public constant media type for {@code application/atom+xml}.
*/
public final static String APPLICATION_ATOM_XML = "application/atom+xml";
/**
* Public constant media type for {@code application/x-www-form-urlencoded}.
*/
public final static String APPLICATION_FORM_URLENCODED = "application/x-www-form-urlencoded";
/**
* Public constant media type for {@code application/json}.
*/
public final static String APPLICATION_JSON = "application/json";
/**
* Public constant media type for {@code application/json;charset=UTF-8}.
*/
public final static String APPLICATION_JSON_UTF8 = APPLICATION_JSON + ";charset=UTF-8";
/**
* Public constant media type for {@code application/octet-stream}.
*/
public final static String APPLICATION_OCTET_STREAM = "application/octet-stream";
/**
* Public constant media type for {@code application/pdf}.
*/
public final static String APPLICATION_PDF = "application/pdf";
/**
* Public constant media type for {@code application/xhtml+xml}.
*/
public final static String APPLICATION_XHTML_XML = "application/xhtml+xml";
/**
* Public constant media type for {@code application/xml}.
*/
public final static String APPLICATION_XML = "application/xml";
/**
* Public constant media type for {@code image/gif}.
*/
public final static String IMAGE_GIF = "image/gif";
/**
* Public constant media type for {@code image/jpeg}.
*/
public final static String IMAGE_JPEG = "image/jpeg";
/**
* Public constant media type for {@code image/png}.
*/
public final static String IMAGE_PNG = "image/png";
/**
* Public constant media type for {@code multipart/form-data}.
*/
public final static String MULTIPART_FORM_DATA = "multipart/form-data";
/**
* Public constant media type for {@code text/html}.
*/
public final static String TEXT_HTML = "text/html";
/**
* Public constant media type for {@code text/markdown}.
*/
public final static String TEXT_MARKDOWN = "text/markdown";
/**
* Public constant media type for {@code text/plain}.
*/
public final static String TEXT_PLAIN = "text/plain";
/**
* Public constant media type for {@code text/xml}.
*/
public final static String TEXT_XML = "text/xml";
}