public interface SEOURLParserResult
extends java.io.Serializable
SEOURLParser
implementation upon parsing an URL. Upon parsing an
URL, the parser result could be one of the following:
valid
. The token name to token values map would contain the
tokens found in the URL along with their values in the order in which they
were found. The URL pattern that matched would also be made available.
invalid
All the other data would be null.
redirect
. The URL to be redirected to would be made
available.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright field.
|
static java.lang.Integer |
RESULT_STATE_INVALID_URL
The parser result state to indicate that the URL is invalid.
|
static java.lang.Integer |
RESULT_STATE_REDIRECTED_URL
The parser result state to indicate that the URL is redirected.
|
static java.lang.Integer |
RESULT_STATE_VALID_URL
The parser result state to indicate that the URL is valid.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRedirectURL()
Returns the URL to be redirected to in case of a redirected URL.
|
int |
getResultState()
Returns the state of the parser result.
|
java.util.List |
getSEORedirectIds()
This method returns the list of SEORedirect IDs found in an redirected
URL.
|
java.util.List |
getSEOURLKeywordIds()
This method returns the list of URL keyword IDs found in the URL if the
URL is valid or is redirected.
|
java.lang.Integer |
getStoreId()
Returns the store ID of the store to which the parser result belongs.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getTokenNameTokenValuesMap()
Returns a map of token name and token values in case of a valid URL.
|
java.lang.String |
getURL()
Returns the URL for which the parser result is instantiated.
|
java.lang.String |
getURLPatternName()
Returns the matching URL pattern name if the URL is valid.
|
static final java.lang.String COPYRIGHT
static final java.lang.Integer RESULT_STATE_REDIRECTED_URL
static final java.lang.Integer RESULT_STATE_VALID_URL
static final java.lang.Integer RESULT_STATE_INVALID_URL
int getResultState()
java.util.Map<java.lang.String,java.util.List<java.lang.String>> getTokenNameTokenValuesMap()
java.lang.String getRedirectURL()
java.lang.Integer getStoreId()
java.lang.String getURLPatternName()
java.lang.String getURL()
java.util.List getSEOURLKeywordIds()
java.util.List getSEORedirectIds()