java.lang.Object
org.apache.jena.irix.IRIProviderJDK
- All Implemented Interfaces:
IRIProvider
IRIProvider implemented using java.net.URI.
For information : do not use in production.
Issues with java.net.URI:
- It does not resolve correctly e.g. "http://host" and "path" => "http://hostpath" not "http://host/path"
- Does not resolve with "" correctly.
- Generates file:/path URIs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCheck an IRI, throwIRIExceptionif the string does not conform to the grammar of RFC 3986/3987, or violates additional rules of a URI scheme know to the provider.Create an IRI, throwIRIExceptionif the string does not conform to the grammar of RFC 3986/3987.booleanisStrictMode(String scheme) voidstrictMode(String scheme, boolean runStrict) Run in strict mode for a given URI scheme - the exact definition of "strict" depends on the provider.toString()
-
Constructor Details
-
IRIProviderJDK
public IRIProviderJDK()
-
-
Method Details
-
create
Description copied from interface:IRIProviderCreate an IRI, throwIRIExceptionif the string does not conform to the grammar of RFC 3986/3987.The returned
IRIxmay have additional information about violations of URI schemes; these do not cause an exception.- Specified by:
createin interfaceIRIProvider- Throws:
IRIException
-
check
Description copied from interface:IRIProviderCheck an IRI, throwIRIExceptionif the string does not conform to the grammar of RFC 3986/3987, or violates additional rules of a URI scheme know to the provider.- Specified by:
checkin interfaceIRIProvider- Throws:
IRIException
-
toString
-
strictMode
Description copied from interface:IRIProviderRun in strict mode for a given URI scheme - the exact definition of "strict" depends on the provider. When strict, a provider should implement to the letter of the specifications, including URI-scheme rules. This strictness should be documented.- Specified by:
strictModein interfaceIRIProvider
-
isStrictMode
- Specified by:
isStrictModein interfaceIRIProvider
-