Java Code Examples for org.apache.commons.digester3.Digester#peek()
The following examples show how to use
org.apache.commons.digester3.Digester#peek() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: XmlRewriteRulesDigester.java From knox with Apache License 2.0 | 5 votes |
@Override public void begin( String namespace, String name, Attributes attributes ) throws Exception { Digester digester = getDigester(); UrlRewriteRulesDescriptor rules = digester.peek(); UrlRewriteRuleDescriptor rule = rules.newRule(); getDigester().push( rule ); }
Example 2
Source File: XmlRewriteRulesDigester.java From knox with Apache License 2.0 | 5 votes |
@Override public void end( String namespace, String name ) throws Exception { Digester digester = getDigester(); UrlRewriteRuleDescriptor rule = digester.pop(); UrlRewriteRulesDescriptor rules = digester.peek(); rules.addRule( rule ); }