public final class DynamicContent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HOST_REPLACEMENT
A replacement string that can be inserted into the content.
|
static java.lang.String |
PROTOCOL_REPLACEMENT
A replacement string that can be inserted into the content.
|
Constructor and Description |
---|
DynamicContent(java.lang.String path,
java.lang.String contentType,
java.lang.String content)
Create a new dynamic content object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContent()
Get the content.
|
java.lang.String |
getContentType()
Get the content type of the content, for example application/json.
|
java.lang.String |
getPath()
Get the path that the content should be served under, for example /document.json.
|
public static final java.lang.String PROTOCOL_REPLACEMENT
public static final java.lang.String HOST_REPLACEMENT
public DynamicContent(java.lang.String path, java.lang.String contentType, java.lang.String content)
path
- the path that the content should be served under, for example /document.json.contentType
- the content type of the content, for example application/json.content
- the content.public java.lang.String getPath()
public java.lang.String getContentType()
public java.lang.String getContent()