org.w3c.jigsaw.servlet
Class ServletPropertiesReader
java.lang.Object
|
+--org.w3c.jigsaw.servlet.ServletPropertiesReader
- public class ServletPropertiesReader
- extends java.lang.Object
- implements httpdPreloadInterface
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SERVLET_PROPS_FILE
public static final java.lang.String SERVLET_PROPS_FILE
SERVLET_BASE_P
public static final java.lang.String SERVLET_BASE_P
ALLOW_DELETE_P
public static final java.lang.String ALLOW_DELETE_P
CODE_P
public static final java.lang.String CODE_P
INIT_ARGS_P
public static final java.lang.String INIT_ARGS_P
DESCRIPTION_P
public static final java.lang.String DESCRIPTION_P
CODEBASE_P
public static final java.lang.String CODEBASE_P
ICON_P
public static final java.lang.String ICON_P
ARGS_SEPARATOR
public static final java.lang.String ARGS_SEPARATOR
STARTUP_P
public static final java.lang.String STARTUP_P
general
protected LookupTable general
servlets
protected LookupTable servlets
frameclass
protected static java.lang.Class frameclass
ServletPropertiesReader
public ServletPropertiesReader()
preload
public void preload(httpd server)
- Load the servlets configuration from servlets.properties.
- Specified by:
- preload in interface httpdPreloadInterface
- Parameters:
server
- the http server to configure
getServletDirectoryReference
protected ResourceReference getServletDirectoryReference(httpd server)
- Get the servlet directory reference.
- Returns:
- a ResourceReference
initializeServlet
protected void initializeServlet(java.lang.String name,
httpd server,
ResourceReference sdir)
- Initialize a servlet or create it if not found
- Parameters:
name
- the servlet's nameserver
- the http server
initialize
protected void initialize(java.lang.String name,
ServletWrapper wrapper,
DirectoryResource parent)
throws InvalidResourceException,
MultipleLockException
- Initialize a ServletWrapper.
- Parameters:
name
- the servlet's namewrapper
- the ServletWrapper (or null)
readProperties
protected void readProperties(java.io.File file)
- Read the servlets.properties file
- Parameters:
file
- the servlets.properties file.