Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 17 18 19 package org.apache.catalina.deploy; 20 21 22 import org.apache.catalina.util.RequestUtil; 23 import java.io.Serializable ; 24 25 26 34 35 public class ErrorPage implements Serializable { 36 37 38 40 41 44 private int errorCode = 0; 45 46 47 50 private String exceptionType = null; 51 52 53 56 private String location = null; 57 58 59 61 62 65 public int getErrorCode() { 66 67 return (this.errorCode); 68 69 } 70 71 72 77 public void setErrorCode(int errorCode) { 78 79 this.errorCode = errorCode; 80 81 } 82 83 84 89 public void setErrorCode(String errorCode) { 90 91 try { 92 this.errorCode = Integer.parseInt(errorCode); 93 } catch (Throwable t) { 94 this.errorCode = 0; 95 } 96 97 } 98 99 100 103 public String getExceptionType() { 104 105 return (this.exceptionType); 106 107 } 108 109 110 115 public void setExceptionType(String exceptionType) { 116 117 this.exceptionType = exceptionType; 118 119 } 120 121 122 125 public String getLocation() { 126 127 return (this.location); 128 129 } 130 131 132 137 public void setLocation(String location) { 138 139 this.location = RequestUtil.URLDecode(location); 143 144 } 145 146 147 149 150 153 public String toString() { 154 155 StringBuffer sb = new StringBuffer ("ErrorPage["); 156 if (exceptionType == null) { 157 sb.append("errorCode="); 158 sb.append(errorCode); 159 } else { 160 sb.append("exceptionType="); 161 sb.append(exceptionType); 162 } 163 sb.append(", location="); 164 sb.append(location); 165 sb.append("]"); 166 return (sb.toString()); 167 168 } 169 170 171 } 172
| Popular Tags
|