Class TobagoResponseWriterBase
java.lang.Object
java.io.Writer
jakarta.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
ConstructorsModifierConstructorDescriptionprotectedTobagoResponseWriterBase(Writer writer, String contentType, String characterEncoding) Deprecated.since 4.3.0protectedTobagoResponseWriterBase(Writer writer, String contentType, Charset charset) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected abstract voidprotected voidvoidvoidendElement(String name) voidendElement(HtmlElements name) protected voidendElementInternal(Writer sink, String name, boolean inline) protected final Stringvoidflush()protected final Stringprotected final jakarta.faces.component.UIComponentprotected final Writerprotected voidprotected final booleanprotected final voidsetComponent(jakarta.faces.component.UIComponent component) protected final voidsetStartStillOpen(boolean startStillOpen) voidvoidstartElement(String name, jakarta.faces.component.UIComponent currentComponent) voidstartElement(HtmlElements name) voidstartElement(HtmlElements name, jakarta.faces.component.UIComponent currentComponent) protected voidstartElementInternal(Writer sink, String name, boolean inline) voidwrite(char[] chars) voidwrite(char[] cbuf, int off, int len) voidwrite(int j) voidvoidvoidwriteAttribute(String name, Object value, String property) Deprecated.since 3.0.0voidwriteAttribute(MarkupLanguageAttributes name, String value, boolean escape) Writes a string attribute.voidwriteAttribute(MarkupLanguageAttributes name, HtmlTypes types) protected voidwriteAttributeInternal(Writer sink, MarkupLanguageAttributes name, String value, boolean escape) voidwriteComment(Object obj) protected final voidwriteInternal(Writer sink, String string) protected abstract voidwriterAttributeValue(String value, boolean escape) voidwriteURIAttribute(String name, Object value, String property) voidwriteURIAttribute(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, writeAttribute, writeClassAttribute, writeClassAttribute, writeClassAttribute, writeClassAttribute, writeClassAttribute, writeCommandMapAttribute, writeIdAttribute, writeNameAttribute, writeText, writeTextMethods inherited from class jakarta.faces.context.ResponseWriter
writeDoctype, writePreamble, writeText, writeTextMethods 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 jakarta.faces.component.UIComponent getComponent() -
setComponent
protected final void setComponent(jakarta.faces.component.UIComponent component) -
isStartStillOpen
protected final boolean isStartStillOpen() -
setStartStillOpen
protected final void setStartStillOpen(boolean startStillOpen) -
findValue
-
write
- Specified by:
writein classWriter- Throws:
IOException
-
write
- Specified by:
writein classTobagoResponseWriter- Throws:
IOException
-
writeInternal
- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Specified by:
flushin classTobagoResponseWriter- Throws:
IOException
-
closeOpenTag
- Throws:
IOException
-
handlePassThroughAttributes
- Throws:
IOException
-
startDocument
- Specified by:
startDocumentin classjakarta.faces.context.ResponseWriter- Throws:
IOException
-
endDocument
- Specified by:
endDocumentin classjakarta.faces.context.ResponseWriter- Throws:
IOException
-
getContentType
- Specified by:
getContentTypein classjakarta.faces.context.ResponseWriter
-
getCharacterEncoding
- Specified by:
getCharacterEncodingin classjakarta.faces.context.ResponseWriter
-
startElement
public void startElement(String name, jakarta.faces.component.UIComponent currentComponent) throws IOException - Specified by:
startElementin classTobagoResponseWriter- Throws:
IOException
-
startElement
public void startElement(HtmlElements name, jakarta.faces.component.UIComponent currentComponent) throws IOException - Specified by:
startElementin classTobagoResponseWriter- Throws:
IOException
-
startElement
- Specified by:
startElementin classTobagoResponseWriter- Throws:
IOException
-
startElementInternal
- Throws:
IOException
-
endElement
- Specified by:
endElementin classTobagoResponseWriter- Throws:
IOException
-
endElement
- Specified by:
endElementin classTobagoResponseWriter- Throws:
IOException
-
writeComment
- Specified by:
writeCommentin classTobagoResponseWriter- Throws:
IOException
-
writeAttribute
@Deprecated public void writeAttribute(String name, Object value, String property) throws IOException Deprecated.since 3.0.0- Specified by:
writeAttributein classTobagoResponseWriter- Throws:
IOException
-
getCallingClassStackTraceElementString
-
writeURIAttribute
- Specified by:
writeURIAttributein classTobagoResponseWriter- Throws:
IOException
-
writeAttribute
public void writeAttribute(MarkupLanguageAttributes name, String value, boolean escape) throws IOException Description copied from class:TobagoResponseWriterWrites a string attribute. The renderer may set escape=false to switch of escaping of the string, if it is not necessary.- Specified by:
writeAttributein classTobagoResponseWriter- Throws:
IOException
-
writeAttribute
- Specified by:
writeAttributein classTobagoResponseWriter- Throws:
IOException
-
writeURIAttribute
Description copied from class:TobagoResponseWriterWrites a string attribute URL encoded.- Specified by:
writeURIAttributein 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
-