Class TobagoResponseWriterBase
java.lang.Object
java.io.Writer
javax.faces.context.ResponseWriter
org.apache.myfaces.tobago.webapp.TobagoResponseWriter
org.apache.myfaces.tobago.internal.webapp.TobagoResponseWriterBase
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
- Direct Known Subclasses:
HtmlResponseWriter
,XmlResponseWriter
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TobagoResponseWriterBase
(Writer writer, String contentType, String characterEncoding) Deprecated.since 4.3.0protected
TobagoResponseWriterBase
(Writer writer, String contentType, Charset charset) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected abstract void
protected void
void
void
endElement
(String name) void
endElement
(HtmlElements name) protected void
endElementInternal
(Writer sink, String name, boolean inline) protected final String
void
flush()
protected final String
protected final javax.faces.component.UIComponent
protected final Writer
protected final boolean
protected final void
setComponent
(javax.faces.component.UIComponent component) protected final void
setStartStillOpen
(boolean startStillOpen) void
void
startElement
(String name, javax.faces.component.UIComponent currentComponent) void
startElement
(HtmlElements name) protected void
startElementInternal
(Writer sink, String name, boolean inline) void
write
(char[] chars) void
write
(char[] cbuf, int off, int len) void
write
(int j) void
void
void
writeAttribute
(String name, Object value, String property) Deprecated.since 3.0.0void
writeAttribute
(MarkupLanguageAttributes name, String value, boolean escape) Writes a string attribute.void
writeAttribute
(MarkupLanguageAttributes name, HtmlTypes types) protected void
writeAttributeInternal
(Writer sink, MarkupLanguageAttributes name, String value, boolean escape) void
writeComment
(Object obj) protected final void
writeInternal
(Writer sink, String string) protected abstract void
writerAttributeValue
(String value, boolean escape) void
writeURIAttribute
(String name, Object value, String property) void
writeURIAttribute
(MarkupLanguageAttributes name, String value) Writes a string attribute URL encoded.Methods inherited from class org.apache.myfaces.tobago.webapp.TobagoResponseWriter
cloneWithWriter, endCDATA, getContentTypeWithCharSet, startCDATA, writeAttribute, writeAttribute, writeClassAttribute, writeClassAttribute, writeClassAttribute, writeClassAttribute, writeClassAttribute, writeCommandMapAttribute, writeIcon, writeIdAttribute, writeNameAttribute, writeStyleAttribute, writeText, writeText
Methods inherited from class javax.faces.context.ResponseWriter
writeText, writeText
Methods inherited from class java.io.Writer
append, append, append, nullWriter
-
Field Details
-
XML_VERSION_1_0_ENCODING_UTF_8
- See Also:
-
XML_VERSION_1_0_ENCODING_UTF_8_CHARS
protected static final char[] XML_VERSION_1_0_ENCODING_UTF_8_CHARS
-
-
Constructor Details
-
TobagoResponseWriterBase
@Deprecated protected TobagoResponseWriterBase(Writer writer, String contentType, String characterEncoding) Deprecated.since 4.3.0 -
TobagoResponseWriterBase
-
-
Method Details
-
getWriter
-
getComponent
protected final javax.faces.component.UIComponent getComponent() -
setComponent
protected final void setComponent(javax.faces.component.UIComponent component) -
isStartStillOpen
protected final boolean isStartStillOpen() -
setStartStillOpen
protected final void setStartStillOpen(boolean startStillOpen) -
findValue
-
write
- Specified by:
write
in classWriter
- Throws:
IOException
-
write
- Specified by:
write
in classTobagoResponseWriter
- Throws:
IOException
-
writeInternal
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classTobagoResponseWriter
- Throws:
IOException
-
closeOpenTag
- Throws:
IOException
-
startDocument
- Specified by:
startDocument
in classjavax.faces.context.ResponseWriter
- Throws:
IOException
-
endDocument
- Specified by:
endDocument
in classjavax.faces.context.ResponseWriter
- Throws:
IOException
-
getContentType
- Specified by:
getContentType
in classjavax.faces.context.ResponseWriter
-
getCharacterEncoding
- Specified by:
getCharacterEncoding
in classjavax.faces.context.ResponseWriter
-
startElement
public void startElement(String name, javax.faces.component.UIComponent currentComponent) throws IOException - Specified by:
startElement
in classTobagoResponseWriter
- Throws:
IOException
-
startElement
- Specified by:
startElement
in classTobagoResponseWriter
- Throws:
IOException
-
startElementInternal
- Throws:
IOException
-
endElement
- Specified by:
endElement
in classTobagoResponseWriter
- Throws:
IOException
-
endElement
- Specified by:
endElement
in classTobagoResponseWriter
- Throws:
IOException
-
writeComment
- Specified by:
writeComment
in classTobagoResponseWriter
- Throws:
IOException
-
writeAttribute
@Deprecated public void writeAttribute(String name, Object value, String property) throws IOException Deprecated.since 3.0.0- Specified by:
writeAttribute
in classTobagoResponseWriter
- Throws:
IOException
-
getCallingClassStackTraceElementString
-
writeURIAttribute
- Specified by:
writeURIAttribute
in classTobagoResponseWriter
- Throws:
IOException
-
writeAttribute
public void writeAttribute(MarkupLanguageAttributes name, String value, boolean escape) throws IOException Description copied from class:TobagoResponseWriter
Writes a string attribute. The renderer may set escape=false to switch of escaping of the string, if it is not necessary.- Specified by:
writeAttribute
in classTobagoResponseWriter
- Throws:
IOException
-
writeAttribute
- Specified by:
writeAttribute
in classTobagoResponseWriter
- Throws:
IOException
-
writeURIAttribute
Description copied from class:TobagoResponseWriter
Writes a string attribute URL encoded.- Specified by:
writeURIAttribute
in classTobagoResponseWriter
- Throws:
IOException
-
endElementInternal
- Throws:
IOException
-
closeEmptyTag
- Throws:
IOException
-
writeAttributeInternal
protected void writeAttributeInternal(Writer sink, MarkupLanguageAttributes name, String value, boolean escape) throws IOException - Throws:
IOException
-
writerAttributeValue
- Throws:
IOException
-