public class JavaScriptBuilderElementBuilder extends Object
JavaScriptBuilderElement| Modifier and Type | Field and Description |
|---|---|
protected String |
contextRoot |
protected String |
endpoint |
protected String |
host |
protected String |
objName |
protected String |
protocol |
| Constructor and Description |
|---|
JavaScriptBuilderElementBuilder(org.slf4j.ILoggerFactory loggerFactory)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
JavaScriptBuilderElement |
build()
Build the
JavaScriptBuilderElement |
JavaScriptBuilderElementBuilder |
setContextRoot(String contextRoot) |
JavaScriptBuilderElementBuilder |
setEnableCookies(boolean enableCookies)
Set whether the client JavaScript stores results of client side
processing in cookies.
|
JavaScriptBuilderElementBuilder |
setEndpoint(String endpoint)
Set the endpoint which will be queried on the host.
|
JavaScriptBuilderElementBuilder |
setHost(String host)
Set the host that the client JavaScript should query for updates.
|
JavaScriptBuilderElementBuilder |
setObjectName(String objName)
The default name of the object instantiated by the client
JavaScript.
|
JavaScriptBuilderElementBuilder |
setProtocol(String protocol)
The protocol that the client JavaScript will use when querying
for updates.
|
protected String host
protected String endpoint
protected String protocol
protected String contextRoot
protected String objName
public JavaScriptBuilderElementBuilder(org.slf4j.ILoggerFactory loggerFactory)
loggerFactory - the ILoggerFactory to use when creating
loggers for the elementpublic JavaScriptBuilderElementBuilder setHost(String host)
host - the hostnamepublic JavaScriptBuilderElementBuilder setEndpoint(String endpoint)
endpoint - the endpointpublic JavaScriptBuilderElementBuilder setContextRoot(String contextRoot)
public JavaScriptBuilderElementBuilder setProtocol(String protocol)
protocol - The protocol to use (http / https)public JavaScriptBuilderElementBuilder setObjectName(String objName)
objName - the object name to usepublic JavaScriptBuilderElementBuilder setEnableCookies(boolean enableCookies)
enableCookies - should enable cookies?public JavaScriptBuilderElement build()
JavaScriptBuilderElementJavaScriptBuilderElement instanceCopyright © 2023 51Degrees. All rights reserved.