001    package org.picocontainer.web.chain.divertor;
002    
003    import org.picocontainer.web.chain.Divertor;
004    
005    /**
006     * simple divertor diverting to hardvired UIRL
007     * 
008     * @author k.pribluda
009     * 
010     */
011    public class SimpleDivertor implements Divertor {
012            String path;
013    
014            public SimpleDivertor(String path) {
015                    this.path = path;
016            }
017    
018            public String divert(Throwable cause) {
019    
020                    return path;
021            }
022    
023            public String getPath() {
024                    return path;
025            }
026    
027            public void setPath(String path) {
028                    this.path = path;
029            }
030    
031    }