java - Why is this URI valid by RCF 2396 standards? -
i playing around non stringy types application loader i've been developing. typo, forgot include protocol part of specific uri. expected java test fail due invalid uri... statement seems work...
uri uri = uri.create("contacts.addresses.genericaddress")
to me, theres no standard using dot scheme part... , thought scheme part required?
does know why?
i'll add comment answer because think it's correct:
from java uri documentation: "specified grammar in rfc 2396, appendix a" , appendix allows uri relative path, no host name or scheme. "this.and.that" might file name "this.html" (dot's valid file element name -- i.e., pchars in path segment).
Comments
Post a Comment