Package org.basex.util.http
Class HttpPayload
java.lang.Object
org.basex.util.http.HttpPayload
HTTP payload helper functions.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Constructor Summary
ConstructorsConstructorDescriptionHttpPayload(InputStream input, boolean body, InputInfo info, MainOptions options) Constructor. -
Method Summary
-
Constructor Details
-
HttpPayload
Constructor.- Parameters:
input- input streambody- create bodyinfo- input infooptions- database options
-
-
Method Details
-
multiForm
Returns a map with multipart form data.- Parameters:
type- media type- Returns:
- map with file names and contents
- Throws:
IOException- I/O exceptionQueryException- query exception
-
value
public static Value value(IO input, MainOptions options, MediaType type) throws IOException, QueryException Returns an XQuery value for the specified content type.- Parameters:
input- input sourceoptions- database optionstype- media type- Returns:
- value
- Throws:
IOException- I/O exceptionQueryException- query exception
-