nl.gx.webmanager.services.seo.impl
Class SEOFriendlyURLResolver

java.lang.Object
  extended by nl.gx.webmanager.services.seo.impl.SEOFriendlyURLResolver

public class SEOFriendlyURLResolver
extends java.lang.Object

Provides the Logic to resolve incoming friendly urls. The Search engine Optimization Service provides the functionality of resolving incoming friendly urls to
to there internal representation or redirect old friendly urls to there new ones.

Author:
Hallo Khaznadar

Constructor Summary
SEOFriendlyURLResolver(SEOConfig sEOConfig, GenericIncomingFriendlyURLEntityDAO genericIncomingFriendlyURLEntityDAO)
          Class constructor.
 
Method Summary
 java.lang.String resolve(java.lang.String url, java.lang.String host)
          Resolves the given friendly url for the given host to their internal representation, or to a redirect friendly url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SEOFriendlyURLResolver

public SEOFriendlyURLResolver(SEOConfig sEOConfig,
                              GenericIncomingFriendlyURLEntityDAO genericIncomingFriendlyURLEntityDAO)
Class constructor.

Parameters:
sEOConfig - Reference to the SEOConfig.
genericIncomingFriendlyURLEntityDAO - Reference to the GenericIncomingFriendlyURLEntityDAO.
Method Detail

resolve

public java.lang.String resolve(java.lang.String url,
                                java.lang.String host)
Resolves the given friendly url for the given host to their internal representation, or to a redirect friendly url. When the given url is not friendly an empty . For articles holds that if the friendly url is not live, then also an empty is returned.

Parameters:
url - holding a url.
host - the host name.
Returns:
internal url or a redirect to another friendly url if the given url is a valid friendly url otherwise returns an empty String.


Copyright © 2007-2011 GX Software BV. All Rights Reserved.