Searched defs:contentType (Results 1 - 12 of 12) sorted by relevance

/libcore/dom/src/test/java/org/w3c/domts/
H A DDOMTestIncompatibleException.java62 String contentType) {
67 buf.append(contentType);
61 incompatibleLoad(String href, String contentType) argument
H A DDOMTest.java132 public String getResourceURI(String href, String scheme, String contentType) throws argument
145 if ("application/pdf".equals(contentType)) {
214 public void preload(String contentType, String docURI, boolean willBeModified) throws argument
216 if ("text/html".equals(contentType) ||
217 "application/xhtml+xml".equals(contentType)) {
219 throw DOMTestIncompatibleException.incompatibleLoad(docURI, contentType);
/libcore/ojluni/src/main/java/sun/net/
H A DProgressEvent.java40 private String contentType; field in class:ProgressEvent
53 public ProgressEvent(ProgressSource source, URL url, String method, String contentType, ProgressSource.State state, long progress, long expected) { argument
57 this.contentType = contentType;
84 return contentType;
111 + ", content-type=" + contentType + ", progress=" + progress + ", expected=" + expected + "]";
H A DProgressSource.java43 private String contentType; field in class:ProgressSource
72 this.contentType = "content/unknown";
115 return contentType;
120 contentType = ct;
208 + ", content-type=" + contentType + ", progress=" + progress + ", expected=" + expected + "]";
/libcore/luni/src/test/java/tests/org/w3c/dom/
H A DDOMTestCase.java40 public void preload(String contentType, String docURI, argument
42 if ("text/html".equals(contentType)
43 || "application/xhtml+xml".equals(contentType)) {
/libcore/ojluni/src/main/java/sun/net/www/
H A DURLConnection.java46 private String contentType; field in class:URLConnection
148 if (contentType == null)
149 contentType = getHeaderField("content-type");
150 if (contentType == null) {
183 return contentType;
194 contentType = type;
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/
H A DFileURLConnection.java55 String contentType; field in class:FileURLConnection
120 contentType = map.getContentTypeFor(filename);
121 if (contentType != null) {
122 properties.add(CONTENT_TYPE, contentType);
/libcore/ojluni/src/main/java/sun/security/pkcs/
H A DContentInfo.java86 ObjectIdentifier contentType; field in class:ContentInfo
89 public ContentInfo(ObjectIdentifier contentType, DerValue content) { argument
90 this.contentType = contentType;
99 this.contentType = DATA_OID;
137 contentType = disType.getOID();
162 return contentType;
166 if (contentType.equals((Object)DATA_OID) ||
167 contentType.equals((Object)OLD_DATA_OID) ||
168 contentType
[all...]
H A DPKCS7.java66 private ObjectIdentifier contentType; field in class:PKCS7
194 contentType = contentInfo.contentType;
197 if (contentType.equals((Object)ContentInfo.SIGNED_DATA_OID)) {
199 } else if (contentType.equals((Object)ContentInfo.OLD_SIGNED_DATA_OID)) {
202 } else if (contentType.equals((Object)
206 throw new ParsingException("content type " + contentType +
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
H A DJarURLConnection.java77 private String contentType; field in class:JarURLConnection
203 if (contentType == null) {
205 contentType = "x-java/jar";
210 contentType = guessContentTypeFromStream(
217 if (contentType == null) {
218 contentType = guessContentTypeFromName(entryName);
220 if (contentType == null) {
221 contentType = "content/unknown";
224 return contentType;
/libcore/support/src/test/java/tests/support/
H A DSupport_TestWebServer.java95 * @param contentType the type of the dynamic web test data
97 public int initServer(String servePath, String contentType) throws Exception { argument
98 Support_TestWebData.initDynamicTestWebData(servePath, contentType);
/libcore/ojluni/src/main/java/java/net/
H A DURLConnection.java698 * sun.net.www.content.&lt;<i>contentType</i>&gt;
700 * where &lt;<i>contentType</i>&gt; is formed by taking the
1227 String contentType = stripOffParameters(getContentType());
1229 if (contentType == null) {
1230 if ((contentType = guessContentTypeFromName(url.getFile())) == null) {
1231 contentType = guessContentTypeFromStream(getInputStream());
1235 if (contentType == null) {
1239 handler = handlers.get(contentType);
1246 handler = factory.createContentHandler(contentType);
1249 handler = lookupContentHandlerClassFor(contentType);
1264 stripOffParameters(String contentType) argument
1291 lookupContentHandlerClassFor(String contentType) argument
1331 typeToPackageName(String contentType) argument
[all...]

Completed in 610 milliseconds