za.org.coefficient.util.common
Class HardURLConverterChainUtil

java.lang.Object
  extended by za.org.coefficient.util.common.HardURLConverterChainUtil

public class HardURLConverterChainUtil
extends java.lang.Object

Author:
Dylan Etkin

Field Summary
private static HardURLConverter converter
           
 
Constructor Summary
HardURLConverterChainUtil()
           
 
Method Summary
static void addConverter(HardURLConverter val)
          This method is used to register a new URL converter into the chain.
static java.lang.String execute(java.lang.String url)
          Will pass the url throught the registered URL converters returing a new converted URL if one of the converters could handle the url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

converter

private static HardURLConverter converter
Constructor Detail

HardURLConverterChainUtil

public HardURLConverterChainUtil()
Method Detail

addConverter

public static void addConverter(HardURLConverter val)
This method is used to register a new URL converter into the chain.

Parameters:
val - is the implementation of HardURLConverter to add to the chain.

execute

public static java.lang.String execute(java.lang.String url)
Will pass the url throught the registered URL converters returing a new converted URL if one of the converters could handle the url.

Parameters:
url - is the URL that came in the request
Returns:
is the URL that should be redirected to, null if none of the registered converters could handle the URL.


Copyright CSIR. All Rights Reserved.