Home
last modified time | relevance | path

Searched refs:contentLength (Results 1 – 25 of 45) sorted by relevance

12

/external/nist-sip/java/gov/nist/javax/sip/header/
DContentLength.java86 protected Integer contentLength; field in ContentLength
100 this.contentLength = Integer.valueOf(length); in ContentLength()
108 return contentLength.intValue(); in getContentLength()
115 public void setContentLength(int contentLength) in setContentLength() argument
117 if (contentLength < 0) in setContentLength()
121 this.contentLength = Integer.valueOf(contentLength); in setContentLength()
133 if (contentLength == null) in encodeBody()
136 buffer.append(contentLength.toString()); in encodeBody()
/external/apache-http/src/org/apache/http/impl/io/
DContentLengthInputStream.java78 private long contentLength; field in ContentLengthInputStream
98 public ContentLengthInputStream(final SessionInputBuffer in, long contentLength) { in ContentLengthInputStream() argument
103 if (contentLength < 0) { in ContentLengthInputStream()
107 this.contentLength = contentLength; in ContentLengthInputStream()
143 if (pos >= contentLength) { in read()
167 if (pos >= contentLength) { in read()
171 if (pos + len > contentLength) { in read()
172 len = (int) (contentLength - pos); in read()
206 long remaining = Math.min(n, this.contentLength - this.pos); in skip()
DContentLengthOutputStream.java59 private final long contentLength; field in ContentLengthOutputStream
76 public ContentLengthOutputStream(final SessionOutputBuffer out, long contentLength) { in ContentLengthOutputStream() argument
81 if (contentLength < 0) { in ContentLengthOutputStream()
85 this.contentLength = contentLength; in ContentLengthOutputStream()
108 if (this.total < this.contentLength) { in write()
109 long max = this.contentLength - this.total; in write()
126 if (this.total < this.contentLength) { in write()
/external/nist-sip/java/gov/nist/javax/sip/parser/
DPipelinedMsgParser.java294 int contentLength = 0; in run() local
296 contentLength = cl.getContentLength(); in run()
298 contentLength = 0; in run()
302 Debug.println("contentLength " + contentLength); in run()
305 if (contentLength == 0) { in run()
308 || contentLength < this.sizeCounter) { in run()
309 byte[] message_body = new byte[contentLength]; in run()
311 while (nread < contentLength) { in run()
322 nread, contentLength - nread); in run()
DMaxForwardsParser.java43 public MaxForwardsParser(String contentLength) { in MaxForwardsParser() argument
44 super(contentLength); in MaxForwardsParser()
55 MaxForwards contentLength = new MaxForwards(); in parse() local
58 contentLength.setMaxForwards(Integer.parseInt(number)); in parse()
61 return contentLength; in parse()
DContentLengthParser.java44 public ContentLengthParser(String contentLength) { in ContentLengthParser() argument
45 super(contentLength); in ContentLengthParser()
56 ContentLength contentLength = new ContentLength(); in parse() local
59 contentLength.setContentLength(Integer.parseInt(number)); in parse()
62 return contentLength; in parse()
/external/okhttp/src/main/java/libcore/net/http/
DRequestHeaders.java53 private int contentLength = -1; field in RequestHeaders
101 contentLength = Integer.parseInt(value); in RequestHeaders()
163 return contentLength; in getContentLength()
210 public void setContentLength(int contentLength) { in setContentLength() argument
211 if (this.contentLength != -1) { in setContentLength()
214 headers.add("Content-Length", Integer.toString(contentLength)); in setContentLength()
215 this.contentLength = contentLength; in setContentLength()
DHttpTransport.java87 int contentLength = httpEngine.requestHeaders.getContentLength(); in createRequestBody() local
88 if (contentLength != -1) { in createRequestBody()
90 return new RetryableOutputStream(contentLength); in createRequestBody()
126 int contentLength = httpEngine.requestHeaders.getContentLength(); in writeRequestHeaders() local
130 if (contentLength != -1 && bytes.length + contentLength <= MAX_REQUEST_BUFFER_LENGTH) { in writeRequestHeaders()
131 requestOut = new BufferedOutputStream(socketOut, bytes.length + contentLength); in writeRequestHeaders()
DResponseHeaders.java110 private int contentLength = -1; field in ResponseHeaders
168 contentLength = Integer.parseInt(value); in ResponseHeaders()
255 return contentLength; in getContentLength()
DRetryableOutputStream.java64 public synchronized int contentLength() { in contentLength() method in RetryableOutputStream
DHttpEngine.java600 int contentLength = ((RetryableOutputStream) requestBodyOut).contentLength(); in readResponse() local
601 requestHeaders.setContentLength(contentLength); in readResponse()
DHttpsURLConnectionImpl.java365 public void setFixedLengthStreamingMode(int contentLength) { in setFixedLengthStreamingMode() argument
366 delegate.setFixedLengthStreamingMode(contentLength); in setFixedLengthStreamingMode()
/external/oauth/core/src/main/java/net/oauth/client/
DURLConnectionClient.java73 String contentLength = null; in execute() local
78 contentLength = header.getValue(); in execute()
88 if (contentLength != null) { in execute()
90 .setFixedLengthStreamingMode(Integer.parseInt(contentLength)); in execute()
/external/oauth/core/src/main/java/net/oauth/client/httpclient4/
DHttpMethodResponse.java109 long contentLength = r.getEntity().getContentLength(); in dump() local
110 if (contentLength >= 0) { in dump()
111 request.append("Content-Length: ").append(contentLength).append(EOL); in dump()
/external/okhttp/src/main/java/com/squareup/okhttp/
DOkHttpConnection.java786 public void setFixedLengthStreamingMode(int contentLength) { in setFixedLengthStreamingMode() argument
793 if (contentLength < 0) { in setFixedLengthStreamingMode()
796 this.fixedContentLength = contentLength; in setFixedLengthStreamingMode()
/external/webkit/Source/WebKit2/WebProcess/InjectedBundle/
DInjectedBundlePageResourceLoadClient.cpp64 …ntentLengthForResource(WebPage* page, WebFrame* frame, uint64_t identifier, uint64_t contentLength) in didReceiveContentLengthForResource() argument
69 …eceiveContentLengthForResource(toAPI(page), toAPI(frame), identifier, contentLength, m_client.clie… in didReceiveContentLengthForResource()
DInjectedBundlePageResourceLoadClient.h52 …dReceiveContentLengthForResource(WebPage*, WebFrame*, uint64_t identifier, uint64_t contentLength);
/external/webkit/Source/WebKit2/UIProcess/
DWebResourceLoadClient.cpp67 …urce(WebPageProxy* page, WebFrameProxy* frame, uint64_t resourceIdentifier, uint64_t contentLength) in didReceiveContentLengthForResource() argument
72 …ntentLengthForResource(toAPI(page), toAPI(frame), resourceIdentifier, contentLength, m_client.clie… in didReceiveContentLengthForResource()
DWebResourceLoadClient.h49 …gthForResource(WebPageProxy*, WebFrameProxy*, uint64_t resourceIdentifier, uint64_t contentLength);
/external/apache-harmony/support/src/test/java/tests/support/
DSupport_HttpServer.java220 boolean authenticated = false, contentLength = false, chunked = false; in run()
239 if (contentLength) { in run()
242 contentLength = true; in run()
260 if (contentLength && chunked) { in run()
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DMockWebServer.java397 int contentLength = -1; in readRequest() local
403 if (contentLength == -1 && lowercaseHeader.startsWith("content-length:")) { in readRequest()
404 contentLength = Integer.parseInt(header.substring(15).trim()); in readRequest()
415 if (contentLength != -1) { in readRequest()
417 transfer(contentLength, in, requestBody); in readRequest()
/external/nist-sip/java/javax/sip/header/
DContentLengthHeader.java9 void setContentLength(int contentLength) throws InvalidArgumentException; in setContentLength() argument
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/
DDTMDocumentImpl.java2091 void appendTextChild(int m_char_current_start,int contentLength) in appendTextChild() argument
2101 int w3 = contentLength; in appendTextChild()
2114 void appendComment(int m_char_current_start,int contentLength) in appendComment() argument
2124 int w3 = contentLength; in appendComment()
2232 int m_char_current_start, int contentLength) in appendAttribute() argument
2259 w3 = contentLength; in appendAttribute()
/external/nist-sip/java/javax/sip/message/
DMessage.java35 void setContentLength(ContentLengthHeader contentLength); in setContentLength() argument
/external/webkit/Source/WebCore/platform/network/curl/
DResourceHandleManager.cpp247 double contentLength = 0; in headerCallback() local
248 err = curl_easy_getinfo(h, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &contentLength); in headerCallback()
249 d->m_response.setExpectedContentLength(static_cast<long long int>(contentLength)); in headerCallback()

12