Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.obinary.cms.beans
Class ListenerInfo  view ListenerInfo download ListenerInfo.java

java.lang.Object
  extended bycom.obinary.cms.beans.ListenerInfo

public class ListenerInfo
extends java.lang.Object

User: sameercharles Date: Apr 28, 2003 Time: 11:20:59 AM

Version:
1.0

Field Summary
private static java.util.Hashtable cachedContent
           
private static java.util.Iterator ipList
           
private static java.lang.String START_PAGE
           
 
Constructor Summary
ListenerInfo()
          constructor
ListenerInfo(boolean init)
          constructor Initializes and cache content
 
Method Summary
private static void cacheContent()
          Cache listener content from the config repository
static java.util.Hashtable getInfo(java.lang.String key)
          get access info of the requested IP
static void init()
          reads listener config from the config repository and caches its content in to the hash table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_PAGE

private static final java.lang.String START_PAGE
See Also:
Constant Field Values

ipList

private static java.util.Iterator ipList

cachedContent

private static java.util.Hashtable cachedContent
Constructor Detail

ListenerInfo

public ListenerInfo()
constructor


ListenerInfo

public ListenerInfo(boolean init)
             throws ElementNotFoundException,
                    RepositoryException
constructor Initializes and cache content

Method Detail

init

public static void init()
                 throws ElementNotFoundException,
                        RepositoryException

reads listener config from the config repository and caches its content in to the hash table

FIXME : in version 2 there will be a seperate conf for URI - isProtected mapping , which will allow to have sub URI to be free or protected


cacheContent

private static void cacheContent()

Cache listener content from the config repository


getInfo

public static java.util.Hashtable getInfo(java.lang.String key)
                                   throws java.lang.Exception

get access info of the requested IP