001    package railo.runtime.rest;
002    
003    import railo.runtime.PageSource;
004    import railo.runtime.rest.path.Path;
005    
006    public class Source {
007    
008            private Mapping mapping;
009            private Path[] path;
010            private String rawPath;
011            private PageSource pageSource;
012    
013            public Source(Mapping mapping, PageSource pageSource, String path) {
014                    this.mapping=mapping;
015                    this.pageSource=pageSource;
016                    this.path=Path.init(path); 
017                    this.rawPath=path;
018            }
019    
020            /**
021             * @return the pageSource
022             */
023            public PageSource getPageSource() {
024                    return pageSource;
025            }
026    
027            /**
028             * @return the mapping
029             */
030            public Mapping getMapping() {
031                    return mapping;
032            }
033    
034            /**
035             * @return the path
036             */
037            public Path[] getPath() {
038                    return path;
039            }
040            public String getRawPath() {
041                    return rawPath;
042            }
043    
044    }