org.cofax
Class OracleRedirection
java.lang.Object
|
+--org.cofax.Redirection
|
+--org.cofax.OracleRedirection
- public class OracleRedirection
- extends Redirection
Provides redirection capapbility for Cofax.
A subclass of Redirection
.
SqlRedirection uses a DataStore class and exectutes a series of
SQL queries to initialize it's private fields. These fields
provide lookups for redirections.
There is no mention of the SqlRedirection
class in CofaxServlet
.
Redirection
classes are listed in the configuration.
- Author:
- Rajiv Pant, Hung Dao, Derek Dinh, Karl Martino
Method Summary |
static java.lang.String |
getDatePreferred(int dayOfWeekNumberPre,
int rollOverTime,
java.lang.String style)
Returns a date, based upon a url pattern and rollOverTime, the date from the path |
void |
getRedirectDefaultSection(DataStore db,
java.lang.String tag,
java.util.HashMap publicationSection,
java.util.HashMap publicationRollOverTime)
Returns a set of content by publication = tag value (inquirer => front_page; inquirer => 5). |
java.lang.String |
getRedirection(java.lang.String pathInfo)
Get's a redirection |
void |
getRedirectMonthDay(DataStore db,
java.lang.String tag,
java.util.HashMap monthInNumber,
java.util.HashMap dayInNumber)
|
void |
init(DataStore db,
java.lang.String dataStoreName)
To be ran once before using the redirection class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OracleRedirection
public OracleRedirection()
init
public void init(DataStore db,
java.lang.String dataStoreName)
- To be ran once before using the redirection class.
- Overrides:
init
in class Redirection
getRedirectDefaultSection
public final void getRedirectDefaultSection(DataStore db,
java.lang.String tag,
java.util.HashMap publicationSection,
java.util.HashMap publicationRollOverTime)
- Returns a set of content by publication = tag value (inquirer => front_page; inquirer => 5).
getRedirectMonthDay
public final void getRedirectMonthDay(DataStore db,
java.lang.String tag,
java.util.HashMap monthInNumber,
java.util.HashMap dayInNumber)
getDatePreferred
public static java.lang.String getDatePreferred(int dayOfWeekNumberPre,
int rollOverTime,
java.lang.String style)
- Returns a date, based upon a url pattern and rollOverTime, the date from the path
- Parameters:
dayOfWeekNumberPre
- contained the dayInNumber from sun-mon equals 1-7rollOverTime
- contained the number in hours from 0-23style
- is the formated date return, example like "yyyy/MM/dd" = "2000/10/04"
getRedirection
public java.lang.String getRedirection(java.lang.String pathInfo)
- Get's a redirection
- Overrides:
getRedirection
in class Redirection
Copyright 2001 KnightRidder.com. All Rights Reserved.