de.scheisseichfindemalkeinen.hoster
Class RedirectManager

java.lang.Object
  extended by de.scheisseichfindemalkeinen.hoster.RedirectManager

public class RedirectManager
extends java.lang.Object

Class which holds the redirect-classes


Constructor Summary
RedirectManager()
          Constructor
 
Method Summary
 java.lang.String checkURLForRedirect(java.lang.String url)
          Returns the redirected URL or the original URL if there was no redirect-class available for the URL
 java.util.Vector<java.lang.String> getRedirectInfo()
          Returns an array containing Strings with name and version of the classes
 java.lang.String getRedirectVersion(java.lang.String name)
          Returns the version of a Redirect-class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedirectManager

public RedirectManager()
Constructor

Method Detail

getRedirectVersion

public java.lang.String getRedirectVersion(java.lang.String name)
Returns the version of a Redirect-class

Parameters:
name - Name of the Redirect-class
Returns:
Version

getRedirectInfo

public java.util.Vector<java.lang.String> getRedirectInfo()
Returns an array containing Strings with name and version of the classes

Returns:
Array containing Strings with name and version of the classes

checkURLForRedirect

public java.lang.String checkURLForRedirect(java.lang.String url)
Returns the redirected URL or the original URL if there was no redirect-class available for the URL

Parameters:
url - Redirect-URL
Returns:
Container-URL