Skip to content

prefix substitution documented but disabled #134

Description

@rwalkerands

The reference documentation says of prefixes in the value configured in web.xml for initialSpecFile that:

"The string {file} in the prefix is replaced by the base of the filename with any trailing .ttl removed. The string {api} in the prefix is replaced by the local name(s) of the API resouce(s) in the spec."

Except that this doesn't happen, because:

  • The only reference to the strings {file} and {api} in the (Java) code is in the setUriTemplate() method of elda-lda/src/main/java/com/epimorphics/lda/routing/ServletUtils.java.
  • In elda-lda/src/main/java/com/epimorphics/lda/routing/ServletUtils.java, the call in registerModel() to the setUriTemplate() method has been "commented out"; it appears as:
if (false) setUriTemplatePrefix( prefixPath, filePath, api );

It seems this happened in commit b7e0e7e (23 November 2012), commit comment "Revised prefixed routing to use a map in DefauktRouter rather than extendeding the uri templates."

The commit comment suggests the feature should be available some other way, but it wasn't clear by reading the diff of that commit what that other way would be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions