1 23 package com.sun.enterprise.web.deploy; 24 25 26 import org.apache.catalina.deploy.ErrorPage; 27 import com.sun.enterprise.deployment.web.ErrorPageDescriptor; 28 29 30 import org.apache.catalina.util.RequestUtil; 31 import java.io.Serializable ; 32 33 34 39 40 public class ErrorPageDecorator extends ErrorPage { 41 42 private ErrorPageDescriptor decoree; 43 44 private String location; 45 46 public ErrorPageDecorator(ErrorPageDescriptor decoree){ 47 this.decoree = decoree; 48 setErrorCode(decoree.getErrorCode()); 49 String exceptionType = decoree.getExceptionType(); 50 if (exceptionType.equals("")){ 51 setExceptionType(null); 52 } else { 53 setExceptionType(exceptionType); 54 } 55 56 setLocation(RequestUtil.URLDecode(decoree.getLocation())); 57 } 58 } 59 | Popular Tags |