Creates a URL from the function arguments. @param qc query context @return generated url @throws QueryException query exception
(final QueryContext qc)
| 36 | * @throws QueryException query exception |
| 37 | */ |
| 38 | final String createUrl(final QueryContext qc) throws QueryException { |
| 39 | final byte[] href = toToken(arg(0), qc); |
| 40 | final XQMap parameters = toEmptyMap(arg(1), qc); |
| 41 | final byte[] anchor = toZeroToken(arg(2), qc); |
| 42 | |
| 43 | final TokenBuilder url = createUrl(href, parameters, '&', info); |
| 44 | if(anchor.length > 0) url.add('#').add(Token.encodeUri(anchor, UriEncoder.URI)); |
| 45 | return url.toString(); |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Creates a URL from the function arguments. |
no test coverage detected