Home
last modified time | relevance | path

Searched refs:statusLine (Results 1 – 19 of 19) sorted by relevance

/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DStatusLine.java29 public static StatusLine parse(String statusLine) throws IOException { in parse() argument
36 if (statusLine.startsWith("HTTP/1.")) { in parse()
37 if (statusLine.length() < 9 || statusLine.charAt(8) != ' ') { in parse()
38 throw new ProtocolException("Unexpected status line: " + statusLine); in parse()
40 int httpMinorVersion = statusLine.charAt(7) - '0'; in parse()
47 throw new ProtocolException("Unexpected status line: " + statusLine); in parse()
49 } else if (statusLine.startsWith("ICY ")) { in parse()
54 throw new ProtocolException("Unexpected status line: " + statusLine); in parse()
58 if (statusLine.length() < codeStart + 3) { in parse()
59 throw new ProtocolException("Unexpected status line: " + statusLine); in parse()
[all …]
DHttpConnection.java191 StatusLine statusLine = StatusLine.parse(source.readUtf8LineStrict()); in readResponse() local
194 .protocol(statusLine.protocol) in readResponse()
195 .code(statusLine.code) in readResponse()
196 .message(statusLine.message); in readResponse()
200 headersBuilder.add(OkHeaders.SELECTED_PROTOCOL, statusLine.protocol.toString()); in readResponse()
203 if (statusLine.code != HTTP_CONTINUE) { in readResponse()
DFramedTransport.java199 StatusLine statusLine = StatusLine.parse(version + " " + status); in readNameValueBlock() local
202 .code(statusLine.code) in readNameValueBlock()
203 .message(statusLine.message) in readNameValueBlock()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DStatusLineTest.java31 StatusLine statusLine = StatusLine.parse("HTTP/1." + version + " " + code + " " + message); in parse() local
32 assertEquals(message, statusLine.message); in parse()
33 assertEquals(Protocol.HTTP_1_1, statusLine.protocol); in parse()
34 assertEquals(code, statusLine.code); in parse()
40 StatusLine statusLine = StatusLine.parse("HTTP/1." + version + " " + code + " "); in emptyMessage() local
41 assertEquals("", statusLine.message); in emptyMessage()
42 assertEquals(Protocol.HTTP_1_1, statusLine.protocol); in emptyMessage()
43 assertEquals(code, statusLine.code); in emptyMessage()
54 StatusLine statusLine = StatusLine.parse("HTTP/1." + version + " " + code); in emptyMessageAndNoLeadingSpace() local
55 assertEquals("", statusLine.message); in emptyMessageAndNoLeadingSpace()
[all …]
/external/nist-sip/java/gov/nist/javax/sip/message/
DSIPResponse.java74 protected StatusLine statusLine; field in SIPResponse
312 if (this.statusLine == null) in setStatusCode()
313 this.statusLine = new StatusLine(); in setStatusCode()
314 this.statusLine.setStatusCode(statusCode); in setStatusCode()
322 return statusLine; in getStatusLine()
329 return statusLine.getStatusCode(); in getStatusCode()
339 if (this.statusLine == null) in setReasonPhrase()
340 this.statusLine = new StatusLine(); in setReasonPhrase()
341 this.statusLine.setReasonPhrase(reasonPhrase); in setReasonPhrase()
348 if (statusLine == null || statusLine.getReasonPhrase() == null) in getReasonPhrase()
[all …]
DMessageFactoryImpl.java296 StatusLine statusLine = new StatusLine(); in createResponse() local
297 statusLine.setStatusCode(statusCode); in createResponse()
301 statusLine.setReasonPhrase(reasonPhrase); in createResponse()
302 sipResponse.setStatusLine(statusLine); in createResponse()
607 StatusLine statusLine = new StatusLine(); in createResponse() local
608 statusLine.setStatusCode(statusCode); in createResponse()
612 statusLine.setReasonPhrase(reason); in createResponse()
613 sipResponse.setStatusLine(statusLine); in createResponse()
663 StatusLine statusLine = new StatusLine(); in createResponse() local
664 statusLine.setStatusCode(statusCode); in createResponse()
[all …]
/external/apache-http/src/org/apache/http/impl/client/
DBasicResponseHandler.java74 StatusLine statusLine = response.getStatusLine(); in handleResponse() local
75 if (statusLine.getStatusCode() >= 300) { in handleResponse()
76 throw new HttpResponseException(statusLine.getStatusCode(), in handleResponse()
77 statusLine.getReasonPhrase()); in handleResponse()
/external/apache-http/android/src/android/net/http/
DRequest.java242 StatusLine statusLine = null; in readResponse()
249 statusLine = httpClientConnection.parseResponseHeader(header); in readResponse()
250 statusCode = statusLine.getStatusCode(); in readResponse()
254 statusLine.toString().length() + " " + statusLine); in readResponse()
256 ProtocolVersion v = statusLine.getProtocolVersion(); in readResponse()
258 statusCode, statusLine.getReasonPhrase()); in readResponse()
347 mConnection.setCanPersist(entity, statusLine.getProtocolVersion(), in readResponse()
DHttpsConnection.java197 StatusLine statusLine = null; in openConnection() local
223 statusLine = proxyConnection.parseResponseHeader(headers); in openConnection()
224 statusCode = statusLine.getStatusCode(); in openConnection()
270 ProtocolVersion version = statusLine.getProtocolVersion(); in openConnection()
275 statusLine.getReasonPhrase()); in openConnection()
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DCacheAdapterTest.java127 final String statusLine = "HTTP/1.1 200 Fantastic"; in put_httpGet() local
131 .setStatus(statusLine) in put_httpGet()
153 assertEquals(statusLine, httpUrlConnection.getHeaderField(null)); in put_httpGet()
168 final String statusLine = "HTTP/1.1 200 Fantastic"; in put_httpPost() local
171 .setStatus(statusLine) in put_httpPost()
192 assertEquals(statusLine, httpUrlConnection.getHeaderField(null)); in put_httpPost()
DJavaApiConverterTest.java103 final String statusLine = "HTTP/1.1 200 Fantastic"; in createOkResponseForCacheGet() local
109 headers.put(null, Collections.singletonList(statusLine)); in createOkResponseForCacheGet()
159 final String statusLine = "HTTP/1.1 200 Fantastic"; in createOkResponseForCacheGet_secure() local
169 headers.put(null, Collections.singletonList(statusLine)); in createOkResponseForCacheGet_secure()
/external/nist-sip/java/gov/nist/javax/sip/parser/
DStatusLineParser.java41 public StatusLineParser(String statusLine) { in StatusLineParser() argument
42 this.lexer = new Lexer("status_lineLexer", statusLine); in StatusLineParser()
DStringMsgParser.java608 public StatusLine parseSIPStatusLine(String statusLine) in parseSIPStatusLine() argument
610 statusLine += "\n"; in parseSIPStatusLine()
611 return new StatusLineParser(statusLine).parse(); in parseSIPStatusLine()
/external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/internal/huc/
DJavaApiConverter.java97 StatusLine statusLine = StatusLine.parse(extractStatusLine(httpUrlConnection)); in createOkResponseForCachePut() local
98 okResponseBuilder.protocol(statusLine.protocol); in createOkResponseForCachePut()
99 okResponseBuilder.code(statusLine.code); in createOkResponseForCachePut()
100 okResponseBuilder.message(statusLine.message); in createOkResponseForCachePut()
224 StatusLine statusLine = StatusLine.parse(extractStatusLine(javaResponse)); in createOkResponseForCacheGet() local
225 okResponseBuilder.protocol(statusLine.protocol); in createOkResponseForCacheGet()
226 okResponseBuilder.code(statusLine.code); in createOkResponseForCacheGet()
227 okResponseBuilder.message(statusLine.message); in createOkResponseForCacheGet()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/org/apache/http/
DTestHttpResponse.java26 private TestStatusLine statusLine = new TestStatusLine(); field in TestHttpResponse
57 return statusLine; in getStatusLine()
DHttpResponseStub.java19 @Override public void setStatusLine(StatusLine statusLine) { in setStatusLine() argument
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DCache.java538 StatusLine statusLine = StatusLine.parse(source.readUtf8LineStrict()); in Entry() local
539 protocol = statusLine.protocol; in Entry()
540 code = statusLine.code; in Entry()
541 message = statusLine.message; in Entry()
/external/nist-sip/java/gov/nist/javax/sip/header/
DHeaderFactoryExt.java54 public SipStatusLine createStatusLine(String statusLine) throws ParseException; in createStatusLine() argument
DHeaderFactoryImpl.java1665 public SipStatusLine createStatusLine(String statusLine) throws ParseException { in createStatusLine() argument
1666 StatusLineParser statusLineParser = new StatusLineParser(statusLine); in createStatusLine()