Package com.levigo.jadice.server.xml
Class AbstractToXMLNode
- java.lang.Object
-
- com.levigo.jadice.server.internal.NodeInternal
-
- com.levigo.jadice.server.Node
-
- com.levigo.jadice.server.xml.AbstractToXMLNode
-
- Direct Known Subclasses:
PlaintextToXMLNode
public abstract class AbstractToXMLNode extends Node
ANode
to convert a stream to XML. Subclasses of this shall specialize for a certain set of MIME types.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.levigo.jadice.server.Node
Node.Cardinality
-
-
Constructor Summary
Constructors Constructor Description AbstractToXMLNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isUseMetadataEnvelope()
void
setUseMetadataEnvelope(boolean useMetadataEnvelope)
Set a flag indicating whether the generated XML should be wrapped in an envelope containing also the stream meta data (fromStream.getDescriptor()
).-
Methods inherited from class com.levigo.jadice.server.Node
addTransportReceiver, appendSuccessor, apply, equals, getInputCardinality, getJob, getOutputCardinality, getPredecessors, getSubsidiaryNodes, getSuccessors, getTransportSender, getUUID, getWorkerClassName, hashCode, initialize, prependPredecessor, remove, validateConfiguration
-
-
-
-
Method Detail
-
isUseMetadataEnvelope
public boolean isUseMetadataEnvelope()
- Returns:
- the useMetadataEnvelope
-
setUseMetadataEnvelope
public void setUseMetadataEnvelope(boolean useMetadataEnvelope)
Set a flag indicating whether the generated XML should be wrapped in an envelope containing also the stream meta data (fromStream.getDescriptor()
).if this flag was set the resulting document will look like this:
<envelope> <stream ... > <!-- the meta data --> </stream> <whatever ... > <!-- generated XML goes here --> </whatever> </envelope>
- Parameters:
useMetadataEnvelope
- the useMetadataEnvelope to set
-
-