public class HtmlBufferingCanvas extends HtmlServletCanvas
| Modifier and Type | Field and Description |
|---|---|
static int |
CANVAS_BODY_BUFFER_LENGTH |
request, responseHTML_ESCAPE_HANDLER, INITIAL_STACK_CAPACITY, NO_ESCAPE, openTagStack, out| Constructor and Description |
|---|
HtmlBufferingCanvas(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Writer out) |
| Modifier and Type | Method and Description |
|---|---|
HtmlCanvas |
_body()
Closes the body tag.
|
HtmlCanvas |
_head()
Closes the head tag.
|
HtmlCanvas |
_html()
Closes the html tag.
|
OrderedRenderableSet |
bodyElements() |
HtmlBufferingCanvas |
flush()
It allows you to send your partially ready HTML response to the browser
so that the browser can start fetching components while your backend is
busy with the rest of the HTML page.
|
HtmlCanvas |
head()
Opens the head tag, without any attributes.
|
HtmlCanvas |
head(CharactersWriteable attrs)
Opens the head tag, with the specified attributes.
|
HtmlAttributes |
headAttributes() |
OrderedRenderableSet |
headElements() |
HtmlCanvas |
html()
Opens the html tag, without any attributes.
|
HtmlCanvas |
html(CharactersWriteable attrs)
Opens the html tag, with the specified attributes.
|
void |
init() |
CanvasMacros<HtmlBufferingCanvas> |
macros()
Return a helper object to write elements in a macro-like style.
|
List<String> |
onLoadScripts() |
String |
toHtml()
Return the current contents of the output writer.
|
createLocalCanvas, hasAjaxRequest_a, _abbr, _acronym, _address, _applet, _article, _aside, _audio, _b, _bdo, _big, _blockquote, _button, _canvas, _caption, _cdata, _cite, _code, _colgroup, _command, _datalist, _dd, _del, _details, _dfn, _dir, _div, _dl, _dt, _em, _embed, _fieldset, _figcaption, _figure, _font, _footer, _form, _frameset, _h1, _h2, _h3, _h4, _h5, _h6, _header, _hgroup, _i, _if, _iframe, _ins, _kbd, _keygen, _label, _legend, _li, _main, _map, _mark, _menu, _meter, _nav, _noframes, _noscript, _object, _ol, _optgroup, _option, _output, _p, _pre, _progress, _q, _rp, _rt, _ruby, _s, _samp, _script, _section, _select, _small, _source, _span, _strike, _strong, _style, _sub, _summary, _sup, _table, _tbody, _td, _textarea, _tfoot, _th, _thead, _time, _title, _tr, _tt, _u, _ul, _var, _video, _wbr, a, a, abbr, abbr, acronym, acronym, address, address, applet, applet, area, article, article, aside, aside, attributes, audio, audio, b, b, base, basefont, basefont, bdo, bdo, big, big, blockquote, blockquote, body, body, br, br, button, button, canvas, canvas, caption, caption, cdata, center, cite, cite, close, close, code, code, col, colgroup, colgroup, command, command, content, content, content, createMacros, createPageContext, datalist, datalist, dd, dd, del, del, details, details, dfn, dfn, dir, dir, div, div, dl, dl, dt, dt, em, em, embed, embed, fieldset, fieldset, figcaption, figcaption, figure, figure, font, font, footer, footer, form, form, frame, frameset, frameset, getOutputWriter, getPageContext, getPathParameters, getRequestParameters, getSession, h1, h1, h2, h2, h3, h3, h4, h4, h5, h5, h6, h6, hasPageContext, header, header, hgroup, hgroup, hr, hr, i, i, if_, iframe, iframe, img, input, input, ins, ins, isindex, isindex, kbd, kbd, keygen, keygen, label, label, legend, legend, li, li, link, main, main, map, map, mark, mark, menu, menu, meta, meter, meter, nav, nav, nextId, noframes, noframes, noscript, noscript, object, object, ol, ol, optgroup, optgroup, option, option, output, output, p, p, param, pre, pre, progress, progress, q, q, render_if, render, rp, rp, rt, rt, ruby, ruby, s, s, samp, samp, script, script, section, section, select, select, small, small, source, source, span, span, strike, strike, strong, strong, style, style, sub, sub, summary, summary, sup, sup, table, table, tag_close, tag, tag, tbody, tbody, td, td, textarea, textarea, tfoot, tfoot, th, th, thead, thead, time, time, title, title, toString, tr, tr, tt, tt, u, u, ul, ul, var, var, video, video, wbr, wbr, write, write, write, writepublic HtmlBufferingCanvas(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Writer out)
public void init()
public HtmlAttributes headAttributes()
public OrderedRenderableSet headElements()
public HtmlCanvas _body() throws IOException
HtmlCanvas_body in class HtmlCanvasIOException - in case of an I/O error while writing the end tag.public HtmlCanvas html() throws IOException
HtmlCanvasClose this tag by calling HtmlCanvas._html() (the end tag is optional).
html in class HtmlCanvasHtmlCanvas instance.IOException - in case of an I/O error.public HtmlCanvas html(CharactersWriteable attrs) throws IOException
HtmlCanvasClose this tag by calling HtmlCanvas._html() (the end tag is optional).
This tag supports the following attributes:
html in class HtmlCanvasattrs - the CharactersWriteable, or null if none.HtmlCanvas instance.IOException - in case of an I/O error.public HtmlCanvas head() throws IOException
HtmlCanvasClose this tag by calling HtmlCanvas._head() (the end tag is optional).
head in class HtmlCanvasHtmlCanvas instance.IOException - in case of an I/O error.public HtmlCanvas head(CharactersWriteable attrs) throws IOException
HtmlCanvasClose this tag by calling HtmlCanvas._head() (the end tag is optional).
This tag supports the following attributes:
head in class HtmlCanvasattrs - the CharactersWriteable, or null if none.HtmlCanvas instance.IOException - in case of an I/O error.public HtmlCanvas _html() throws IOException
HtmlCanvas_html in class HtmlCanvasIOException - in case of an I/O error while writing the end tag.public HtmlCanvas _head() throws IOException
HtmlCanvas_head in class HtmlCanvasIOException - in case of an I/O error while writing the end tag.public OrderedRenderableSet bodyElements()
public HtmlBufferingCanvas flush() throws IOException
IOExceptionpublic String toHtml()
HtmlCanvastoHtml in class HtmlCanvaspublic CanvasMacros<HtmlBufferingCanvas> macros()
HtmlCanvasmacros in class HtmlCanvasCopyright © 2010–2018. All rights reserved.