|
15 | 15 | */ |
16 | 16 | package com.vonage.client.meetings; |
17 | 17 |
|
18 | | -import com.fasterxml.jackson.annotation.JsonGetter; |
19 | 18 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
20 | 19 | import com.fasterxml.jackson.annotation.JsonProperty; |
21 | | -import com.fasterxml.jackson.annotation.JsonSetter; |
22 | | -import com.vonage.client.VonageResponseParseException; |
23 | | -import javax.activation.MimeType; |
24 | | -import javax.activation.MimeTypeParseException; |
25 | 20 | import java.net.URI; |
26 | 21 |
|
27 | 22 | @JsonIgnoreProperties(ignoreUnknown = true) |
@@ -55,32 +50,22 @@ public Fields getFields() { |
55 | 50 | @JsonIgnoreProperties(ignoreUnknown = true) |
56 | 51 | public static class Fields { |
57 | 52 | private LogoType logoType; |
58 | | - private MimeType contentType; |
59 | | - private String key, bucket, policy, amzDate, amzAlgorithm, amzCredential, amzSecurityToken, amzSignature; |
| 53 | + private String contentType, key, bucket, policy, |
| 54 | + amzDate, amzAlgorithm, amzCredential, amzSecurityToken, amzSignature; |
60 | 55 |
|
61 | 56 | protected Fields() { |
62 | 57 | } |
63 | 58 |
|
64 | 59 | /** |
65 | 60 | * MIME type of the content. |
66 | 61 | * |
67 | | - * @return The image type. |
| 62 | + * @return The image type as a string. |
68 | 63 | */ |
69 | | - @JsonGetter("Content-Type") |
70 | | - public MimeType getContentType() { |
| 64 | + @JsonProperty("Content-Type") |
| 65 | + public String getContentType() { |
71 | 66 | return contentType; |
72 | 67 | } |
73 | 68 |
|
74 | | - @JsonSetter("Content-Type") |
75 | | - protected void setContentType(String contentType) { |
76 | | - try { |
77 | | - this.contentType = contentType != null ? new MimeType(contentType) : null; |
78 | | - } |
79 | | - catch (MimeTypeParseException ex) { |
80 | | - throw new VonageResponseParseException("Invalid MIME type: "+contentType, ex); |
81 | | - } |
82 | | - } |
83 | | - |
84 | 69 | /** |
85 | 70 | * Logo's key in storage system. |
86 | 71 | * |
|
0 commit comments