1 package org.jahia.services.urlrewriting; 2 3 import java.util.Properties ; 4 import org.jahia.exceptions.JahiaException; 5 6 14 15 public abstract class RewriteRule { 16 17 protected Properties originalFromRewrittenProps; 18 protected Properties rewrittenFromOriginalProps; 19 20 public RewriteRule(Properties originalFromRewrittenProps, Properties rewrittenFromOriginalProps) throws JahiaException { 21 this.originalFromRewrittenProps = originalFromRewrittenProps; 22 this.rewrittenFromOriginalProps = rewrittenFromOriginalProps; 23 } 24 25 public abstract String getOriginalFromRewritten(String rewrittenURL); 26 27 public abstract String getRewrittenFromOriginal(String originalURL); 28 29 } | Popular Tags |