MCPcopy Index your code
hub / github.com/amadeus4dev/amadeus-java / parse

Method parse

src/main/java/com/amadeus/Response.java:61–66  ·  view source on GitHub ↗
(HTTPClient client)

Source from the content-addressed store, hash-verified

59
60 // Tries to parse the raw response from the request.
61 protected void parse(HTTPClient client) {
62 parseStatusCode();
63 if (this.statusCode != 204) {
64 parseData();
65 }
66 }
67
68 // Detects of any exceptions have occured and throws the appropriate exceptions.
69 protected void detectError(HTTPClient client) throws ResponseException {

Callers 15

executeMethod · 0.95
testParseMethod · 0.80
testParseObjectDataMethod · 0.80
testNoDataMethod · 0.80
testEmptyBodyMethod · 0.80
testNoContentMethod · 0.80
testEmptyConnectionMethod · 0.80
testErrorResponseMethod · 0.80
detectServerExceptionMethod · 0.80

Calls 2

parseStatusCodeMethod · 0.95
parseDataMethod · 0.95

Tested by 15

testParseMethod · 0.64
testParseObjectDataMethod · 0.64
testNoDataMethod · 0.64
testEmptyBodyMethod · 0.64
testNoContentMethod · 0.64
testEmptyConnectionMethod · 0.64
testErrorResponseMethod · 0.64
detectServerExceptionMethod · 0.64
detectClientExceptionMethod · 0.64