Package org.apache.axiom.ts.xml
Class XMLSample
- java.lang.Object
-
- org.apache.axiom.testing.multiton.Multiton
-
- org.apache.axiom.ts.xml.MessageSample
-
- org.apache.axiom.ts.xml.XMLSample
-
public class XMLSample extends MessageSample
-
-
Field Summary
Fields Modifier and Type Field Description static XMLSampleDTD_FULLAn XML document that has a document type declaration with a system ID, public ID and internal subset.static XMLSampleENTITY_REFERENCE_NESTEDstatic XMLSampleLARGEAn XML document that is larger than the input buffer of typical XML parsers.static XMLSampleSIMPLEA simple XML document without any particular features.
-
Constructor Summary
Constructors Modifier Constructor Description protectedXMLSample(MessageContent content, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()DocumentgetDocument()StringgetEncoding()protected StringgetMediaType()booleanhasDTD()booleanhasEntityReferences()booleanhasExternalSubset()booleanhasInternalSubset()-
Methods inherited from class org.apache.axiom.ts.xml.MessageSample
getInputStream, getName, getUrl
-
-
-
-
Field Detail
-
SIMPLE
public static final XMLSample SIMPLE
A simple XML document without any particular features.
-
LARGE
public static final XMLSample LARGE
An XML document that is larger than the input buffer of typical XML parsers.
-
ENTITY_REFERENCE_NESTED
public static final XMLSample ENTITY_REFERENCE_NESTED
-
DTD_FULL
public static final XMLSample DTD_FULL
An XML document that has a document type declaration with a system ID, public ID and internal subset.
-
-
Constructor Detail
-
XMLSample
protected XMLSample(MessageContent content, String name)
-
-
Method Detail
-
getEncoding
public final String getEncoding()
-
hasDTD
public final boolean hasDTD()
-
hasExternalSubset
public final boolean hasExternalSubset()
-
hasInternalSubset
public final boolean hasInternalSubset()
-
hasEntityReferences
public final boolean hasEntityReferences()
-
getDocument
public final Document getDocument()
-
getContentType
public final String getContentType()
- Specified by:
getContentTypein classMessageSample
-
getMediaType
protected String getMediaType()
-
-