Class EmulatorBuilder
- java.lang.Object
-
- org.zkoss.zats.mimic.impl.emulator.EmulatorBuilder
-
public class EmulatorBuilder extends Object
The builder for creating new emulator.- Author:
- pao
-
-
Constructor Summary
Constructors Constructor Description EmulatorBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EmulatorBuilderaddContentRoot(String contentRootPathOrUrl)add additional resource root directory.EmulatorBuilderaddContentRoot(URL contentRoot)add additional resource root directory.Emulatorcreate()create new emulator using current configuration.EmulatorBuildersetContextPath(String contextPath)EmulatorBuildersetDescriptor(String descriptor)specify the path of web.xml.EmulatorBuildersetWebInf(String webInfPathOrUrl)EmulatorBuildersetWebInf(URL webInf)
-
-
-
Method Detail
-
setWebInf
public EmulatorBuilder setWebInf(String webInfPathOrUrl)
-
setWebInf
public EmulatorBuilder setWebInf(URL webInf)
-
addContentRoot
public EmulatorBuilder addContentRoot(String contentRootPathOrUrl)
add additional resource root directory.- Parameters:
contentRootPathOrUrl- directory path.- Returns:
- self reference.
-
addContentRoot
public EmulatorBuilder addContentRoot(URL contentRoot)
add additional resource root directory.- Parameters:
contentRoot- directory url.- Returns:
- self reference.
-
setDescriptor
public EmulatorBuilder setDescriptor(String descriptor)
specify the path of web.xml. default value is "./WEB-INF/web.xml".- Parameters:
descriptor- path of web.xml- Returns:
- self reference.
-
setContextPath
public EmulatorBuilder setContextPath(String contextPath)
-
create
public Emulator create()
create new emulator using current configuration.- Returns:
- a new emulator
-
-