|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.staxutils.DepthXMLStreamReader
org.apache.cxf.staxutils.DepthRestrictingStreamReader
public class DepthRestrictingStreamReader
XMLStreamReader implementation which can be used to enforce a number of depth-restricting policies. The following properties are currently supported: - total number of elements in the document - the maximum depth of the given element; the root element will be checked by default - the maximum number of immediate child nodes for individual elements More sophisticated policies can be supported in the future.
| Field Summary |
|---|
| Fields inherited from class org.apache.cxf.staxutils.DepthXMLStreamReader |
|---|
reader |
| Fields inherited from interface javax.xml.stream.XMLStreamConstants |
|---|
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT |
| Constructor Summary | |
|---|---|
DepthRestrictingStreamReader(javax.xml.stream.XMLStreamReader reader,
DocumentDepthProperties props)
|
|
DepthRestrictingStreamReader(javax.xml.stream.XMLStreamReader reader,
int elementCountThreshold,
int innerElementLevelThreshold,
int innerElementCountThreshold)
|
|
| Method Summary | |
|---|---|
int |
next()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DepthRestrictingStreamReader(javax.xml.stream.XMLStreamReader reader,
int elementCountThreshold,
int innerElementLevelThreshold,
int innerElementCountThreshold)
public DepthRestrictingStreamReader(javax.xml.stream.XMLStreamReader reader,
DocumentDepthProperties props)
| Method Detail |
|---|
public int next()
throws javax.xml.stream.XMLStreamException
next in interface javax.xml.stream.XMLStreamReadernext in class DepthXMLStreamReaderjavax.xml.stream.XMLStreamException
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||