dea.webUtils
Class PageUtils

java.lang.Object
  extended bydea.webUtils.PageUtils
All Implemented Interfaces:
IDebugLevels

public class PageUtils
extends java.lang.Object
implements IDebugLevels

Title: PageUtils
Description: Class for tracking page views and adding change / new icon to links
Copyright: Copyright (c) 2004
Company: RMRR

@author David Abigt
@version 1.0


Field Summary
 
Fields inherited from interface dea.common.IDebugLevels
BASIC, DEBUG_ALL, ERROR, METH_DETAIL, METH_ENTER, METH_EXIT, METH_EXT, METH_GET, METH_SET, METH_VARS, SHOW_PASS
 
Constructor Summary
PageUtils()
           
 
Method Summary
static int count(java.lang.String cntName)
          Retrieves page count from the DB by count name
static java.lang.String micon(java.lang.String link)
          Select icon by mod date.
static java.lang.String showMths(double mths)
          Displays mths as X yrs Y mths
static java.lang.String viewSrc(ServletContext application, java.lang.String path, java.lang.String msg)
          gen line for source list in format of:
mod date[spacer/chg icon]
link to source via ViewSourceServlet
msg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageUtils

public PageUtils()
Method Detail

count

public static int count(java.lang.String cntName)
Retrieves page count from the DB by count name

Parameters:
cntName -
Returns:
int number of page views

micon

public static java.lang.String micon(java.lang.String link)
Select icon by mod date.

Parameters:
link -
Returns:
HTML string for mod date icon

viewSrc

public static java.lang.String viewSrc(ServletContext application,
                                       java.lang.String path,
                                       java.lang.String msg)
gen line for source list in format of:
mod date[spacer/chg icon]
link to source via ViewSourceServlet
msg

Parameters:
path -
msg -
Returns:
String

showMths

public static java.lang.String showMths(double mths)
Displays mths as X yrs Y mths

Parameters:
mths -
Returns:
String


Copyright © 2001-2005 Round Mountain Rescue Ranch. All Rights Reserved.