Class EmulatorBuilder
java.lang.Object
org.zkoss.zats.mimic.impl.emulator.EmulatorBuilder
The builder for creating new emulator.
- Author:
- pao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddContentRoot(String contentRootPathOrUrl) add additional resource root directory.addContentRoot(URL contentRoot) add additional resource root directory.create()create new emulator using current configuration.setContextPath(String contextPath) setDescriptor(String descriptor) specify the path of web.xml.
-
Constructor Details
-
EmulatorBuilder
public EmulatorBuilder()
-
-
Method Details
-
setWebInf
-
setWebInf
-
addContentRoot
add additional resource root directory.- Parameters:
contentRootPathOrUrl- directory path.- Returns:
- self reference.
-
addContentRoot
add additional resource root directory.- Parameters:
contentRoot- directory url.- Returns:
- self reference.
-
setDescriptor
specify the path of web.xml. default value is "./WEB-INF/web.xml".- Parameters:
descriptor- path of web.xml- Returns:
- self reference.
-
setContextPath
-
create
create new emulator using current configuration.- Returns:
- a new emulator
-