List of fixed FlowTokens, using the supplied
WebPageOutputOptions to determine the exact form of the results.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | DEFAULT_MATHJAX_URL
Default URL and config to use when MathJax configuration option has been enabled. |
| private final WebPageOutputOptions | |
| private final SessionContext |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final Document | |
| public final String | |
| private String | computeContentTypeHeader()
Computes the appropriate "Content-Type" string to be specified as an HTTP Header. |
| private String | computeMetaContentType()
Computes the appropriate "Content-Type" string to be specified as an the XHTML meta element. |
| private final Transformer | |
| private Element | createXHTMLElement(Document document, String elementLocalName)
Helper to create XHTML elements, setting the correct namespace prefix if required by the
underlying |
| private Element | createXHTMLElement(Document document, String elementLocalName, String content)
Helper to create XHTML text elements, setting the correct namespace prefix if required by the
underlying |
| public final void | setWebPageContentType(Object
Object that will have its contentType
property set if provided. contentTypeSettable)Calls the setContentType method for the given Object (by reflection) to something appropriate for serving the types of web pages generated by this builder over HTTP. |
| public final void | writeWebPage(final List<FlowToken>
fixed Tokens from earlier stages of parsing fixedTokens, Object optional bean Object that will have its contentType
property set if provided. (This is generally useful as a proxy for the HttpResponse
Object in the servlet API, which I want to avoid a compile-time dependency on.) contentTypeSettable, final OutputStream Stream to send the resulting page to, which will be closed afterwards. outputStream, final SnuggleSession.specifies what to do with the outputStream once we've finished writing
to it. endOutputOptionsCreates a web page representing the given (fixed) Tokens, and writes the results to
the given |
| DEFAULT_MATHJAX_URL | back to summary |
|---|---|
| public static final String DEFAULT_MATHJAX_URL Default URL and config to use when MathJax configuration option has been enabled. | |
| options | back to summary |
|---|---|
| private final WebPageOutputOptions options | |
| sessionContext | back to summary |
|---|---|
| private final SessionContext sessionContext | |
| WebPageBuilder | back to summary |
|---|---|
| public WebPageBuilder(final SessionContext sessionContext, final WebPageOutputOptions options) | |
| buildWebPage | back to summary |
|---|---|
| public final Document buildWebPage(final List<FlowToken> fixedTokens) throws SnuggleParseException | |
| buildWebPageString | back to summary |
|---|---|
| public final String buildWebPageString(final List<FlowToken> fixedTokens) throws SnuggleParseException | |
| computeContentTypeHeader | back to summary |
|---|---|
| private String computeContentTypeHeader() Computes the appropriate "Content-Type" string to be specified as an HTTP Header. (Note that MathPlayer only sniffs a limited number of Content Types.) | |
| computeMetaContentType | back to summary |
|---|---|
| private String computeMetaContentType() Computes the appropriate "Content-Type" string to be specified as an the XHTML meta element.
| |
| createSerializer | back to summary |
|---|---|
private final Transformer createSerializer()
| |
| createXHTMLElement | back to summary |
|---|---|
| private Element createXHTMLElement(Document document, String elementLocalName) Helper to create XHTML elements, setting the correct namespace prefix if required by the
underlying | |
| createXHTMLElement | back to summary |
|---|---|
| private Element createXHTMLElement(Document document, String elementLocalName, String content) Helper to create XHTML text elements, setting the correct namespace prefix if required by the
underlying | |
| setWebPageContentType | back to summary |
|---|---|
| public final void setWebPageContentType(Object contentTypeSettable) Calls the setContentType method for the given Object (by reflection) to something appropriate for serving the types of web pages generated by this builder over HTTP. (The main example for this would be passing a javax.servlet.http.HttpResponse Object, which I want to avoid a compile-time dependency on.)
| |
| writeWebPage | back to summary |
|---|---|
| public final void writeWebPage(final List<FlowToken> fixedTokens, Object contentTypeSettable, final OutputStream outputStream, final SnuggleSession. Creates a web page representing the given (fixed) Tokens, and writes the results to
the given
| |