public class HtmlTriplePatternFragmentWriterImpl extends TriplePatternFragmentWriterBase implements ILinkedDataFragmentWriter
ILinkedDataFragment to the HTML format| Constructor and Description |
|---|
HtmlTriplePatternFragmentWriterImpl(Map<String,String> prefixes,
HashMap<String,IDataSource> datasources) |
| Modifier and Type | Method and Description |
|---|---|
static void |
setContextPath(String path) |
void |
writeError(javax.servlet.ServletOutputStream outputStream,
Exception ex)
Writes a 5XX error
|
void |
writeFragment(javax.servlet.ServletOutputStream outputStream,
IDataSource datasource,
ITriplePatternFragment fragment,
ITriplePatternFragmentRequest tpfRequest) |
void |
writeNotFound(javax.servlet.ServletOutputStream outputStream,
javax.servlet.http.HttpServletRequest request)
Writes a 404 Not Found error
|
writeFragmentgetDatasources, getPrefixesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteFragmentpublic HtmlTriplePatternFragmentWriterImpl(Map<String,String> prefixes, HashMap<String,IDataSource> datasources) throws IOException
prefixes - datasources - IOExceptionpublic static void setContextPath(String path)
public void writeFragment(javax.servlet.ServletOutputStream outputStream,
IDataSource datasource,
ITriplePatternFragment fragment,
ITriplePatternFragmentRequest tpfRequest)
throws IOException,
freemarker.template.TemplateException
writeFragment in class TriplePatternFragmentWriterBaseoutputStream - datasource - fragment - tpfRequest - IOExceptionfreemarker.template.TemplateExceptionpublic void writeNotFound(javax.servlet.ServletOutputStream outputStream,
javax.servlet.http.HttpServletRequest request)
throws Exception
ILinkedDataFragmentWriterwriteNotFound in interface ILinkedDataFragmentWriteroutputStream - The response stream to write torequest - Request that is unable to answerException - Error that occurs while serializingpublic void writeError(javax.servlet.ServletOutputStream outputStream,
Exception ex)
throws Exception
ILinkedDataFragmentWriterwriteError in interface ILinkedDataFragmentWriteroutputStream - The response stream to write toex - Exception that occurredException - Error that occurs while serializingCopyright © 2022. All rights reserved.