The Uri Path. @return the uri path.
()
| 560 | * @return the uri path. |
| 561 | */ |
| 562 | public String path() { |
| 563 | /* build the fully qualified url with all query parameters */ |
| 564 | StringBuilder path = new StringBuilder(); |
| 565 | if (this.target != null) { |
| 566 | path.append(this.target); |
| 567 | } |
| 568 | if (this.uriTemplate != null) { |
| 569 | path.append(this.uriTemplate.toString()); |
| 570 | } |
| 571 | if (path.length() == 0) { |
| 572 | /* no path indicates the root uri */ |
| 573 | path.append("/"); |
| 574 | } |
| 575 | return path.toString(); |
| 576 | } |
| 577 | |
| 578 | /** |
| 579 | * The Uri Template (relative path) without the host and port. This is the templated path with |