Home
last modified time | relevance | path

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

12

/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/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/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 …]
DHttp2xStream.java244 StatusLine statusLine = StatusLine.parse(version + " " + status); in readSpdy3HeadersList() local
247 .code(statusLine.code) in readSpdy3HeadersList()
248 .message(statusLine.message) in readSpdy3HeadersList()
269 StatusLine statusLine = StatusLine.parse("HTTP/1.1 " + status); in readHttp2HeadersList() local
272 .code(statusLine.code) in readHttp2HeadersList()
273 .message(statusLine.message) in readHttp2HeadersList()
DHttp1xStream.java186 StatusLine statusLine = StatusLine.parse(source.readUtf8LineStrict()); in readResponse() local
189 .protocol(statusLine.protocol) in readResponse()
190 .code(statusLine.code) in readResponse()
191 .message(statusLine.message) in readResponse()
194 if (statusLine.code != HTTP_CONTINUE) { in readResponse()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/
DStatusLine.java31 public static StatusLine parse(String statusLine) throws IOException { in parse() argument
38 if (statusLine.startsWith("HTTP/1.")) { in parse()
39 if (statusLine.length() < 9 || statusLine.charAt(8) != ' ') { in parse()
40 throw new ProtocolException("Unexpected status line: " + statusLine); in parse()
42 int httpMinorVersion = statusLine.charAt(7) - '0'; in parse()
49 throw new ProtocolException("Unexpected status line: " + statusLine); in parse()
51 } else if (statusLine.startsWith("ICY ")) { in parse()
56 throw new ProtocolException("Unexpected status line: " + statusLine); in parse()
60 if (statusLine.length() < codeStart + 3) { in parse()
61 throw new ProtocolException("Unexpected status line: " + statusLine); in parse()
[all …]
DHttp2xStream.java246 StatusLine statusLine = StatusLine.parse(version + " " + status); in readSpdy3HeadersList() local
249 .code(statusLine.code) in readSpdy3HeadersList()
250 .message(statusLine.message) in readSpdy3HeadersList()
271 StatusLine statusLine = StatusLine.parse("HTTP/1.1 " + status); in readHttp2HeadersList() local
274 .code(statusLine.code) in readHttp2HeadersList()
275 .message(statusLine.message) in readHttp2HeadersList()
DHttp1xStream.java188 StatusLine statusLine = StatusLine.parse(source.readUtf8LineStrict()); in readResponse() local
191 .protocol(statusLine.protocol) in readResponse()
192 .code(statusLine.code) in readResponse()
193 .message(statusLine.message) in readResponse()
196 if (statusLine.code != HTTP_CONTINUE) { in readResponse()
/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.java200 StatusLine statusLine = null; in openConnection() local
226 statusLine = proxyConnection.parseResponseHeader(headers); in openConnection()
227 statusCode = statusLine.getStatusCode(); in openConnection()
273 ProtocolVersion version = statusLine.getProtocolVersion(); in openConnection()
278 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/okhttp/repackaged/okhttp-android-support/src/main/java/com/android/okhttp/internal/huc/
DJavaApiConverter.java99 StatusLine statusLine = StatusLine.parse(extractStatusLine(httpUrlConnection)); in createOkResponseForCachePut() local
100 okResponseBuilder.protocol(statusLine.protocol); in createOkResponseForCachePut()
101 okResponseBuilder.code(statusLine.code); in createOkResponseForCachePut()
102 okResponseBuilder.message(statusLine.message); in createOkResponseForCachePut()
226 StatusLine statusLine = StatusLine.parse(extractStatusLine(javaResponse)); in createOkResponseForCacheGet() local
227 okResponseBuilder.protocol(statusLine.protocol); in createOkResponseForCacheGet()
228 okResponseBuilder.code(statusLine.code); in createOkResponseForCacheGet()
229 okResponseBuilder.message(statusLine.message); in createOkResponseForCacheGet()
/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/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/volley/src/main/java/com/android/volley/toolbox/
DBaseHttpStack.java71 StatusLine statusLine = in performRequest() local
74 BasicHttpResponse apacheResponse = new BasicHttpResponse(statusLine); in performRequest()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DCache.java539 StatusLine statusLine = StatusLine.parse(source.readUtf8LineStrict()); in Entry() local
540 protocol = statusLine.protocol; in Entry()
541 code = statusLine.code; in Entry()
542 message = statusLine.message; in Entry()
/external/robolectric-shadows/shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/
DTestHttpResponse.java26 private TestStatusLine statusLine = new TestStatusLine(); field in TestHttpResponse
57 return statusLine; in getStatusLine()
DHttpResponseStub.java18 @Override public void setStatusLine(StatusLine statusLine) { in setStatusLine() argument
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DCache.java541 StatusLine statusLine = StatusLine.parse(source.readUtf8LineStrict()); in Entry() local
542 protocol = statusLine.protocol; in Entry()
543 code = statusLine.code; in Entry()
544 message = statusLine.message; in Entry()
/external/grpc-grpc-java/okhttp/src/main/java/io/grpc/okhttp/
DOkHttpClientTransport.java563 StatusLine statusLine = StatusLine.parse(readUtf8LineStrictUnbuffered(source)); in createHttpProxySocket() local
566 if (statusLine.code < 200 || statusLine.code >= 300) { in createHttpProxySocket()
582 statusLine.code, statusLine.message, body.readUtf8()); in createHttpProxySocket()
/external/nist-sip/java/gov/nist/javax/sip/header/
DHeaderFactoryExt.java54 public SipStatusLine createStatusLine(String statusLine) throws ParseException; in createStatusLine() argument

12