damnhandy / Handy-URI-Templates

A Java URI Template processor implementing RFC6570

Home Page:https://damnhandy.github.io/Handy-URI-Templates/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Return java.net.URI in the UriTemplate.expand method?

cskinfill opened this issue · comments

should the expand method(s) return a URI instance rather then a String?

I thought about that early on, but many of the tools that I intended this to work with don't make use of java.net.URI. For example:

There's more but I think you get the picture. I didn't really make much sense to create an instance of a class that wasn't going to be used. With that said, String was the lowest common denominator.