Class Script.Builder
java.lang.Object
com.aoapps.web.resources.registry.Resource.Builder<Script>
com.aoapps.web.resources.registry.Script.Builder
- Enclosing class:
Script
Builder pattern for
Script
.-
Field Summary
Fields inherited from class com.aoapps.web.resources.registry.Resource.Builder
uri
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasync
(boolean async) build()
crossorigin
(String crossorigin) Sets the crossorigin, which defaults tonull
.defer
(boolean defer) Sets the defer, which defaults tofalse
.position
(Script.Position position) Sets the position, which defaults toScript.Position.DEFAULT
.
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
uri
- Overrides:
uri
in classResource.Builder<Script>
-
position
Sets the position, which defaults toScript.Position.DEFAULT
. -
async
-
defer
Sets the defer, which defaults tofalse
. -
crossorigin
Sets the crossorigin, which defaults tonull
. -
build
- Specified by:
build
in classResource.Builder<Script>
-