Class PreferredUrlHandler


  • public class PreferredUrlHandler
    extends Object
    Preferred URL handling - reference implementation for the Sirsi Web2 Bridge.

    Examine each search result record: based on the connector in use, locate the preferred URL (if any) provided.

    Add your own handler logic here.

    • Field Detail

      • _preferredUrlConnectors

        public static final ArrayList _preferredUrlConnectors
        Connectors that can provide "preferred URLs"
    • Constructor Detail

      • PreferredUrlHandler

        public PreferredUrlHandler()
    • Method Detail

      • getUrl

        public static String getUrl​(String connector,
                                    Element dataElement)
        Fetch the preferred URL. This method is invoked for every result record.
        Parameters:
        connector - Connector name
        dataElement - The result record (DATA element) to inspect
        Returns:
        The preferred URL (null if none)