public class SEOURLCache
extends java.lang.Object
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.
com.ibm.commerce.seo.url.parser.SEOURLParserResult}
,
com.ibm.commerce.seo.url.parser.SEOURLParserResult#getCacheableData()}
,
com.ibm.commerce.seo.url.parser.SEOURLParserResultImpl#populateObjectFromCacheData(Collection)}
,
com.ibm.commerce.seo.url.parser.SEOURLParser}
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The class name field.
|
static java.lang.String |
COPYRIGHT
IBM copyright field.
|
Constructor and Description |
---|
SEOURLCache() |
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.
|
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
public static SEOURLParserResult parseURL(java.lang.Integer storeId, java.lang.String seoURLToParse, java.lang.String storeURLKeyword) throws SEOApplicationException
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.SEOApplicationException
SEOURLParserResult