T - the concrete subtype of StreamPropertiesBuilder that will be used
as the return type for property setters to enable chaining.public abstract class StreamPropertiesBuilder<T extends StreamPropertiesBuilder<T>>
extends java.lang.Object
StreamProperties instances.| Modifier and Type | Class and Description |
|---|---|
protected static class |
StreamPropertiesBuilder.StreamPropertiesImpl
The StreamPropertiesImpl class is a simple immutable value object that
implements the
StreamProperties interface. |
| Modifier and Type | Field and Description |
|---|---|
protected AltRegistry |
altRegistry |
protected ContentType |
contentType |
protected ExtensionProfile |
extensionProfile |
protected java.util.Map<java.lang.String,java.lang.String> |
queryMap |
protected ElementMetadata<?,?> |
rootMetadata |
| Modifier | Constructor and Description |
|---|---|
protected |
StreamPropertiesBuilder()
Constructs a new StreamPropertiesBuilder with no properties set.
|
protected |
StreamPropertiesBuilder(StreamProperties source)
Constructs a new StreamPropertiesBuilder instance with the initial value of
all properties copied from another
StreamProperties instance. |
| Modifier and Type | Method and Description |
|---|---|
T |
setAltRegistry(AltRegistry altRegistry)
Sets the
AltRegistry property that should be used for instances
created by the builder. |
T |
setContentType(ContentType contentType)
Sets the
ContentType property that should be used for instances
created by the builder. |
T |
setElementMetadata(ElementMetadata<?,?> elementMetadata)
Sets the
ElementMetadata that should be used for instances created
by the builder. |
T |
setExtensionProfile(ExtensionProfile extensionProfile)
Sets the
ExtensionProfile property that should be used for
instances created by the builder. |
T |
setQueryParameter(java.lang.String name,
java.lang.String value)
Sets the value of a query parameter in the query
Map that should be
used for instances created by the builder. |
T |
setQueryParameters(java.util.Map<java.lang.String,java.lang.String> queryMap)
Adds all query parameter values defined in the provided
Map to
the set of query parameters used for instances created by the builder. |
T |
thisInstance() |
protected AltRegistry altRegistry
protected ContentType contentType
protected ExtensionProfile extensionProfile
protected ElementMetadata<?,?> rootMetadata
protected final java.util.Map<java.lang.String,java.lang.String> queryMap
protected StreamPropertiesBuilder()
protected StreamPropertiesBuilder(StreamProperties source)
StreamProperties instance.source - stream properties instance to copy from.public final T thisInstance()
public T setAltRegistry(AltRegistry altRegistry)
AltRegistry property that should be used for instances
created by the builder.altRegistry - alt registry to set in built instances.public T setContentType(ContentType contentType)
ContentType property that should be used for instances
created by the builder.contentType - content type to set in built instances.public T setExtensionProfile(ExtensionProfile extensionProfile)
ExtensionProfile property that should be used for
instances created by the builder.extensionProfile - extension profile to set in built instances.public T setQueryParameter(java.lang.String name, java.lang.String value)
Map that should be
used for instances created by the builder. Any existing value with the
same name will be overwritten.name - query parameter namevalue - query parameter valuepublic T setQueryParameters(java.util.Map<java.lang.String,java.lang.String> queryMap)
Map to
the set of query parameters used for instances created by the builder.
Any existing query parameter mappings with names contained in the map will
be overwritten.queryMap - query map to set in built instances.public T setElementMetadata(ElementMetadata<?,?> elementMetadata)
ElementMetadata that should be used for instances created
by the builder.elementMetadata - element metadata to set in built instances.