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

1 2 3

  /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/javax/sip/header/
ContentLengthHeader.java 9 void setContentLength(int contentLength) throws InvalidArgumentException;
  /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/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
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...]
HttpsURLConnectionImpl.java 66 @Override public void setFixedLengthStreamingMode(long contentLength) {
67 delegate.setFixedLengthStreamingMode(contentLength);
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/chromium_org/content/public/android/java/src/org/chromium/content/browser/
DownloadController.java 68 String filename, long contentLength) {
81 .setContentLength(contentLength)
110 String filename, String path, long contentLength, boolean successful, int downloadId) {
117 .setContentLength(contentLength)
133 String filename, String path, long contentLength, boolean successful, int downloadId,
141 .setContentLength(contentLength)
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
RequestTest.java 32 assertEquals(3, body.contentLength());
41 assertEquals(3, body.contentLength());
49 assertEquals(2, body.contentLength());
57 assertEquals(3, body.contentLength());
71 assertEquals(3, body.contentLength());
  /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/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/ksoap2/ksoap2-base/src/main/java/org/ksoap2/transport/
ServiceConnection.java 86 * @param contentLength the fixed length of the HTTP request body
89 public void setFixedLengthStreamingMode(int contentLength);
  /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/chromium_org/components/cronet/android/java/src/org/chromium/net/
HttpUrlRequest.java 70 * @param contentLength The length of data to upload.
73 long contentLength);
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
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];
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;
  /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/ksoap2/ksoap2-j2se/src/main/java/org/ksoap2/transport/
HttpsServiceConnectionSE.java 100 public void setFixedLengthStreamingMode(int contentLength) {
101 connection.setFixedLengthStreamingMode(contentLength);
ServiceConnectionSE.java 112 * @param contentLength the fixed length of the HTTP request body
115 public void setFixedLengthStreamingMode(int contentLength) {
116 connection.setFixedLengthStreamingMode(contentLength);
  /external/chromium_org/android_webview/java/src/org/chromium/android_webview/
AwContentsClientCallbackHelper.java 40 long contentLength) {
45 mContentLength = contentLength;
166 String mimeType, long contentLength) {
168 contentLength);
AwContentsIoThreadClient.java 37 String contentDisposition, String mimeType, long contentLength);

Completed in 578 milliseconds

1 2 3