HomeSort by relevance Sort by last modified time
    Searched defs:contentLength (Results 1 - 25 of 83) sorted by null

1 2 3 4

  /external/nist-sip/java/gov/nist/javax/sip/header/
ContentLength.java 35 * ContentLength SIPHeader (of which there can be only one in a SIPMessage).
76 public class ContentLength
85 * contentLength field.
87 protected Integer contentLength;
92 public ContentLength() {
99 public ContentLength(int length) {
101 this.contentLength = Integer.valueOf(length);
105 * get the ContentLength field.
109 return contentLength.intValue();
113 * Set the contentLength membe
    [all...]
  /external/apache-http/src/org/apache/http/impl/io/
ContentLengthInputStream.java 83 private long contentLength;
100 * @param contentLength The maximum number of bytes that can be read from
103 public ContentLengthInputStream(final SessionInputBuffer in, long contentLength) {
108 if (contentLength < 0) {
112 this.contentLength = contentLength;
148 if (pos >= contentLength) {
172 if (pos >= contentLength) {
176 if (pos + len > contentLength) {
177 len = (int) (contentLength - pos)
    [all...]
ContentLengthOutputStream.java 64 private final long contentLength;
76 * @param contentLength The maximum number of bytes that can be written to
81 public ContentLengthOutputStream(final SessionOutputBuffer out, long contentLength) {
86 if (contentLength < 0) {
90 this.contentLength = contentLength;
113 if (this.total < this.contentLength) {
114 long max = this.contentLength - this.total;
131 if (this.total < this.contentLength) {
  /external/nist-sip/java/gov/nist/javax/sip/parser/
ContentLengthParser.java 44 public ContentLengthParser(String contentLength) {
45 super(contentLength);
56 ContentLength contentLength = new ContentLength();
59 contentLength.setContentLength(Integer.parseInt(number));
62 return contentLength;
MaxForwardsParser.java 43 public MaxForwardsParser(String contentLength) {
44 super(contentLength);
55 MaxForwards contentLength = new MaxForwards();
58 contentLength.setMaxForwards(Integer.parseInt(number));
61 return contentLength;
PipelinedMsgParser.java 292 ContentLength cl = (ContentLength) sipMessage
294 int contentLength = 0;
296 contentLength = cl.getContentLength();
298 contentLength = 0;
302 Debug.println("contentLength " + contentLength);
305 if (contentLength == 0) {
308 || contentLength < this.sizeCounter) {
309 byte[] message_body = new byte[contentLength];
    [all...]
  /external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/
PutStreamIntegrationTest.java 50 int contentLength = Integer.parseInt(headers.get("content-length"));
55 body = new byte[contentLength];
56 dataInputStream.readFully(body, 0, contentLength);
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
RetryableSink.java 71 public long contentLength() throws IOException {
HttpTransport.java 36 long contentLength = OkHeaders.contentLength(request);
39 if (contentLength > Integer.MAX_VALUE) {
44 if (contentLength != -1) {
47 return new RetryableSink((int) contentLength);
62 if (contentLength != -1) {
65 return httpConnection.newFixedLengthSink(contentLength);
143 long contentLength = OkHeaders.contentLength(httpEngine.getResponse());
144 if (contentLength != -1)
    [all...]
OkHeaders.java 58 public static long contentLength(Request request) {
59 return contentLength(request.headers());
62 public static long contentLength(Response response) {
63 return contentLength(response.headers());
66 public static long contentLength(Headers headers) {
  /external/nanohttpd/core/src/test/java/fi/iki/elonen/
HttpPostRequestTest.java 30 int contentLength = size + contentLengthHeaderValueSize + CONTENT_LENGTH.length();
31 String input = header + CONTENT_LENGTH + (contentLength+4) + "\r\n\r\n" + content;
50 int contentLength = size + contentLengthHeaderValueSize + CONTENT_LENGTH.length();
51 String input = header + CONTENT_LENGTH + (contentLength+4) + "\r\n\r\n" + content;
73 int contentLength = size + contentLengthHeaderValueSize + CONTENT_LENGTH.length();
74 String input = header + CONTENT_LENGTH + (contentLength+4) + "\r\n\r\n" + content;
97 int contentLength = size + contentLengthHeaderValueSize + CONTENT_LENGTH.length();
98 String input = header + CONTENT_LENGTH + (contentLength+4) + "\r\n\r\n" + content;
151 int contentLength = size + contentLengthHeaderValueSize + CONTENT_LENGTH.length();
152 String input = header + CONTENT_LENGTH + (contentLength+5) + "\r\n\r\n" + content
    [all...]
  /external/oauth/core/src/main/java/net/oauth/client/
URLConnectionClient.java 73 String contentLength = null;
78 contentLength = header.getValue();
88 if (contentLength != null) {
90 .setFixedLengthStreamingMode(Integer.parseInt(contentLength));
  /external/oauth/core/src/main/java/net/oauth/client/httpclient4/
HttpMethodResponse.java 109 long contentLength = r.getEntity().getContentLength();
110 if (contentLength >= 0) {
111 request.append("Content-Length: ").append(contentLength).append(EOL);
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
Request.java 156 public long contentLength() {
189 @Override public long contentLength() {
209 @Override public long contentLength() {
214 long length = contentLength();
Job.java 107 long contentLength = body.contentLength();
108 if (contentLength != -1) {
109 requestBuilder.header("Content-Length", Long.toString(contentLength));
255 @Override public long contentLength() {
256 return OkHeaders.contentLength(response);
Response.java 240 public abstract long contentLength();
251 long contentLength = contentLength();
252 if (contentLength > Integer.MAX_VALUE) {
253 throw new IOException("Cannot buffer entire body for content length: " + contentLength);
256 if (contentLength != -1) {
257 byte[] content = new byte[(int) contentLength];
Connection.java 362 long contentLength = OkHeaders.contentLength(response);
363 if (contentLength != -1) {
364 Source body = tunnelConnection.newFixedLengthSource(null, contentLength);
HttpResponseCache.java 558 String contentLength = responseHeaders.get("Content-Length");
563 .body(new CacheResponseBody(snapshot, contentType, contentLength))
582 private final String contentLength;
585 String contentType, String contentLength) {
588 this.contentLength = contentLength;
607 @Override public long contentLength() {
609 return contentLength != null ? Long.parseLong(contentLength) : -1;
  /frameworks/av/media/libstagefright/foundation/
ParsedMessage.cpp 164 int32_t contentLength;
165 if (!findInt32("content-length", &contentLength) || contentLength < 0) {
166 contentLength = 0;
169 size_t totalLength = offset + contentLength;
175 mContent.setTo(&data[offset], contentLength);
  /frameworks/base/core/java/android/webkit/
CacheManager.java 53 long contentLength;
85 return contentLength;
222 public void setContentLength(long contentLength) {
223 this.contentLength = contentLength;
  /libcore/support/src/test/java/tests/http/
MockWebServer.java 344 int contentLength = -1;
350 if (contentLength == -1 && lowercaseHeader.startsWith("content-length:")) {
351 contentLength = Integer.parseInt(header.substring(15).trim());
362 if (contentLength != -1) {
364 transfer(contentLength, in, requestBody);
  /external/mockwebserver/src/main/java/com/google/mockwebserver/
MockWebServer.java 441 long contentLength = -1;
448 if (contentLength == -1 && lowercaseHeader.startsWith("content-length:")) {
449 contentLength = Long.parseLong(header.substring(15).trim());
472 if (contentLength != -1) {
474 throttledTransfer(throttlePolicy, in, requestBody, contentLength);
  /frameworks/av/media/libstagefright/rtsp/
ARTSPConnection.cpp 717 unsigned long contentLength = 0;
723 if (!ParseSingleUnsignedLong(value.c_str(), &contentLength)) {
728 if (contentLength > 0) {
729 response->mContent = new ABuffer(contentLength);
731 if (receive(response->mContent->data(), contentLength) != OK) {
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
JavaApiConverterTest.java 437 .addHeader("Content-Length", Long.toString(responseBody.contentLength()))
444 assertEquals(responseBody.contentLength(), httpUrlConnection.getContentLength());
784 public long contentLength() {
  /external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
MockWebServer.java 447 long contentLength = -1;
454 if (contentLength == -1 && lowercaseHeader.startsWith("content-length:")) {
455 contentLength = Long.parseLong(header.substring(15).trim());
478 if (contentLength != -1) {
480 throttledTransfer(throttlePolicy, in, requestBody, contentLength);

Completed in 619 milliseconds

1 2 3 4