Lines Matching defs:contentType
89 public String contentType = null;
222 if (!TextUtils.equals(header.contentType, TYPE_MULTIPART_MIXED)) {
223 throw new IOException("Invalid content type: " + header.contentType);
273 if (!TextUtils.equals(header.contentType, TYPE_PASSPOINT_PROFILE) &&
274 !TextUtils.equals(header.contentType, TYPE_CA_CERT) &&
275 !TextUtils.equals(header.contentType, TYPE_PKCS12)) {
276 throw new IOException("Unexpected content type: " + header.contentType);
299 part.type = header.contentType;
323 header.contentType = value.first;
344 * @param contentType The Content-Type value string
348 private static Pair<String, String> parseContentType(String contentType) throws IOException {
349 String[] attributes = contentType.split(";");
354 throw new IOException("Invalid Content-Type: " + contentType);