{"id":16304892,"url":"https://github.com/moznion/uribuilder-tiny","last_synced_at":"2025-08-18T11:08:48.769Z","repository":{"id":30545121,"uuid":"34099829","full_name":"moznion/uribuilder-tiny","owner":"moznion","description":"Minimal and smart URI builder for Java","archived":false,"fork":false,"pushed_at":"2023-12-07T09:15:34.000Z","size":173,"stargazers_count":16,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-13T12:41:26.097Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moznion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-04-17T06:12:21.000Z","updated_at":"2023-12-07T07:51:49.000Z","dependencies_parsed_at":"2024-10-28T14:28:37.858Z","dependency_job_id":"fc35eca3-85c8-47e4-bb38-eaaa17caada5","html_url":"https://github.com/moznion/uribuilder-tiny","commit_stats":{"total_commits":119,"total_committers":3,"mean_commits":"39.666666666666664","dds":"0.16806722689075626","last_synced_commit":"9b53d9110d753ac85dc0a494c78e0594ada6a7d4"},"previous_names":["moznion/tiny-uribuilder"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/moznion/uribuilder-tiny","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Furibuilder-tiny","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Furibuilder-tiny/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Furibuilder-tiny/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Furibuilder-tiny/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moznion","download_url":"https://codeload.github.com/moznion/uribuilder-tiny/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Furibuilder-tiny/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270982194,"owners_count":24679447,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T21:05:08.048Z","updated_at":"2025-08-18T11:08:48.747Z","avatar_url":"https://github.com/moznion.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"uribuilder-tiny ![Check](https://github.com/moznion/uribuilder-tiny/workflows/Check/badge.svg) [![Coverage Status](https://coveralls.io/repos/moznion/uribuilder-tiny/badge.svg?branch=master)](https://coveralls.io/r/moznion/uribuilder-tiny?branch=master) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/net.moznion/uribuilder-tiny/badge.svg)](https://maven-badges.herokuapp.com/maven-central/net.moznion/uribuilder-tiny) [![javadoc.io](https://javadocio-badges.herokuapp.com/net.moznion/uribuilder-tiny/badge.svg)](https://javadocio-badges.herokuapp.com/net.moznion/uribuilder-tiny)\n=============\n\nMinimal and smart URI builder for Java.\n\nSynopsis\n---\n\n### Manually use\n\n```java\nMap\u003cString, String\u003e queryParameters = new HashMap\u003c\u003e();\nqueryParameters.put(\"hoge\", \"fuga\");\n\nnew URIBuilderTiny()\n    .setScheme(\"https\")\n    .setHost(\"java.example.com\")\n    .setPort(8080)\n    .setPaths(\"foo\", \"bar\")\n    .appendPaths(\"buz\", \"qux\")\n    .setQueryParameters(queryParameters)\n    .addQueryParameter(\"piyo\", \"hogera\")\n    .setFragment(\"frag\")\n    .build(); // =\u003e same as `new URI(https://java.example.com:8080/foo/bar/buz/qux?hoge=fuga\u0026piyo=hogera#frag)`\n```\n\n### With URI string as initial value\n\n```java\nnew URIBuilderTiny(\"https://java.example.com/foo/bar\")\n    .setPort(8080)\n    .appendPaths(\"buz\", \"qux\")\n    .addQueryParameter(\"hoge\", \"fuga\")\n    .addQueryParameter(\"piyo\", \"hogera\")\n    .setFragment(\"frag\")\n    .build(); // =\u003e same as `new URI(https://java.example.com:8080/foo/bar/buz/qux?hoge=fuga\u0026piyo=hogera#frag)`\n```\n\n### With URI instance as initial value\n\n```java\nnew URIBuilderTiny(new URI(\"https://java.example.com/foo/bar\"))\n    .setPort(8080)\n    .appendPathsByString(\"/buz/qux\")\n    .addQueryParameter(\"hoge\", \"fuga\")\n    .addQueryParameter(\"piyo\", \"hogera\")\n    .setFragment(\"frag\")\n    .build(); // =\u003e same as `new URI(https://java.example.com:8080/foo/bar/buz/qux?hoge=fuga\u0026piyo=hogera#frag)`\n```\n\n### Raw mode (not apply URL encode)\n\n```java\nnew URIBuilderTiny()\n    .setScheme(\"http\")\n    .setRawHost(\"h\u0026ost.example.com\")\n    .setPort(8080)\n    .setRawPaths(Arrays.asList(\"b\u0026uz\", \"q\u0026ux\"))\n    .appendRawPaths(Arrays.asList(\"f\u0026oobar\", \"b\u0026uzqux\"))\n    .setRawQueryParameter(\"h\u0026oge\", \"f\u0026uga\")\n    .addRawQueryParameter(\"p\u0026iyo\", \"p\u0026iyopiyo\")\n    .setRawFragment(\"f\u0026rag\")\n    .build(); // =\u003e same as `http://h\u0026ost.example.com:8080/b\u0026uz/q\u0026ux/f\u0026oobar/b\u0026uzqux?h\u0026oge=f\u0026uga\u0026p\u0026iyo=p\u0026iyopiyo#f\u0026rag`\n```\n\nDescription\n--\n\nuribuilder-tiny is a minimal URI builder for Java.\n\n[URIBuilder](https://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/client/utils/URIBuilder.html)\nof [Apache HttpClient](https://hc.apache.org/httpcomponents-client-ga/) is a similar library.\nIt is a major and useful library. But it has lots of methods that are not much needed,\nlacked some convenient methods (e.g. `appendPaths`) and it is a component of HttpClient so we cannot use it independently.\n\nSo I implement uribuilder-tiny to solve these frustration.\nThis library is minimal and independent from any others.\n\nMethods\n==\n\nPlease see javadoc.\n\n[![javadoc.io](https://javadocio-badges.herokuapp.com/net.moznion/uribuilder-tiny/badge.svg)](https://javadocio-badges.herokuapp.com/net.moznion/uribuilder-tiny)\n\nYou can put any type instance as arguments for `URIBuilderTiny#setPaths()` and `URIBuilderTiny#appendPaths()`.\n\nAnd you can also put any type instance as arguments of value of query parameters for\n`URIBuilderTiny#setQueryParameters()`, `URIBuilderTiny#setQueryParameter()`,\n`URIBuilderTiny#addQueryParameters()` and `URIBuilderTiny#addQueryParameter()`.\n\nIt will call `Object#toString()` for each these instances implicitly to stringify them.\n\nRequires\n==\n\n- Java 7 or later\n\nAuthor\n--\n\nmoznion (\u003cmoznion@gmail.com\u003e)\n\nLicense\n--\n\n```\nThe MIT License (MIT)\nCopyright © 2015 moznion, http://moznion.net/ \u003cmoznion@gmail.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the “Software”), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoznion%2Furibuilder-tiny","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoznion%2Furibuilder-tiny","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoznion%2Furibuilder-tiny/lists"}