public class XMLSample extends MessageSample
| Modifier and Type | Field and Description |
|---|---|
static XMLSample |
DTD_FULL
An XML document that has a document type declaration with a system ID, public ID and internal
subset.
|
static XMLSample |
ENTITY_REFERENCE_NESTED |
static XMLSample |
LARGE
An XML document that is larger than the input buffer of typical XML parsers.
|
static XMLSample |
SIMPLE
A simple XML document without any particular features.
|
| Modifier | Constructor and Description |
|---|---|
protected |
XMLSample(MessageContent content,
String name) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
Document |
getDocument() |
String |
getEncoding() |
protected String |
getMediaType() |
String |
getName()
Get the name of this message (for use in test case naming e.g.).
|
boolean |
hasDTD() |
boolean |
hasEntityReferences() |
boolean |
hasExternalSubset() |
boolean |
hasInternalSubset() |
getInputStream, getUrlpublic static final XMLSample SIMPLE
public static final XMLSample LARGE
public static final XMLSample ENTITY_REFERENCE_NESTED
public static final XMLSample DTD_FULL
protected XMLSample(MessageContent content, String name)
public final String getName()
public final String getEncoding()
public final boolean hasDTD()
public final boolean hasExternalSubset()
public final boolean hasInternalSubset()
public final boolean hasEntityReferences()
public final Document getDocument()
public final String getContentType()
getContentType in class MessageSampleprotected String getMediaType()
Copyright © The Apache Software Foundation. All Rights Reserved.