public class EsiRenderer extends Object implements Renderer, Appendable
Constructor and Description |
---|
EsiRenderer()
Constructor used to render a complete page.
|
EsiRenderer(String page,
String name)
Constructor used to render a fragment Retrieves a fragment inside a page.
|
Modifier and Type | Method and Description |
---|---|
Appendable |
append(char c) |
Appendable |
append(CharSequence csq) |
Appendable |
append(CharSequence csq,
int start,
int end) |
Map<String,CharSequence> |
getFragmentsToReplace() |
String |
getName() |
boolean |
isWrite() |
void |
render(DriverRequest originalRequest,
String content,
Writer outWriter)
Renders provided source and writes results to the output.
|
void |
setFound(boolean found) |
void |
setFragmentsToReplace(Map<String,CharSequence> fragmentsToReplace) |
void |
setWrite(boolean write) |
public String getName()
public void setWrite(boolean write)
public Map<String,CharSequence> getFragmentsToReplace()
public void setFragmentsToReplace(Map<String,CharSequence> fragmentsToReplace)
public void render(DriverRequest originalRequest, String content, Writer outWriter) throws IOException, HttpErrorPage
Renderer
render
in interface Renderer
originalRequest
- request received by esigate.content
- source to be renderedoutWriter
- output destination. This writer is not thread-safe, use proper synchronization if writing output from
multiple threads.IOException
HttpErrorPage
public Appendable append(CharSequence csq) throws IOException
append
in interface Appendable
IOException
public Appendable append(char c) throws IOException
append
in interface Appendable
IOException
public Appendable append(CharSequence csq, int start, int end) throws IOException
append
in interface Appendable
IOException
public boolean isWrite()
public void setFound(boolean found)
Copyright © 2008–2018. All rights reserved.