001    package railo.runtime.rest.path;
002    
003    
004    import railo.runtime.type.Struct;
005    
006    public class LiteralPath extends Path {
007            
008            private String path;
009    
010            public LiteralPath(String path){
011                    this.path=path;
012            }
013            
014            @Override
015            public boolean match(Struct variables, String path) {
016                    return this.path.equals(path);
017            }
018            
019            public String toString(){
020                    return "literal:"+path;
021            }
022    }