1 20 package org.apache.cactus.internal.configuration; 21 22 import org.apache.cactus.WebRequest; 23 24 30 public abstract class AbstractWebConfiguration extends BaseConfiguration 31 implements WebConfiguration 32 { 33 36 public String getDefaultRedirectorURL() 37 { 38 return getContextURL() + "/" + getDefaultRedirectorName(); 39 } 40 41 44 public String getRedirectorURL(WebRequest theRequest) 45 { 46 return getContextURL() + "/" + getRedirectorName(theRequest); 47 } 48 49 52 public String getRedirectorName(WebRequest theRequest) 53 { 54 String redirectorName; 55 56 if (theRequest.getRedirectorName() != null) 57 { 58 redirectorName = theRequest.getRedirectorName(); 59 } 60 else 61 { 62 redirectorName = getDefaultRedirectorName(); 63 } 64 65 return redirectorName; 66 } 67 68 } 69 | Popular Tags |