KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > services > urlrewriting > RewriteRule


1 package org.jahia.services.urlrewriting;
2
3 import java.util.Properties JavaDoc;
4 import org.jahia.exceptions.JahiaException;
5
6 /**
7  * <p>Title: </p>
8  * <p>Description: </p>
9  * <p>Copyright: Copyright (c) 2002</p>
10  * <p>Company: Jahia Ltd</p>
11  * @author Serge Huber
12  * @version 1.0
13  */

14
15 public abstract class RewriteRule {
16
17     protected Properties JavaDoc originalFromRewrittenProps;
18     protected Properties JavaDoc rewrittenFromOriginalProps;
19
20     public RewriteRule(Properties JavaDoc originalFromRewrittenProps, Properties JavaDoc rewrittenFromOriginalProps) throws JahiaException {
21         this.originalFromRewrittenProps = originalFromRewrittenProps;
22         this.rewrittenFromOriginalProps = rewrittenFromOriginalProps;
23     }
24
25     public abstract String JavaDoc getOriginalFromRewritten(String JavaDoc rewrittenURL);
26
27     public abstract String JavaDoc getRewrittenFromOriginal(String JavaDoc originalURL);
28
29 }
Popular Tags