public class DepthRestrictingStreamInterceptor extends AbstractPhaseInterceptor<Message>
Constructor and Description |
---|
DepthRestrictingStreamInterceptor() |
DepthRestrictingStreamInterceptor(String phase) |
DepthRestrictingStreamInterceptor(String phase,
List<String> after) |
DepthRestrictingStreamInterceptor(String phase,
List<String> before,
List<String> after) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canBeIgnored(Message message) |
int |
getElementCountThreshold() |
int |
getInnerElementCountThreshold() |
int |
getInnerElementLevelThreshold() |
void |
handleMessage(Message message)
Intercepts a message.
|
void |
setElementCountThreshold(int elementCountThreshold)
Sets the acceptable total number of elements in the XML payload
|
void |
setInnerElementCountThreshold(int innerElementCountThreshold)
Sets the acceptable total number of child elements for the current XML element
|
void |
setInnerElementLevelThreshold(int elementLevelThreshold)
Sets the acceptable total stack depth in the XML payload
|
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
public DepthRestrictingStreamInterceptor()
public DepthRestrictingStreamInterceptor(String phase)
public DepthRestrictingStreamInterceptor(String phase, List<String> after)
public void handleMessage(Message message)
Interceptor
protected boolean canBeIgnored(Message message)
public void setElementCountThreshold(int elementCountThreshold)
elementCountThreshold
- public int getElementCountThreshold()
public void setInnerElementLevelThreshold(int elementLevelThreshold)
elementLevelThreshold
- public int getInnerElementLevelThreshold()
public void setInnerElementCountThreshold(int innerElementCountThreshold)
innerElementCountThreshold
- public int getInnerElementCountThreshold()
Apache CXF