Searched refs:contentType (Results 1 - 25 of 131) sorted by relevance

123456

/external/chromium_org/third_party/WebKit/Source/core/xml/
H A DDOMParser.cpp28 PassRefPtr<Document> DOMParser::parseFromString(const String& str, const String& contentType, ExceptionState& exceptionState) argument
32 if (contentType != "text/html"
33 && contentType != "text/xml"
34 && contentType != "application/xml"
35 && contentType != "application/xhtml+xml"
36 && contentType != "image/svg+xml") {
41 RefPtr<Document> doc = DOMImplementation::createDocument(contentType, 0, KURL(), false);
H A DDOMParser.idl24 [Default=Undefined] optional DOMString contentType);
H A DDOMParser.h36 PassRefPtr<Document> parseFromString(const String&, const String& contentType, ExceptionState&);
/external/nist-sip/java/gov/nist/javax/sip/parser/
H A DContentTypeParser.java48 public ContentTypeParser(String contentType) { argument
49 super(contentType);
58 ContentType contentType = new ContentType();
69 contentType.setContentType(type.getTokenValue());
76 contentType.setContentSubType(subType.getTokenValue());
77 super.parse(contentType);
83 return contentType;
/external/okhttp/src/test/java/com/squareup/okhttp/
H A DRequestTest.java29 MediaType contentType = MediaType.parse("text/plain; charset=utf-8");
30 Request.Body body = Request.Body.create(contentType, "abc".getBytes(Util.UTF_8));
31 assertEquals(contentType, body.contentType());
38 MediaType contentType = MediaType.parse("text/plain");
39 Request.Body body = Request.Body.create(contentType, "\u0800");
40 assertEquals(MediaType.parse("text/plain; charset=utf-8"), body.contentType());
46 MediaType contentType = MediaType.parse("text/plain; charset=utf-16be");
47 Request.Body body = Request.Body.create(contentType, "\u0800");
48 assertEquals(contentType, bod
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
H A DContentInfo.java20 private ASN1ObjectIdentifier contentType; field in class:ContentInfo
45 contentType = (ASN1ObjectIdentifier)e.nextElement();
56 ASN1ObjectIdentifier contentType,
59 this.contentType = contentType;
65 return contentType;
77 * contentType ContentType,
79 * [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }
86 v.add(contentType);
55 ContentInfo( ASN1ObjectIdentifier contentType, ASN1Encodable content) argument
/external/chromium_org/third_party/WebKit/Source/platform/network/
H A DParsedContentType.cpp131 bool parseContentType(const String& contentType, ReceiverType& receiver) argument
134 unsigned contentTypeLength = contentType.length();
135 skipSpaces(contentType, index);
137 WTF_LOG_ERROR("Invalid Content-Type string '%s'", contentType.ascii().data());
142 size_t semiColonIndex = contentType.find(';', index);
151 skipSpaces(contentType, index);
152 SubstringRange keyRange = parseParameterPart(contentType, index);
159 if (contentType[index++] != '=' || index >= contentTypeLength) {
165 SubstringRange valueRange = parseParameterPart(contentType, index);
168 WTF_LOG_ERROR("Invalid Content-Type, invalid parameter value (at %i, for '%s').", index, substringForRange(contentType, keyRang
187 isValidContentType(const String& contentType) argument
196 ParsedContentType(const String& contentType) argument
[all...]
/external/nist-sip/java/javax/sip/header/
H A DContentTypeHeader.java9 void setContentType(String contentType, String contentSubType) argument
H A DMediaType.java10 void setContentType(String contentType) throws ParseException; argument
/external/nist-sip/java/gov/nist/javax/sip/header/
H A DContentType.java83 *@param contentType is the content type.
86 public ContentType(String contentType, String contentSubtype) { argument
88 this.setContentType(contentType, contentSubtype);
170 *@param contentType Content type string.
173 public void setContentType(String contentType, String contentSubType) { argument
176 mediaRange.setType(contentType);
182 *@param contentType Content type string.
185 public void setContentType(String contentType) throws ParseException { argument
186 if (contentType == null)
190 mediaRange.setType(contentType);
197 setContentSubType(String contentType) argument
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/cms/
H A DContentInfo.java19 private ASN1ObjectIdentifier contentType; field in class:ContentInfo
55 contentType = (ASN1ObjectIdentifier)seq.getObjectAt(0);
70 ASN1ObjectIdentifier contentType,
73 this.contentType = contentType;
79 return contentType;
91 * contentType ContentType,
93 * [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }
100 v.add(contentType);
69 ContentInfo( ASN1ObjectIdentifier contentType, ASN1Encodable content) argument
H A DCMSAttributes.java8 public static final ASN1ObjectIdentifier contentType = PKCSObjectIdentifiers.pkcs_9_at_contentType; field in interface:CMSAttributes
/external/apache-http/src/org/apache/http/entity/
H A DAbstractHttpEntity.java59 protected Header contentType; field in class:AbstractHttpEntity
89 * {@link #contentType contentType} attribute.
94 return this.contentType;
124 * {@link #contentType contentType} attribute.
126 * @param contentType the new Content-Encoding header, or
129 public void setContentType(final Header contentType) { argument
130 this.contentType = contentType;
[all...]
H A DFileEntity.java53 public FileEntity(final File file, final String contentType) { argument
59 setContentType(contentType);
/external/chromium_org/chrome/renderer/resources/extensions/
H A Dcontent_setting.js16 function ContentSetting(contentType, settingSchema) {
21 [contentType, details, callback],
30 [contentType, details, callback],
37 [contentType, details, callback],
46 [contentType, callback],
/external/chromium_org/third_party/libxml/src/include/libxml/
H A Dnanohttp.h30 char **contentType);
35 char **contentType,
42 char **contentType,
48 char **contentType);
51 char **contentType,
/external/libxml2/include/libxml/
H A Dnanohttp.h30 char **contentType);
35 char **contentType,
42 char **contentType,
48 char **contentType);
51 char **contentType,
/external/chromium_org/third_party/WebKit/Source/core/fileapi/
H A DBlobBuilder.h51 PassRefPtr<Blob> createBlob(const String& contentType);
52 PassRefPtr<File> createFile(const String& contentType, const String& fileName, double modificationTime);
H A DBlob.idl40 Blob slice(optional long long start, optional long long end, [TreatNullAs=NullString, TreatUndefinedAs=NullString] optional DOMString contentType);
/external/chromium/chrome/browser/resources/options/
H A Dcontent_settings_exceptions_area.js12 * @param {string} contentType The type of the list.
21 function ExceptionsListItem(contentType, mode, enableAskOption, exception) {
24 el.contentType = contentType;
77 if (this.contentType == 'cookies') {
112 if (this.contentType == 'notifications' ||
113 this.contentType == 'location') {
122 [listItem.contentType, listItem.mode, input.value]);
252 [this.contentType, this.mode, oldPattern]);
256 [this.contentType, thi
[all...]
/external/okhttp/src/main/java/com/squareup/okhttp/
H A DRequest.java102 public MediaType contentType() { method in class:Request.Body
116 * contentType} lacks a charset, this will use UTF-8.
118 public static Body create(MediaType contentType, String content) { argument
119 contentType = contentType.charset() != null
120 ? contentType
121 : MediaType.parse(contentType + "; charset=utf-8");
123 byte[] bytes = content.getBytes(contentType.charset().name());
124 return create(contentType, bytes);
131 public static Body create(final MediaType contentType, fina argument
151 create(final MediaType contentType, final File file) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/modules/mediasource/
H A DWebKitMediaSource.cpp99 ContentType contentType(type);
100 Vector<String> codecs = contentType.codecs();
101 OwnPtr<WebSourceBuffer> webSourceBuffer = createWebSourceBuffer(contentType.type(), codecs, exceptionState);
188 ContentType contentType(type);
189 String codecs = contentType.parameter("codecs");
192 if (contentType.type().isEmpty())
199 return MIMETypeRegistry::isSupportedMediaSourceMIMEType(contentType.type(), codecs);
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
H A DDefaultSignedAttributeTableGenerator.java51 * normally include contentType, signingTime, and messageDigest. If the constructor
52 * using an AttributeTable was used, entries in it for contentType, signingTime, and
64 if (!std.containsKey(CMSAttributes.contentType))
66 ASN1ObjectIdentifier contentType = ASN1ObjectIdentifier.getInstance(
69 // contentType will be null if we're trying to generate a counter signature.
70 if (contentType != null)
72 Attribute attr = new Attribute(CMSAttributes.contentType,
73 new DERSet(contentType));
/external/chromium_org/chrome/browser/resources/options/
H A Dcontent_settings_exceptions_area.js15 * @param {string} contentType The type of the list.
24 function ExceptionsListItem(contentType, mode, enableAskOption, exception) {
27 el.contentType = contentType;
81 if (this.contentType == 'cookies') {
88 if (this.contentType != 'fullscreen') {
115 if (this.contentType == 'media-stream') {
145 if (this.contentType == 'notifications' ||
146 this.contentType == 'location' ||
147 this.contentType
[all...]
/external/nist-sip/java/javax/sip/message/
H A DMessageFactory.java18 MaxForwardsHeader maxForwards, ContentTypeHeader contentType,
23 MaxForwardsHeader maxForwards, ContentTypeHeader contentType,
34 MaxForwardsHeader maxForwards, ContentTypeHeader contentType,
39 MaxForwardsHeader maxForwards, ContentTypeHeader contentType,
47 ContentTypeHeader contentType, Object content)
51 ContentTypeHeader contentType, byte[] content)
16 createRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, Object content) argument
21 createRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, byte[] content) argument
32 createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, Object content) argument
37 createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, byte[] content) argument
46 createResponse(int statusCode, Request request, ContentTypeHeader contentType, Object content) argument
50 createResponse(int statusCode, Request request, ContentTypeHeader contentType, byte[] content) argument

Completed in 946 milliseconds

123456