Class SEOURLCache

  • java.lang.Object

  • public class SEOURLCache
    extends java.lang.Object
    This class caches valid results from the URL parser that parses the SEO URLs. Given the SEO URL, the store Id of the URL and the store URL keyword, the class invokes the parser when the URL is not already cached in the system. The parser parses the SEO URL and generates a parser result which is serialized and saved in the cache.

    The parser generates an instance of SEOURLParserResult class.

    Successive invocations for the same URL would result in a cache hit and the serialized data from the cache is retrieved as is.

    Any thrown by the parser is caught by the cache.In this case, the cache automatically constructs an invalid parser result instance and saves it in the cache. It invokes the parser to construct the invalid URL result in this case.

    See Also:},},},}
    • Field Summary

      Modifier and Type Field and Description
      static java.lang.String CLASSNAME
      The class name field.
      static java.lang.String COPYRIGHT
      IBM copyright field.
    • Constructor Summary

      Constructor and Description
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static SEOURLParserResult parseURL(java.lang.Integer storeId, java.lang.String seoURLToParse, java.lang.String storeURLKeyword)
      This method parses the SEO URL specified and generates the parser result.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail


        public static final java.lang.String CLASSNAME
        The class name field.

        public static final java.lang.String COPYRIGHT
        IBM copyright field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SEOURLCache

        public SEOURLCache()
    • Method Detail

      • parseURL

        public static SEOURLParserResult parseURL(java.lang.Integer storeId,
                                                  java.lang.String seoURLToParse,
                                                  java.lang.String storeURLKeyword)
                                           throws SEOApplicationException
        This method parses the SEO URL specified and generates the parser result. If the cache is enabled and the URL is previously seen, the method fetches the cached parser result.
        storeId - The store Id of the store to which the URL belongs.
        seoURLToParse - The URL to be parsed.
        storeURLKeyword - The URL keyword that identifies the store in the URL.
        The SEOURLParserResult instance that indicates the result of parsing the URL.
        See Also: