Package org.basex.util.http
Class HttpResponse
java.lang.Object
org.basex.util.http.HttpResponse
HTTP response handler. Reads HTTP response and constructs the
<http:response/> element.- Author:
- BaseX Team 2005-21, BSD License, Rositsa Shadura
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetResponse(HttpURLConnection conn, boolean body, String mtype) Constructs http:response element and reads HTTP response content.
-
Constructor Details
-
HttpResponse
Constructor.- Parameters:
info- input infooptions- database options
-
-
Method Details
-
getResponse
public Value getResponse(HttpURLConnection conn, boolean body, String mtype) throws IOException, QueryException Constructs http:response element and reads HTTP response content.- Parameters:
conn- HTTP connectionbody- also return bodymtype- media type provided by the user (can benull)- Returns:
- result sequence of http:response and content items
- Throws:
IOException- I/O ExceptionQueryException- query exception
-