public abstract class ToStream extends SerializerBase
Modifier and Type | Field and Description |
---|---|
static String |
CDATA_CONTINUE
To insert ]]> in a CDATA section by ending the last CDATA section with
]] and starting the next CDATA section with >
|
static String |
CDATA_DELIMITER_CLOSE
The constant "]]>"
|
static String |
CDATA_DELIMITER_OPEN |
static String |
DEFAULT_SAX_SERIALIZER |
static String |
EMPTYSTRING |
static String |
ENTITY_AMP |
static String |
ENTITY_CRLF |
static String |
ENTITY_GT |
static String |
ENTITY_LT |
static String |
ENTITY_QUOT |
protected boolean |
m_cdataStartCalled
remembers if we are in between the startCDATA() and endCDATA() callbacks
|
protected org.apache.xml.serializer.CharInfo |
m_charInfo
Map that tells which characters should have special treatment, and it
provides character to entity name lookup.
|
protected org.apache.xml.serializer.ToStream.BoolStack |
m_disableOutputEscapingStates
Stack to keep track of disabling output escaping.
|
protected boolean |
m_escaping
Taken from XSLTC
|
protected boolean |
m_inDoctype
Tells if we're in an internal document type subset.
|
protected boolean |
m_ispreserve
State flag to tell if preservation of whitespace
is important.
|
protected boolean |
m_isprevtext
State flag that tells if the previous node processed
was text, so we can tell if we should preserve whitespace.
|
protected char[] |
m_lineSep
The system line separator for writing out line breaks.
|
protected int |
m_lineSepLen
The length of the line seperator, since the write is done
one character at a time.
|
protected boolean |
m_lineSepUse
True if the the system line separator is to be used.
|
protected org.apache.xml.serializer.ToStream.BoolStack |
m_preserves
Stack to keep track of whether or not we need to
preserve whitespace.
|
protected boolean |
m_spaceBeforeClose
Add space before '/>' for XHTML.
|
static String |
XML_PREFIX |
static String |
XMLNS_PREFIX |
static String |
XMLNS_URI |
static String |
XMLVERSION10 |
static String |
XMLVERSION11
Define the XML version.
|
m_attrBuff, m_attributes, m_CdataElems, m_cdataTagOpen, m_charsBuff, m_doctypePublic, m_doctypeSystem, m_doIndent, m_elemContext, m_indentAmount, m_inEntityRef, m_inExternalDTD, m_mediatype, m_needToCallStartDocument, m_prefixMap, m_shouldNotWriteXMLHeader, m_sourceLocator, m_standaloneWasSpecified, m_StringOfCDATASections, m_tracer, m_version, m_writer, PKG_NAME, PKG_PATH
HTML_ATTREMPTY, HTML_ATTRURL, NO_BAD_CHARS
Constructor and Description |
---|
ToStream()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
addAttributeAlways(String uri,
String localName,
String rawName,
String type,
String value,
boolean xslAttribute)
Adds the given attribute to the set of attributes, even if there is
no currently open element.
|
void |
addCdataSectionElements(String URI_and_localNames)
Remembers the cdata sections specified in the cdata-section-elements by appending the given
cdata section elements to the list.
|
void |
attributeDecl(String eName,
String aName,
String type,
String valueDefault,
String value)
Report an attribute type declaration.
|
protected void |
cdata(char[] ch,
int start,
int length)
Receive notification of cdata.
|
void |
characters(char[] chars,
int start,
int length)
Receive notification of character data.
|
void |
characters(String s)
Receive notification of character data.
|
protected void |
charactersRaw(char[] ch,
int start,
int length)
If available, when the disable-output-escaping attribute is used,
output raw text without escaping.
|
protected void |
closeCDATA()
This helper method to writes out "]]>" when closing a CDATA section.
|
protected void |
closeStartTag()
For the enclosing elements starting tag write out
out any attributes followed by ">"
|
void |
comment(char[] ch,
int start,
int length)
Receive notification of an XML comment anywhere in the document.
|
void |
elementDecl(String name,
String model)
Report an element type declaration.
|
void |
endCDATA()
Report the end of a CDATA section.
|
void |
endDTD()
Report the end of DTD declarations.
|
void |
endElement(String name)
Receive notification of the end of an element.
|
void |
endElement(String namespaceURI,
String localName,
String name)
Receive notification of the end of an element.
|
void |
endNonEscaping()
Ends an un-escaping section.
|
void |
endPrefixMapping(String prefix)
End the scope of a prefix-URI Namespace mapping.
|
protected String |
ensureAttributesNamespaceIsDeclared(String ns,
String localName,
String rawName)
Makes sure that the namespace URI for the given qualified attribute name
is declared.
|
protected boolean |
escapingNotNeeded(char ch)
Tell if this character can be written without escaping.
|
void |
externalEntityDecl(String name,
String publicId,
String systemId)
Report a parsed external entity declaration.
|
protected void |
firePseudoAttributes()
To fire off the pseudo characters of attributes, as they currently
exist.
|
void |
flushPending()
This method flushes any pending events, which can be startDocument()
closing the opening tag of an element, or closing an open CDATA section.
|
protected void |
flushWriter()
Flush the formatter's result stream.
|
int |
getIndentAmount()
Returns the m_indentAmount.
|
Properties |
getOutputFormat()
Returns the output format for this serializer.
|
OutputStream |
getOutputStream()
Get the output stream where the events will be serialized to.
|
Writer |
getWriter()
Get the character stream where the events will be serialized to.
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Receive notification of ignorable whitespace in element content.
|
protected void |
indent()
Indent at the current element nesting depth.
|
protected void |
indent(int depth)
Might print a newline character and the indentation amount
of the given depth.
|
void |
internalEntityDecl(String name,
String value)
Report an internal entity declaration.
|
void |
notationDecl(String name,
String pubID,
String sysID)
If this method is called, the serializer is used as a
DTDHandler, which changes behavior how the serializer
handles document entities.
|
protected void |
outputLineSep()
Output a system-dependent line break.
|
void |
processAttributes(Writer writer,
int nAttrs)
Process the attributes, which means to write out the currently
collected attributes to the writer.
|
boolean |
reset()
Try's to reset the super class and reset this class for
re-use, so that you don't need to create a new serializer
(mostly for performance reasons).
|
void |
serialize(Node node)
Serializes the DOM node.
|
void |
setCdataSectionElements(Vector URI_and_localNames)
Remembers the cdata sections specified in the cdata-section-elements.
|
void |
setContentHandler(ContentHandler ch)
Set the SAX Content handler that the serializer sends its output to.
|
void |
setDTDEntityExpansion(boolean expand)
If set to false the serializer does not expand DTD entities,
but leaves them as is, the default value is true;
|
void |
setEncoding(String encoding)
Sets the character encoding coming from the xsl:output encoding stylesheet attribute.
|
boolean |
setEscaping(boolean escape)
Turns special character escaping on/off.
|
void |
setIndentAmount(int m_indentAmount)
Sets the m_indentAmount.
|
boolean |
setLineSepUse(boolean use_sytem_line_break)
Set if the operating systems end-of-line line separator should
be used when serializing.
|
void |
setNewLine(char[] eolChars)
Sets the end of line characters to be used during serialization
|
void |
setOutputFormat(Properties format)
Specifies an output format for this serializer.
|
void |
setOutputStream(OutputStream output)
Specifies an output stream to which the document should be
serialized.
|
void |
setTransformer(Transformer transformer)
Sets the transformer associated with this serializer
|
void |
setWriter(Writer writer)
Specifies a writer to which the document should be serialized.
|
protected boolean |
shouldIndent()
Tell if, based on space preservation constraints and the doIndent property,
if an indent should occur.
|
void |
skippedEntity(String name)
Receive notification of a skipped entity.
|
void |
startCDATA()
Report the start of a CDATA section.
|
void |
startDTD(String name,
String publicId,
String systemId)
Report the start of DTD declarations, if any.
|
void |
startElement(String elementName)
This method is used to notify of the start of an element
|
void |
startElement(String elementNamespaceURI,
String elementLocalName,
String elementName)
Receive notification of the beginning of an element, additional
namespace or attribute information can occur before or after this call,
that is associated with this element.
|
void |
startElement(String namespaceURI,
String localName,
String name,
Attributes atts)
Receive notification of the beginning of an element, although this is a
SAX method additional namespace or attribute information can occur before
or after this call, that is associated with this element.
|
void |
startEntity(String name)
Report the beginning of an entity.
|
void |
startNonEscaping()
Starts an un-escaping section.
|
void |
startPrefixMapping(String prefix,
String uri)
Begin the scope of a prefix-URI Namespace mapping
just before another element is about to start.
|
boolean |
startPrefixMapping(String prefix,
String uri,
boolean shouldFlush)
Handle a prefix/uri mapping, which is associated with a startElement()
that is soon to follow.
|
void |
unparsedEntityDecl(String name,
String pubID,
String sysID,
String notationName)
If this method is called, the serializer is used as a
DTDHandler, which changes behavior how the serializer
handles document entities.
|
void |
writeAttrString(Writer writer,
String string,
String encoding)
Returns the specified string after substituting specials,
and UTF-16 surrogates for chracter references
&#xnn . |
protected int |
writeUTF16Surrogate(char c,
char[] ch,
int i,
int end)
Once a surrogate has been detected, write out the pair of
characters if it is in the encoding, or if there is no
encoding, otherwise write out an entity reference
of the value of the unicode code point of the character
represented by the high/low surrogate pair.
|
addAttribute, addAttribute, addAttribute, addAttributes, addXSLAttribute, asContentHandler, asDOM3Serializer, asDOMSerializer, characters, close, comment, documentIsEmpty, endEntity, entityReference, error, fatalError, fireCDATAEvent, fireCharEvent, fireCommentEvent, fireEndDoc, fireEndElem, fireEndEntity, fireEntityReference, fireEscapingEvent, fireStartDoc, fireStartElem, fireStartEntity, getDoctypePublic, getDoctypeSystem, getEncoding, getIndent, getLocalName, getMediaType, getNamespaceMappings, getNamespaceURI, getNamespaceURIFromPrefix, getOmitXMLDeclaration, getOutputProperty, getOutputPropertyDefault, getOutputPropertyNonDefault, getPrefix, getPrefixPart, getStandalone, getTransformer, getVersion, initCDATA, isCdataSection, namespaceAfterStartElement, patchName, setDoctype, setDoctypePublic, setDoctypeSystem, setDocumentLocator, setIndent, setMediaType, setNamespaceMappings, setOmitXMLDeclaration, setOutputProperty, setOutputPropertyDefault, setSourceLocator, setStandalone, setStandaloneInternal, setVersion, startDocument, startDocumentInternal, warning
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addUniqueAttribute
endDocument, processingInstruction
protected org.apache.xml.serializer.ToStream.BoolStack m_disableOutputEscapingStates
protected org.apache.xml.serializer.ToStream.BoolStack m_preserves
protected boolean m_ispreserve
protected boolean m_isprevtext
protected char[] m_lineSep
protected boolean m_lineSepUse
protected int m_lineSepLen
protected org.apache.xml.serializer.CharInfo m_charInfo
protected boolean m_spaceBeforeClose
protected boolean m_inDoctype
protected boolean m_cdataStartCalled
protected boolean m_escaping
public static final String CDATA_CONTINUE
public static final String CDATA_DELIMITER_CLOSE
public static final String CDATA_DELIMITER_OPEN
public static final String EMPTYSTRING
public static final String ENTITY_AMP
public static final String ENTITY_CRLF
public static final String ENTITY_GT
public static final String ENTITY_LT
public static final String ENTITY_QUOT
public static final String XML_PREFIX
public static final String XMLNS_PREFIX
public static final String XMLNS_URI
public static final String DEFAULT_SAX_SERIALIZER
public static final String XMLVERSION11
public static final String XMLVERSION10
protected void closeCDATA() throws SAXException
SAXException
public void serialize(Node node) throws IOException
node
- Node to serialize.IOException
- An I/O exception occured while serializingprotected final void flushWriter() throws SAXException
SAXException
public OutputStream getOutputStream()
public void elementDecl(String name, String model) throws SAXException
The content model will consist of the string "EMPTY", the string "ANY", or a parenthesised group, optionally followed by an occurrence indicator. The model will be normalized so that all whitespace is removed,and will include the enclosing parentheses.
name
- The element type name.model
- The content model as a normalized string.SAXException
- The application may raise an exception.public void internalEntityDecl(String name, String value) throws SAXException
Only the effective (first) declaration for each entity will be reported.
name
- The name of the entity. If it is a parameter
entity, the name will begin with '%'.value
- The replacement text of the entity.SAXException
- The application may raise an exception.externalEntityDecl(java.lang.String, java.lang.String, java.lang.String)
,
DTDHandler.unparsedEntityDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
protected final void outputLineSep() throws IOException
SAXException
IOException
public void setOutputFormat(Properties format)
format
- The output format to usepublic Properties getOutputFormat()
public void setWriter(Writer writer)
writer
- The output writer streampublic boolean setLineSepUse(boolean use_sytem_line_break)
use_sytem_line_break
- True if an input NL is replaced with the
operating systems end-of-line separator.public void setOutputStream(OutputStream output)
The encoding specified in the output properties is used, or if no encoding was specified, the default for the selected output method.
output
- The output streampublic boolean setEscaping(boolean escape)
SerializationHandler
escape
- true if escaping is to be set on.SerializationHandler.setEscaping(boolean)
protected void indent(int depth) throws IOException
depth
- the indentation depth (element nesting depth)SAXException
- if an error occurs during writing.IOException
protected void indent() throws IOException
IOException
public void attributeDecl(String eName, String aName, String type, String valueDefault, String value) throws SAXException
Only the effective (first) declaration for an attribute will be reported. The type will be one of the strings "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION", or a parenthesized token group with the separator "|" and all whitespace removed.
eName
- The name of the associated element.aName
- The name of the attribute.type
- A string representing the attribute type.valueDefault
- A string representing the attribute default
("#IMPLIED", "#REQUIRED", or "#FIXED") or null if
none of these applies.value
- A string representing the attribute's default value,
or null if there is none.SAXException
- The application may raise an exception.public Writer getWriter()
public void externalEntityDecl(String name, String publicId, String systemId) throws SAXException
Only the effective (first) declaration for each entity will be reported.
name
- The name of the entity. If it is a parameter
entity, the name will begin with '%'.publicId
- The declared public identifier of the entity, or
null if none was declared.systemId
- The declared system identifier of the entity.SAXException
- The application may raise an exception.internalEntityDecl(java.lang.String, java.lang.String)
,
DTDHandler.unparsedEntityDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
protected boolean escapingNotNeeded(char ch)
protected int writeUTF16Surrogate(char c, char[] ch, int i, int end) throws IOException
An exception is thrown if there is no low surrogate in the pair, because the array ends unexpectely, or if the low char is there but its value is such that it is not a low surrogate.
c
- the first (high) part of the surrogate, which
must be confirmed before calling this method.ch
- Character array.i
- position Where the surrogate was detected.end
- The end index of the significant characters.IOException
SAXException
- if invalid UTF-16 surrogate detected.public void endNonEscaping() throws SAXException
SAXException
startNonEscaping()
public void startNonEscaping() throws SAXException
The contents of the un-escaping section will be delivered through the regular characters event.
SAXException
protected void cdata(char[] ch, int start, int length) throws SAXException
The Parser will call this method to report each chunk of character data. SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity, so that the Locator provides useful information.
The application must not attempt to read from the array outside of the specified range.
Note that some parsers will report whitespace using the ignorableWhitespace() method rather than this one (validating parsers must do so).
ch
- The characters from the XML document.start
- The start position in the array.length
- The number of characters to read from the array.SAXException
- Any SAX exception, possibly
wrapping another exception.SAXException
ignorableWhitespace(char[], int, int)
,
Locator
protected void charactersRaw(char[] ch, int start, int length) throws SAXException
ch
- The characters from the XML document.start
- The start position in the array.length
- The number of characters to read from the array.SAXException
public void characters(char[] chars, int start, int length) throws SAXException
The Parser will call this method to report each chunk of character data. SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity, so that the Locator provides useful information.
The application must not attempt to read from the array outside of the specified range.
Note that some parsers will report whitespace using the ignorableWhitespace() method rather than this one (validating parsers must do so).
chars
- The characters from the XML document.start
- The start position in the array.length
- The number of characters to read from the array.SAXException
- Any SAX exception, possibly
wrapping another exception.SAXException
ignorableWhitespace(char[], int, int)
,
Locator
public void characters(String s) throws SAXException
s
- The string of characters to process.SAXException
public void startElement(String namespaceURI, String localName, String name, Attributes atts) throws SAXException
namespaceURI
- The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.localName
- The local name (without prefix), or the
empty string if Namespace processing is not being
performed.name
- The element type name.atts
- The attributes attached to the element, if any.SAXException
- Any SAX exception, possibly
wrapping another exception.SAXException
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
,
ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
,
AttributeList
public void startElement(String elementNamespaceURI, String elementLocalName, String elementName) throws SAXException
elementNamespaceURI
- The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.elementLocalName
- The local name (without prefix), or the
empty string if Namespace processing is not being
performed.elementName
- The element type name.SAXException
- Any SAX exception, possibly
wrapping another exception.SAXException
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
,
ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
,
AttributeList
public void startElement(String elementName) throws SAXException
ExtendedContentHandler
elementName
- the fully qualified name of the elementSAXException
public void processAttributes(Writer writer, int nAttrs) throws IOException, SAXException
writer
- the writer to write processed attributes to.nAttrs
- the number of attributes in m_attributes
to be processedIOException
SAXException
public void writeAttrString(Writer writer, String string, String encoding) throws IOException
&#xnn
.string
- String to convert to XML format.encoding
- CURRENTLY NOT IMPLEMENTED.IOException
public void endElement(String namespaceURI, String localName, String name) throws SAXException
namespaceURI
- The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.localName
- The local name (without prefix), or the
empty string if Namespace processing is not being
performed.name
- The element type nameSAXException
- Any SAX exception, possibly
wrapping another exception.SAXException
public void endElement(String name) throws SAXException
name
- The element type nameSAXException
- Any SAX exception, possibly
wrapping another exception.public void startPrefixMapping(String prefix, String uri) throws SAXException
prefix
- The Namespace prefix being declared.uri
- The Namespace URI the prefix is mapped to.SAXException
- The client may throw
an exception during processing.ContentHandler.startPrefixMapping(java.lang.String, java.lang.String)
public boolean startPrefixMapping(String prefix, String uri, boolean shouldFlush) throws SAXException
prefix
- The Namespace prefix being declared.uri
- The Namespace URI the prefix is mapped to.shouldFlush
- true if any open tags need to be closed first, this
will impact which element the mapping applies to (open parent, or its up
comming child)SAXException
- The client may throw
an exception during processing.ExtendedContentHandler.startPrefixMapping(java.lang.String, java.lang.String, boolean)
public void comment(char[] ch, int start, int length) throws SAXException
ch
- An array holding the characters in the comment.start
- The starting position in the array.length
- The number of characters to use from the array.SAXException
- The application may raise an exception.public void endCDATA() throws SAXException
SAXException
- The application may raise an exception.startCDATA()
public void endDTD() throws SAXException
SAXException
- The application may raise an exception.startDTD(java.lang.String, java.lang.String, java.lang.String)
public void endPrefixMapping(String prefix) throws SAXException
prefix
- The prefix that was being mapping.SAXException
- The client may throw
an exception during processing.ContentHandler.endPrefixMapping(java.lang.String)
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ch
- The characters from the XML document.start
- The start position in the array.length
- The number of characters to read from the array.SAXException
- Any SAX exception, possibly
wrapping another exception.SAXException
characters(char[], int, int)
public void skippedEntity(String name) throws SAXException
name
- The name of the skipped entity. If it is a
parameter entity, the name will begin with '%',
and if it is the external DTD subset, it will be the string
"[dtd]".SAXException
- Any SAX exception, possibly wrapping
another exception.ContentHandler.skippedEntity(java.lang.String)
public void startCDATA() throws SAXException
SAXException
- The application may raise an exception.endCDATA()
public void startEntity(String name) throws SAXException
name
- The name of the entity. If it is a parameter
entity, the name will begin with '%'.SAXException
- The application may raise an exception.SerializerBase.endEntity(java.lang.String)
,
DeclHandler.internalEntityDecl(java.lang.String, java.lang.String)
,
DeclHandler.externalEntityDecl(java.lang.String, java.lang.String, java.lang.String)
protected void closeStartTag() throws SAXException
SAXException
public void startDTD(String name, String publicId, String systemId) throws SAXException
name
- The document type name.publicId
- The declared public identifier for the
external DTD subset, or null if none was declared.systemId
- The declared system identifier for the
external DTD subset, or null if none was declared.SAXException
- The application may raise an
exception.endDTD()
,
startEntity(java.lang.String)
public int getIndentAmount()
getIndentAmount
in class SerializerBase
public void setIndentAmount(int m_indentAmount)
setIndentAmount
in interface SerializationHandler
setIndentAmount
in class SerializerBase
m_indentAmount
- The m_indentAmount to setprotected boolean shouldIndent()
public void setCdataSectionElements(Vector URI_and_localNames)
URI_and_localNames
- a vector of pairs of Strings (URI/local)protected String ensureAttributesNamespaceIsDeclared(String ns, String localName, String rawName) throws SAXException
ns
- the namespace URIrawName
- the qualified nameSAXException
public void flushPending() throws SAXException
SAXException
public void setContentHandler(ContentHandler ch)
SerializationHandler
Serializer.asContentHandler()
,
ToSAXHandler
public boolean addAttributeAlways(String uri, String localName, String rawName, String type, String value, boolean xslAttribute)
addAttributeAlways
in class SerializerBase
uri
- the URI of the attributelocalName
- the local name of the attributerawName
- the qualified name of the attributetype
- the type of the attribute (probably CDATA)value
- the value of the attributexslAttribute
- true if this attribute is coming from an xsl:attribute element.protected void firePseudoAttributes()
public void setTransformer(Transformer transformer)
SerializerBase
setTransformer
in interface SerializationHandler
setTransformer
in class SerializerBase
transformer
- the transformer associated with this serializer.SerializationHandler.setTransformer(Transformer)
public boolean reset()
reset
in interface Serializer
reset
in class SerializerBase
public void setEncoding(String encoding)
setEncoding
in class SerializerBase
encoding
- the character encodingpublic void notationDecl(String name, String pubID, String sysID) throws SAXException
notationDecl
in interface DTDHandler
notationDecl
in class SerializerBase
SAXException
DTDHandler.notationDecl(java.lang.String, java.lang.String, java.lang.String)
public void unparsedEntityDecl(String name, String pubID, String sysID, String notationName) throws SAXException
unparsedEntityDecl
in interface DTDHandler
unparsedEntityDecl
in class SerializerBase
SAXException
DTDHandler.unparsedEntityDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public void setDTDEntityExpansion(boolean expand)
setDTDEntityExpansion
in interface SerializationHandler
setDTDEntityExpansion
in class SerializerBase
expand
- true if DTD entities are to be expanded,
false if they are to be left as DTD entity references.public void setNewLine(char[] eolChars)
eolChars
- A character array corresponding to the characters to be used.public void addCdataSectionElements(String URI_and_localNames)
URI_and_localNames
- a whitespace separated list of element names, each element
is a URI in curly braces (optional) and a local name. An example of such a parameter is:
"{http://company.com}price {myURI2}book chapter"Copyright © 2017 JBoss by Red Hat. All rights reserved.