/external/apache-http/android/src/com/android/internal/http/multipart/ |
H A D | PartBase.java | 45 private String contentType; field in class:PartBase 57 * @param contentType The content type, or <code>null</code> 61 public PartBase(String name, String contentType, String charSet, String transferEncoding) { argument 67 this.contentType = contentType; 88 return this.contentType; 122 * @param contentType the content type, or <code>null</code> to exclude the content type header 124 public void setContentType(String contentType) { argument 125 this.contentType = contentType; [all...] |
H A D | FilePart.java | 86 * @param contentType the content type for this part, if <code>null</code> the 91 public FilePart(String name, PartSource partSource, String contentType, String charset) { argument 95 contentType == null ? DEFAULT_CONTENT_TYPE : contentType, 135 * @param contentType the content type for this part, if <code>null</code> the 143 public FilePart(String name, File file, String contentType, String charset) argument 145 this(name, new FilePartSource(file), contentType, charset); 169 * @param contentType the content type for this part, if <code>null</code> the 177 public FilePart(String name, String fileName, File file, String contentType, String charset) argument 179 this(name, new FilePartSource(fileName, file), contentType, charse [all...] |
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
H A D | ContentTypeParser.java | 48 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/okhttp/src/main/java/com/squareup/okhttp/ |
H A D | RequestBody.java | 29 public abstract MediaType contentType(); method in class:RequestBody 44 * contentType} is non-null and lacks a charset, this will use UTF-8. 46 public static RequestBody create(MediaType contentType, String content) { argument 48 if (contentType != null) { 49 charset = contentType.charset(); 52 contentType = MediaType.parse(contentType + "; charset=utf-8"); 56 return create(contentType, bytes); 60 public static RequestBody create(final MediaType contentType, final ByteString content) { argument 62 @Override public MediaType contentType() { 77 create(final MediaType contentType, final byte[] content) argument 82 create(final MediaType contentType, final byte[] content, final int offset, final int byteCount) argument 102 create(final MediaType contentType, final File file) argument [all...] |
H A D | ResponseBody.java | 34 public abstract MediaType contentType(); method in class:ResponseBody 87 MediaType contentType = contentType(); 88 return contentType != null ? contentType.charset(UTF_8) : UTF_8; 97 * contentType} is non-null and lacks a charset, this will use UTF-8. 99 public static ResponseBody create(MediaType contentType, String content) { argument 101 if (contentType != null) { 102 charset = contentType.charset(); 105 contentType 113 create(final MediaType contentType, byte[] content) argument 119 create( final MediaType contentType, final long contentLength, final BufferedSource content) argument [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
H A D | RealResponseBody.java | 32 @Override public MediaType contentType() { method in class:RealResponseBody 33 String contentType = headers.get("Content-Type"); 34 return contentType != null ? MediaType.parse(contentType) : null;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/ |
H A D | ContentInfo.java | 20 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/nist-sip/java/javax/sip/header/ |
H A D | ContentTypeHeader.java | 9 void setContentType(String contentType, String contentSubType) argument
|
H A D | MediaType.java | 10 void setContentType(String contentType) throws ParseException; argument
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
H A D | RequestTest.java | 35 MediaType contentType = MediaType.parse("text/plain; charset=utf-8"); 36 RequestBody body = RequestBody.create(contentType, "abc".getBytes(Util.UTF_8)); 37 assertEquals(contentType, body.contentType()); 44 MediaType contentType = MediaType.parse("text/plain"); 45 RequestBody body = RequestBody.create(contentType, "\u0800"); 46 assertEquals(MediaType.parse("text/plain; charset=utf-8"), body.contentType()); 52 MediaType contentType = MediaType.parse("text/plain; charset=utf-16be"); 53 RequestBody body = RequestBody.create(contentType, "\u0800"); 54 assertEquals(contentType, bod [all...] |
/external/nist-sip/java/gov/nist/javax/sip/header/ |
H A D | ContentType.java | 83 *@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 D | ContentInfo.java | 19 * contentType ContentType, 20 * content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL 35 private ASN1ObjectIdentifier contentType; field in class:ContentInfo 84 contentType = (ASN1ObjectIdentifier)seq.getObjectAt(0); 99 ASN1ObjectIdentifier contentType, 102 this.contentType = contentType; 108 return contentType; 123 v.add(contentType); 98 ContentInfo( ASN1ObjectIdentifier contentType, ASN1Encodable content) argument
|
H A D | CMSAttributes.java | 10 * contentType ::= 1.2.840.113549.1.9.3 23 public static final ASN1ObjectIdentifier contentType = PKCSObjectIdentifiers.pkcs_9_at_contentType; field in interface:CMSAttributes
|
/external/apache-http/src/org/apache/http/entity/ |
H A D | AbstractHttpEntity.java | 64 protected Header contentType; field in class:AbstractHttpEntity 94 * {@link #contentType contentType} attribute. 99 return this.contentType; 129 * {@link #contentType contentType} attribute. 131 * @param contentType the new Content-Encoding header, or 134 public void setContentType(final Header contentType) { argument 135 this.contentType = contentType; [all...] |
H A D | FileEntity.java | 58 public FileEntity(final File file, final String contentType) { argument 64 setContentType(contentType);
|
/external/libxml2/include/libxml/ |
H A D | nanohttp.h | 30 char **contentType); 35 char **contentType, 42 char **contentType, 48 char **contentType); 51 char **contentType,
|
/external/jetty/src/java/org/eclipse/jetty/util/ |
H A D | MultiPartOutputStream.java | 92 public void startPart(String contentType) argument 101 if (contentType != null) 102 out.write(("Content-Type: "+contentType).getBytes(StringUtil.__ISO_8859_1)); 110 public void startPart(String contentType, String[] headers) argument 119 if (contentType != null) 120 out.write(("Content-Type: "+contentType).getBytes(StringUtil.__ISO_8859_1));
|
H A D | MultiPartWriter.java | 85 public void startPart(String contentType) argument 94 out.write(contentType); 114 public void startPart(String contentType, String[] headers) argument 123 out.write(contentType);
|
/external/nist-sip/java/javax/sip/message/ |
H A D | MessageFactory.java | 18 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
|
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/util/ |
H A D | AsyncHttpURLConnection.java | 31 private String contentType; field in class:AsyncHttpURLConnection 49 public void setContentType(String contentType) { argument 50 this.contentType = contentType; 83 if (contentType == null) { 86 connection.setRequestProperty("Content-Type", contentType);
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/pyasn1-modules/tools/ |
H A D | pkcs7dump.py | 31 contentType = contentInfo.getComponentByName('contentType') variable 44 asn1Spec=contentInfoMap[contentType]
|
/external/nist-sip/java/gov/nist/javax/sip/message/ |
H A D | MessageFactoryImpl.java | 114 * @param contentType - 124 MaxForwardsHeader maxForwards, ContentTypeHeader contentType, 129 || contentType == null) 141 sipRequest.setContent(content, contentType); 171 * @param contentType - 181 ContentTypeHeader contentType) throws ParseException { 185 || contentType == null) 199 sipRequest.setHeader((ContentType) contentType); 279 * @param contentType - 289 ContentTypeHeader contentType) throw 121 createRequest(javax.sip.address.URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, Object content) argument 178 createRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, byte[] content, ContentTypeHeader contentType) argument 286 createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, Object content, ContentTypeHeader contentType) argument 343 createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, byte[] content, ContentTypeHeader contentType) argument 433 createResponse(int statusCode, Request request, ContentTypeHeader contentType, Object content) argument 466 createResponse(int statusCode, Request request, ContentTypeHeader contentType, byte[] content) argument 544 createRequest(javax.sip.address.URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, byte[] content) argument 598 createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, Object content) argument 654 createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, byte[] content) argument 831 createMultipartMimeContent(ContentTypeHeader multipartMimeCth, String[] contentType, String[] contentSubtype, String[] contentBody) argument [all...] |
H A D | MessageFactoryExt.java | 62 String[] contentType, 61 createMultipartMimeContent(ContentTypeHeader multipartMimeContentTypeHeader, String[] contentType, String[] contentSubtype, String[] contentBody) argument
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
H A D | DefaultSignedAttributeTableGenerator.java | 54 * normally include contentType, signingTime, and messageDigest. If the constructor 55 * using an AttributeTable was used, entries in it for contentType, signingTime, and 67 if (!std.containsKey(CMSAttributes.contentType)) 69 ASN1ObjectIdentifier contentType = ASN1ObjectIdentifier.getInstance( 72 // contentType will be null if we're trying to generate a counter signature. 73 if (contentType != null) 75 Attribute attr = new Attribute(CMSAttributes.contentType, 76 new DERSet(contentType));
|
/external/okhttp/okcurl/src/test/java/com/squareup/okhttp/curl/ |
H A D | MainTest.java | 48 assertEquals("application/x-form-urlencoded; charset=utf-8", body.contentType().toString()); 57 assertEquals("application/x-form-urlencoded; charset=utf-8", body.contentType().toString()); 67 assertEquals("application/json; charset=utf-8", body.contentType().toString()); 97 return buffer.readString(body.contentType().charset());
|