Skip to content
The Jenkins Controller is preparing for shutdown. No new builds can be started.
Success

Changes

Summary

  1. Bug 1063: Uri: Refine API doc; Add create(Encoded ..) ; Provide common (details)
Commit c97e35377aea70cb293cabdd205bcc5da64b95c6 by Sven Gothel
Bug 1063: Uri: Refine API doc; Add create(Encoded ..) ; Provide common impl. for getNormalized(), getDirectory(), getParent() and getRelativeOf()

- Refine API doc
  - Add notion of {@code host} and {@code port} validation

- Add create(Encoded ..), allowing creation of variants w/o re-encoding

- Provide common impl. for getNormalized(), getDirectory(), getParent() and getRelativeOf()
  Above feature methods share common goals, hence use same implementation:
  - If opaque, cut-off query and merge after operation
  - cleanup path, i.e. /dummy/../test/ -> /test/
  - cutoff file, dir - if requested
  - append optional appendix and cleanup again

  Return behavior various thought, i.e. null, this or allow exception.

Enhanced test of above features.
The file was modifiedsrc/junit/com/jogamp/common/net/TestUri02Composing.java (diff)
The file was modifiedsrc/java/com/jogamp/common/net/Uri.java (diff)
The file was modifiedmake/scripts/runtest.sh (diff)
The file was modifiedsrc/java/com/jogamp/common/net/UriQueryProps.java (diff)
The file was modifiedsrc/junit/com/jogamp/common/net/TestUri01.java (diff)