More information


de.spieleck.pcs.http
Class XmlControllerConfig

java.lang.Object
  |
  +--de.spieleck.pcs.http.XmlControllerConfig
All Implemented Interfaces:
ConfigVerify.Acceptor, ControllerConfig

public class XmlControllerConfig
extends java.lang.Object
implements ControllerConfig

XML based implementation of a ControllerConfig


Fields inherited from interface de.spieleck.pcs.http.ControllerConfig
ROOT_NODE
 
Constructor Summary
XmlControllerConfig(java.lang.String file)
          Creates a new instance of XmlControllerConfig
 
Method Summary
 boolean accept(ConfigNode node)
          indicates wheter a given ConfigNode is accepted by this object
 ServiceInfo getServiceInfo(java.lang.String name)
          returns the ServiceInfo object related to a Service with the given name
 java.lang.String getStyleSheetAbsoluteFileName(java.lang.String relativFileName)
          convenience method for getting the absolute path of the given file relativ to the configured stylesheet directories. the named service
 java.lang.String[] getStyleSheetDirs()
          returns the names of the directories, where stylesheets can be found
 boolean useJTidy()
          determines whether or not to use JTidy to parse HTML output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlControllerConfig

public XmlControllerConfig(java.lang.String file)
                    throws ControllerException
Creates a new instance of XmlControllerConfig
Method Detail

getServiceInfo

public ServiceInfo getServiceInfo(java.lang.String name)
                           throws ControllerException
returns the ServiceInfo object related to a Service with the given name
Specified by:
getServiceInfo in interface ControllerConfig

getStyleSheetDirs

public java.lang.String[] getStyleSheetDirs()
returns the names of the directories, where stylesheets can be found
Specified by:
getStyleSheetDirs in interface ControllerConfig

useJTidy

public boolean useJTidy()
determines whether or not to use JTidy to parse HTML output
Specified by:
useJTidy in interface ControllerConfig

getStyleSheetAbsoluteFileName

public java.lang.String getStyleSheetAbsoluteFileName(java.lang.String relativFileName)
                                               throws ControllerException
convenience method for getting the absolute path of the given file relativ to the configured stylesheet directories. the named service
Specified by:
getStyleSheetAbsoluteFileName in interface ControllerConfig

accept

public boolean accept(ConfigNode node)
indicates wheter a given ConfigNode is accepted by this object
Specified by:
accept in interface ConfigVerify.Acceptor

More information