public class TemplateResource extends Object implements com.github.bordertech.wcomponents.ContentStreamAccess
| Modifier and Type | Class and Description |
|---|---|
static class |
TemplateResource.Builder
Option Builder for template resources.
|
| Constructor and Description |
|---|
TemplateResource(TemplateResource.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
String |
getDescription() |
String |
getEngineName() |
Map<String,Object> |
getEngineOptions() |
String |
getMimeType() |
Map<String,Object> |
getParameters() |
InputStream |
getStream() |
String |
getTemplate() |
boolean |
isInline() |
protected byte[] |
processTemplate() |
public TemplateResource(TemplateResource.Builder builder)
builder - the resource builderpublic boolean isInline()
public String getTemplate()
public String getEngineName()
public String getDescription()
getDescription in interface com.github.bordertech.wcomponents.ContentAccesspublic String getMimeType()
getMimeType in interface com.github.bordertech.wcomponents.ContentAccesspublic InputStream getStream() throws IOException
getStream in interface com.github.bordertech.wcomponents.ContentStreamAccessIOExceptionpublic byte[] getBytes()
getBytes in interface com.github.bordertech.wcomponents.ContentAccessprotected byte[] processTemplate()
Copyright © 2018. All rights reserved.