public class LinkHttpTemplateWriter extends Object implements HttpTemplateWriter
HttpTemplateWriter
to write the link.Constructor and Description |
---|
LinkHttpTemplateWriter(net.officefloor.plugin.web.http.template.parse.LinkHttpTemplateSectionContent content,
String templateUriPath,
String templateUriSuffix,
boolean isLinkSecure)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
void |
write(ServerWriter writer,
boolean isDefaultCharset,
Object bean,
HttpApplicationLocation location)
Writes the template content to the
ServerWriter . |
public LinkHttpTemplateWriter(net.officefloor.plugin.web.http.template.parse.LinkHttpTemplateSectionContent content, String templateUriPath, String templateUriSuffix, boolean isLinkSecure) throws InvalidHttpRequestUriException
content
- LinkHttpTemplateSectionContent
.templateUriPath
- HttpTemplate
URI path.templateUriSuffix
- HttpTemplate
URI suffix. May be null
for
no suffix.isLinkSecure
- Indicates if the link is to be submitted over a secure
ServerHttpConnection
.InvalidHttpRequestUriException
- If the link URI path is invalid.public void write(ServerWriter writer, boolean isDefaultCharset, Object bean, HttpApplicationLocation location) throws IOException
HttpTemplateWriter
ServerWriter
.write
in interface HttpTemplateWriter
writer
- ServerWriter
to receive the template content.isDefaultCharset
- Indicates if the default Charset
for outputting the
template is being used. While the Charset
may be
programmatically changed, it is expected in the majority of
cases to be using the default Charset
configured for
the template. This flag allows static content to be cached in
bytes (using default Charset
) for improved
performance.bean
- Bean to potentially obtain data. May be null
if
template contents does not require a bean.location
- HttpApplicationLocation
to assist in providing web
location.IOException
- If fails to write content.Copyright © 2005–2016. All rights reserved.