jason.service.http1_0
Class ComponentFactory

java.lang.Object
  |
  +--jason.service.http1_0.ComponentFactory

public class ComponentFactory
extends java.lang.Object

Abstract factory for the Server component. Each main element of the AWS server is provided by this class. It hides how the element are found. Singleton mecanism is used for minimized element allocation. To work correctly, the ComponentFactory need to know how to instantiate each element. The Server Config is a configuration element that provides information for this factory.

Since:
1.0

Constructor Summary
ComponentFactory(Service service)
           
 
Method Summary
 java.util.Vector getBuilding()
           
 Cache getCache()
           
 java.util.Vector getCgiBin()
           
 java.util.Vector getCgiJava()
           
 java.util.Vector getDisabled()
           
 IntDocFactory getDocFactory()
           
 java.lang.String getErrorPage()
           
 java.util.Hashtable getHtMime()
           
 Log getLog()
           
 java.lang.String getMainPage()
           
 java.lang.String getMapping(java.lang.String path)
           
 java.lang.String getMimeType(java.lang.String ext)
           
 int getPort()
           
 java.lang.String getSource()
           
protected  void loadComponents()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentFactory

public ComponentFactory(Service service)
                 throws ConfigException
Parameters:
service - the Service
Throws:
ConfigException - if an error occurs
Method Detail

loadComponents

protected void loadComponents()
                       throws ConfigException
ConfigException

getMimeType

public java.lang.String getMimeType(java.lang.String ext)

getDocFactory

public IntDocFactory getDocFactory()

getCache

public Cache getCache()

getLog

public Log getLog()

getHtMime

public java.util.Hashtable getHtMime()

getPort

public int getPort()

getSource

public java.lang.String getSource()

getMainPage

public java.lang.String getMainPage()

getErrorPage

public java.lang.String getErrorPage()

getBuilding

public java.util.Vector getBuilding()

getDisabled

public java.util.Vector getDisabled()

getCgiJava

public java.util.Vector getCgiJava()

getCgiBin

public java.util.Vector getCgiBin()

getMapping

public java.lang.String getMapping(java.lang.String path)