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

Quick Search    Search Deep

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

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

public class ServerInfo
extends java.lang.Object

User: sameercharles Date: Jun 2, 2003 Time: 3:06:43 PM

Version:
1.0

Field Summary
private static java.util.Hashtable cachedCacheableURIMapping
           
private static java.util.Hashtable cachedContent
           
private static java.util.Hashtable cachedURImapping
           
private static Ticket masterTicket
           
private static java.lang.String START_PAGE
           
 
Constructor Summary
ServerInfo()
          constructor
ServerInfo(boolean init)
          constructor Initializes and cache content
 
Method Summary
private static void cacheCacheableURIMappings(com.obinary.cms.core.ContainerList containerList)
           
private static void cacheContent(com.obinary.cms.core.Content page)
          Cache server content from the config repository
private static void cacheURIMappings(com.obinary.cms.core.ContainerList containerList)
           
static java.lang.String get404URI()
           
static java.lang.String getDefaultExtension()
           
static java.lang.String getDefaultMailServer()
           
static Ticket getMasterTicket()
           
static java.lang.String getURIMapping(java.lang.String uri)
           checks for the requested URI mapping in ServerInfo : Servlet Specification 2.3 Section 10 "Mapping Requests to Servlets"
static void init()
           
static boolean isAdmin()
           
static boolean isCacheable()
           
static boolean isCacheable(java.lang.String uri)
           
static boolean isContextProtected()
          checks if the current context is protected ot not this will be changed in version 2 , will be moved to separate coinfig which will allow to define multiple context
 
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

cachedContent

private static java.util.Hashtable cachedContent

cachedURImapping

private static java.util.Hashtable cachedURImapping

cachedCacheableURIMapping

private static java.util.Hashtable cachedCacheableURIMapping

masterTicket

private static Ticket masterTicket
Constructor Detail

ServerInfo

public ServerInfo()
constructor


ServerInfo

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

Method Detail

init

public static void init()
                 throws ElementNotFoundException,
                        RepositoryException

cacheContent

private static void cacheContent(com.obinary.cms.core.Content page)

Cache server content from the config repository


cacheURIMappings

private static void cacheURIMappings(com.obinary.cms.core.ContainerList containerList)

cacheCacheableURIMappings

private static void cacheCacheableURIMappings(com.obinary.cms.core.ContainerList containerList)

get404URI

public static java.lang.String get404URI()

getURIMapping

public static java.lang.String getURIMapping(java.lang.String uri)

checks for the requested URI mapping in ServerInfo : Servlet Specification 2.3 Section 10 "Mapping Requests to Servlets"


isContextProtected

public static boolean isContextProtected()

checks if the current context is protected ot not this will be changed in version 2 , will be moved to separate coinfig which will allow to define multiple context


getDefaultExtension

public static java.lang.String getDefaultExtension()

getDefaultMailServer

public static java.lang.String getDefaultMailServer()

isAdmin

public static boolean isAdmin()

isCacheable

public static boolean isCacheable()

isCacheable

public static boolean isCacheable(java.lang.String uri)

getMasterTicket

public static Ticket getMasterTicket()