public interface DynamicContent extends Content
Each DynamicContent reports its MIME type (for use in setting the MIME type in the HTTP response back to the client).
Further, each DynamicContent object must return an "instance" which represents a version of the dynamic content at a given point in time. It is open to the implementer whether the DynamicContent returns a newly-created Instance each time or whether it caches some number of instances as an optimization.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
DynamicContent.Instance
Defines the contract for a given version of dynamic content at a single
moment in time.
|
static class |
DynamicContent.InstanceAdapter
Convenience implementation of Instance.
|
Content.Adapter, Content.State| Modifier and Type | Method and Description |
|---|---|
DynamicContent.Instance |
getExistingInstance(Properties tokenValues)
Retrieves an "instance" of this dynamic content, with placeholders
substituted using the provided properties.
|
String |
getMimeType()
Retrieve the MIME type for this dynamic content.
|
DynamicContent.Instance |
getOrCreateInstance(Properties tokenValues)
Retrieves an existing "instance" of this dynamic content, with placeholders
substituted, creating a new one if none already exists.
|
boolean |
isMain()
Reports whether this dynamic content represents the main JNLP document
for an app client.
|
DynamicContent.Instance getExistingInstance(Properties tokenValues)
tokenValues - maps placeholder tokens to valuesDynamicContent.Instance getOrCreateInstance(Properties tokenValues)
tokenValues - maps placeholder tokens to valuesString getMimeType()
boolean isMain()
Copyright © 2019. All rights reserved.