Home
last modified time | relevance | path

Searched refs:getContentType (Results 1 – 25 of 31) sorted by relevance

12

/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/internal/net/www/protocol/file/
DFileURLConnectionTest.java32 static String getContentType(String fileName) throws IOException { in getContentType() method in FileURLConnectionTest
36 return new FileURLConnection(url).getContentType(); in getContentType()
41 assertEquals("application/rtf", getContentType("test.rtf")); in testGetContentType()
42 assertEquals("text/plain", getContentType("test.java")); in testGetContentType()
44 assertEquals("application/msword", getContentType("test.doc")); in testGetContentType()
45 assertEquals("text/html", getContentType("test.htx")); in testGetContentType()
46 assertEquals("application/xml", getContentType("test.xml")); in testGetContentType()
47 assertEquals("text/plain", getContentType(".")); in testGetContentType()
73 assertEquals(conn.getContentType(), conn.getHeaderField("content-type")) ; in testHeaderFunctions()
79 assertEquals(conn.getContentType(), conn.getHeaderField("content-type")) ; in testHeaderFunctions()
/external/nist-sip/java/gov/nist/javax/sip/header/
DContentType.java150 public String getContentType() { in getContentType() method in ContentType
215 return this.getContentType().equalsIgnoreCase( o.getContentType() ) in equals()
DAccept.java115 public String getContentType() { in getContentType() method in Accept
/external/apache-http/src/org/apache/http/entity/
DHttpEntityWrapper.java86 public Header getContentType() { in getContentType() method in HttpEntityWrapper
87 return wrappedEntity.getContentType(); in getContentType()
DAbstractHttpEntity.java93 public Header getContentType() { in getContentType() method in AbstractHttpEntity
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
DURLConnectionTest.java80 static String getContentType(String fileName) throws IOException {
84 return url.openConnection().getContentType();
223 assertEquals("application/rtf", getContentType("test.rtf"));
224 assertEquals("text/plain", getContentType("test.java"));
226 assertEquals("application/msword", getContentType("test.doc"));
227 assertEquals("text/html", getContentType("test.htx"));
228 assertEquals("application/xml", getContentType("test.xml"));
229 assertEquals("text/plain", getContentType("."));
DJarURLConnectionTest.java295 u.openConnection().getContentType()); in test_getContentType()
300 "image/bmp", u.openConnection().getContentType()); in test_getContentType()
305 "content/unknown", u.openConnection().getContentType()); in test_getContentType()
/external/apache-http/src/org/apache/http/protocol/
DRequestContent.java89 if (entity.getContentType() != null && !request.containsHeader( in process()
91 request.addHeader(entity.getContentType()); in process()
DResponseContent.java82 if (entity.getContentType() != null && !response.containsHeader( in process()
84 response.addHeader(entity.getContentType()); in process()
/external/apache-http/src/org/apache/http/util/
DEntityUtils.java95 if (entity.getContentType() != null) { in getContentCharSet()
96 HeaderElement values[] = entity.getContentType().getElements(); in getContentCharSet()
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
DCMSSignedData.java229 … ASN1ObjectIdentifier contentType = signedData.getEncapContentInfo().getContentType(); in getSignerInfos()
498 return signedData.getEncapContentInfo().getContentType().getId(); in getSignedContentTypeOID()
594 cms.contentInfo = new ContentInfo(cms.contentInfo.getContentType(), cms.signedData); in replaceSigners()
664 cms.contentInfo = new ContentInfo(cms.contentInfo.getContentType(), cms.signedData); in replaceCertificatesAndCRLs()
741 cms.contentInfo = new ContentInfo(cms.contentInfo.getContentType(), cms.signedData); in replaceCertificatesAndCRLs()
DCMSTypedData.java8 ASN1ObjectIdentifier getContentType(); in getContentType() method
DCMSAbsentContent.java45 public ASN1ObjectIdentifier getContentType() in getContentType() method in CMSAbsentContent
DCMSSignedDataGenerator.java526 public ASN1ObjectIdentifier getContentType() in generate()
564 …return this.generate(((CMSTypedData)content).getContentType().getId(), content, encapsulate, sigPr…
587 …return this.generate(((CMSTypedData)content).getContentType().getId(), content, encapsulate, sigPr…
663 ASN1ObjectIdentifier contentTypeOID = content.getContentType();
DCMSProcessableByteArray.java50 public ASN1ObjectIdentifier getContentType() in getContentType() method in CMSProcessableByteArray
/external/nist-sip/java/javax/sip/header/
DMediaType.java9 String getContentType(); in getContentType() method
/external/apache-http/src/org/apache/http/
DHttpEntity.java117 Header getContentType(); in getContentType() method
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/cms/
DContentInfo.java67 public ASN1ObjectIdentifier getContentType() in getContentType() method in ContentInfo
DSignedData.java55 … this.version = calculateVersion(contentInfo.getContentType(), certificates, crls, signerInfos); in SignedData()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
DContentInfo.java63 public ASN1ObjectIdentifier getContentType() in getContentType() method in ContentInfo
DEncryptedData.java84 public ASN1ObjectIdentifier getContentType() in getContentType() method in EncryptedData
/external/okhttp/src/main/java/libcore/net/http/
DHttpsURLConnectionImpl.java195 public String getContentType() { in getContentType() method in HttpsURLConnectionImpl
196 return delegate.getContentType(); in getContentType()
/external/oauth/core/src/main/java/net/oauth/client/
DURLConnectionResponse.java90 .getContentType())); in getHeaders()
/external/nist-sip/java/gov/nist/javax/sip/message/
DMultipartMimeContentImpl.java160 if (content.getContentTypeHeader().getContentType().equalsIgnoreCase(contentType) in getContentByType()
/external/apache-http/src/org/apache/http/client/utils/
DURLEncodedUtils.java113 final Header contentType = entity.getContentType(); in isEncoded()

12