@NotThreadSafe @GwtCompatible(emulated=true) public final class TrustedResourceUrlBuilder extends Object
TrustedResourceUrl
in steps, from application-controlled
strings.TrustedResourceUrl
Constructor and Description |
---|
TrustedResourceUrlBuilder()
Creates a new builder, with an empty underlying URL.
|
TrustedResourceUrlBuilder(String string)
Creates a new builder, with an underlying URL set to the given compile-time constant
string . |
Modifier and Type | Method and Description |
---|---|
TrustedResourceUrlBuilder |
append(String string)
Appends the compile-time constant
string to the URL being built. |
TrustedResourceUrl |
build()
Returns the TrustedResourceUrl built so far.
|
public TrustedResourceUrlBuilder()
public TrustedResourceUrlBuilder(@CompileTimeConstant String string)
string
.
No runtime validation or sanitization is performed on string
; being under
application control, it is simply assumed to comply with the TrustedResourceUrl contract.
public TrustedResourceUrlBuilder append(@CompileTimeConstant String string)
string
to the URL being built.
No runtime validation or sanitization is performed on string
; being under
application control, it is simply assumed comply with the TrustedResourceUrl contract.
public TrustedResourceUrl build()