MCPcopy Create free account
hub / github.com/BaseXdb/basex / boundary

Method boundary

basex-core/src/main/java/org/basex/util/http/Payload.java:227–231  ·  view source on GitHub ↗

Extracts the encapsulation boundary from the media type. @param type media type @return boundary or null @throws QueryException query exception

(final MediaType type)

Source from the content-addressed store, hash-verified

225 * @throws QueryException query exception
226 */
227 private byte[] boundary(final MediaType type) throws QueryException {
228 final String b = type.parameter(BOUNDARY);
229 if(b == null) throw HC_REQ_X.get(info, "No separation boundary specified");
230 return token(b);
231 }
232
233 /**
234 * Returns a map with multipart form data.

Callers 3

parseMethod · 0.95
multiFormMethod · 0.95
valueMethod · 0.95

Calls 3

getMethod · 0.65
tokenMethod · 0.65
parameterMethod · 0.45

Tested by

no test coverage detected