Searched defs:entity (Results 1 - 25 of 80) sorted by relevance

1234

/external/apache-http/src/org/apache/http/entity/
H A DContentProducer.java2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/entity/ContentProducer.java $
32 package org.apache.http.entity;
38 * An abstract entity content producer.
H A DBufferedHttpEntity.java2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/entity/BufferedHttpEntity.java $
32 package org.apache.http.entity;
43 * A wrapping entity that buffers it content if necessary.
44 * The buffered entity is always repeatable.
45 * If the wrapped entity is repeatable itself, calls are passed through.
46 * If the wrapped entity is not repeatable, the content is read into a
64 public BufferedHttpEntity(final HttpEntity entity) throws IOException { argument
65 super(entity);
66 if (!entity.isRepeatable() || entity
[all...]
H A DContentLengthStrategy.java2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/entity/ContentLengthStrategy.java $
32 package org.apache.http.entity;
H A DByteArrayEntity.java2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/entity/ByteArrayEntity.java $
32 package org.apache.http.entity;
40 * An entity whose content is retrieved from a byte array.
87 * Tells that this entity is not streaming.
H A DEntityTemplate.java2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/entity/EntityTemplate.java $
32 package org.apache.http.entity;
H A DFileEntity.java2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/entity/FileEntity.java $
32 package org.apache.http.entity;
41 * An entity whose content is retrieved from a file.
97 * Tells that this entity is not streaming.
H A DSerializableEntity.java2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/entity/SerializableEntity.java $
32 package org.apache.http.entity;
H A DStringEntity.java2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/entity/StringEntity.java $
32 package org.apache.http.entity;
43 * An entity whose content is retrieved from a string.
99 * Tells that this entity is not streaming.
H A DAbstractHttpEntity.java2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/entity/AbstractHttpEntity.java $
32 package org.apache.http.entity;
213 ("streaming entity does not implement consumeContent()");
H A DBasicHttpEntity.java2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/entity/BasicHttpEntity.java $
32 package org.apache.http.entity;
39 * A generic streamed entity being received on a connection.
59 * Creates a new basic entity.
97 * Tells that this entity is not repeatable.
147 content.close(); // reads to the end of the entity
H A DHttpEntityWrapper.java2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/entity/HttpEntityWrapper.java $
32 package org.apache.http.entity;
46 * should not be delegated to the wrapped entity.
59 /** The wrapped entity. */
63 * Creates a new entity wrapper.
65 * @param wrapped the entity to wrap
72 ("wrapped entity must not be null");
/external/apache-http/src/org/apache/http/impl/entity/
H A DEntitySerializer.java2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/entity/EntitySerializer.java $
32 package org.apache.http.impl.entity;
40 import org.apache.http.entity.ContentLengthStrategy;
47 * Default implementation of an entity serializer.
49 * This entity serializer currently supports only "chunked" and "identitiy" transfer-coding</a>
91 final HttpEntity entity) throws HttpException, IOException {
98 if (entity == null) {
99 throw new IllegalArgumentException("HTTP entity may not be null");
102 entity.writeTo(outstream);
88 serialize( final SessionOutputBuffer outbuffer, final HttpMessage message, final HttpEntity entity) argument
H A DLaxContentLengthStrategy.java2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/entity/LaxContentLengthStrategy.java $
32 package org.apache.http.impl.entity;
40 import org.apache.http.entity.ContentLengthStrategy;
48 * This strategy conforms to the entity transfer rules outlined in
66 * empty line after the header fields, regardless of the entity-header fields present in the
76 * OCTETs represents both the entity-length and the transfer-length. The Content-Length
118 * has been, can be, or may need to be applied to an entity-body in order to ensure
120 * the transfer-coding is a property of the message, not of the original entity.
151 * the message, not of the entity.
157 * If multiple encodings have been applied to an entity, th
[all...]
H A DStrictContentLengthStrategy.java2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/entity/StrictContentLengthStrategy.java $
32 package org.apache.http.impl.entity;
39 import org.apache.http.entity.ContentLengthStrategy;
45 * This entity generator comforms to the entity transfer rules outlined in the
62 * empty line after the header fields, regardless of the entity-header fields present in the
72 * OCTETs represents both the entity-length and the transfer-length. The Content-Length
114 * has been, can be, or may need to be applied to an entity-body in order to ensure
116 * the transfer-coding is a property of the message, not of the original entity.
147 * the message, not of the entity
[all...]
H A DEntityDeserializer.java2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/entity/EntityDeserializer.java $
32 package org.apache.http.impl.entity;
40 import org.apache.http.entity.BasicHttpEntity;
41 import org.apache.http.entity.ContentLengthStrategy;
49 * Default implementation of an entity deserializer.
51 * This entity deserializer currently supports only "chunked" and "identitiy" transfer-coding</a>
80 BasicHttpEntity entity = new BasicHttpEntity();
84 entity.setChunked(true);
85 entity.setContentLength(-1);
86 entity
[all...]
/external/apache-http/src/org/apache/http/
H A DHttpEntityEnclosingRequest.java35 * A request with an entity.
53 * whether to accept the entity enclosing request before the possibly
54 * lengthy entity is sent across the wire.
61 * Hands the entity to the request.
62 * @param entity the entity to send.
64 void setEntity(HttpEntity entity); argument
H A DHttpResponse.java129 * Obtains the message entity of this response, if any.
130 * The entity is provided by calling {@link #setEntity setEntity}.
132 * @return the response entity, or
138 * Associates a response entity with this response.
140 * @param entity the entity to associate with this response, or
143 void setEntity(HttpEntity entity); argument
/external/apache-http/src/org/apache/http/client/entity/
H A DUrlEncodedFormEntity.java2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/entity/UrlEncodedFormEntity.java $
31 package org.apache.http.client.entity;
37 import org.apache.http.entity.StringEntity;
41 * An entity composed of a list of url-encoded pairs.
/external/apache-http/src/org/apache/http/util/
H A DEntityUtils.java65 public static byte[] toByteArray(final HttpEntity entity) throws IOException { argument
66 if (entity == null) {
67 throw new IllegalArgumentException("HTTP entity may not be null");
69 InputStream instream = entity.getContent();
73 if (entity.getContentLength() > Integer.MAX_VALUE) {
74 throw new IllegalArgumentException("HTTP entity too large to be buffered in memory");
76 int i = (int)entity.getContentLength();
93 public static String getContentCharSet(final HttpEntity entity) argument
96 if (entity == null) {
97 throw new IllegalArgumentException("HTTP entity ma
112 toString( final HttpEntity entity, final String defaultCharset) argument
149 toString(final HttpEntity entity) argument
[all...]
/external/apache-http/src/org/apache/http/client/methods/
H A DHttpEntityEnclosingRequestBase.java57 private HttpEntity entity; field in class:HttpEntityEnclosingRequestBase
64 return this.entity;
67 public void setEntity(final HttpEntity entity) { argument
68 this.entity = entity;
80 if (this.entity != null) {
81 clone.entity = (HttpEntity) CloneUtils.clone(this.entity);
/external/apache-http/src/org/apache/http/impl/client/
H A DEntityEnclosingRequestWrapper.java62 private HttpEntity entity; field in class:EntityEnclosingRequestWrapper
67 this.entity = request.getEntity();
71 return this.entity;
74 public void setEntity(final HttpEntity entity) { argument
75 this.entity = entity;
85 return this.entity == null || this.entity.isRepeatable();
/external/apache-http/src/org/apache/http/message/
H A DBasicHttpEntityEnclosingRequest.java42 * Basic implementation of a request with an entity that can be modified.
58 private HttpEntity entity; field in class:BasicHttpEntityEnclosingRequest
74 return this.entity;
77 public void setEntity(final HttpEntity entity) { argument
78 this.entity = entity;
/external/google-tv-pairing-protocol/java/src/com/google/polo/json/
H A DXMLTokener.java36 /** The table of entity values. It initially contains Character values for
39 public static final java.util.HashMap entity; field in class:XMLTokener
42 entity = new java.util.HashMap(8);
43 entity.put("amp", XML.AMP);
44 entity.put("apos", XML.APOS);
45 entity.put("gt", XML.GT);
46 entity.put("lt", XML.LT);
47 entity.put("quot", XML.QUOT);
121 * Return the next entity. These entities are translated to Characters:
124 * @return A Character or an entity Strin
[all...]
/external/okhttp/okhttp-apache/src/main/java/com/squareup/okhttp/apache/
H A DHttpEntityBody.java13 private final HttpEntity entity; field in class:HttpEntityBody
16 HttpEntityBody(HttpEntity entity, String contentTypeHeader) { argument
17 this.entity = entity;
21 } else if (entity.getContentType() != null) {
22 mediaType = MediaType.parse(entity.getContentType().getValue());
24 // Apache is forgiving and lets you skip specifying a content type with an entity. OkHttp is
31 return entity.getContentLength();
39 entity.writeTo(sink.outputStream());
/external/apache-http/src/org/apache/http/client/utils/
H A DURLEncodedUtils.java88 * {@link HttpEntity}. The encoding is taken from the entity's
93 * @param entity
94 * The entity to parse
96 * If there was an exception getting the entity's data.
99 final HttpEntity entity) throws IOException {
101 if (isEncoded(entity)) {
102 final String content = EntityUtils.toString(entity);
103 final Header encoding = entity.getContentEncoding();
114 * Returns true if the entity's Content-Type header is
117 public static boolean isEncoded (final HttpEntity entity) { argument
98 parse( final HttpEntity entity) argument
[all...]

Completed in 363 milliseconds

1234