public class EmulatorBuilder
extends java.lang.Object
Constructor and Description |
---|
EmulatorBuilder() |
Modifier and Type | Method and Description |
---|---|
EmulatorBuilder |
addContentRoot(java.lang.String contentRootPathOrUrl)
add additional resource root directory.
|
EmulatorBuilder |
addContentRoot(java.net.URL contentRoot)
add additional resource root directory.
|
Emulator |
create()
create new emulator using current configuration.
|
EmulatorBuilder |
setContextPath(java.lang.String contextPath) |
EmulatorBuilder |
setDescriptor(java.lang.String descriptor)
specify the path of web.xml.
|
EmulatorBuilder |
setWebInf(java.lang.String webInfPathOrUrl) |
EmulatorBuilder |
setWebInf(java.net.URL webInf) |
public EmulatorBuilder setWebInf(java.lang.String webInfPathOrUrl)
public EmulatorBuilder setWebInf(java.net.URL webInf)
public EmulatorBuilder addContentRoot(java.lang.String contentRootPathOrUrl)
contentRootPathOrUrl
- directory path.public EmulatorBuilder addContentRoot(java.net.URL contentRoot)
contentRoot
- directory url.public EmulatorBuilder setDescriptor(java.lang.String descriptor)
descriptor
- path of web.xmlpublic EmulatorBuilder setContextPath(java.lang.String contextPath)
public Emulator create()
Copyright © 2019 Potix Corporation. All rights reserved.