public class DefaultZatsEnvironment extends java.lang.Object implements ZatsEnvironment
ZatsEnvironment
Constructor and Description |
---|
DefaultZatsEnvironment()
Create a zats context, it uses built-in config file(web.xml, zk.xml) to init the context quickly and safely.
|
DefaultZatsEnvironment(java.lang.String webInfPathOrUrl)
Create a zats Environment.
|
DefaultZatsEnvironment(java.lang.String webInfPathOrUrl,
java.lang.String contextPath)
Create a zats Environment.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
close all clients and release resources.
|
void |
destroy()
destroy this environment to release the resource.
|
void |
init(java.lang.String resourceRoot)
initialize testing environment
|
Client |
newClient()
create a client.
|
public DefaultZatsEnvironment()
public DefaultZatsEnvironment(java.lang.String webInfPathOrUrl)
webInfPathOrUrl
- the folder of WEB-INF, a null value means use built-in WEB-INF folder.public DefaultZatsEnvironment(java.lang.String webInfPathOrUrl, java.lang.String contextPath)
webInfPathOrUrl
- the folder of WEB-INF, a null value means suing built-in WEB-INF folder.contextPath
- the name of the application, a null value means using "/"public void init(java.lang.String resourceRoot)
ZatsEnvironment
init
in interface ZatsEnvironment
resourceRoot
- the resource root folder of the zul, it is usually the web content folder.public void destroy()
ZatsEnvironment
destroy
in interface ZatsEnvironment
public Client newClient()
newClient
in interface ZatsEnvironment
public void cleanup()
cleanup
in interface ZatsEnvironment
Copyright © 2019 Potix Corporation. All rights reserved.