1 17 18 19 package org.apache.catalina.servlets; 20 21 22 import javax.servlet.http.HttpServletRequest ; 23 import javax.servlet.http.HttpServletRequestWrapper ; 24 25 26 35 36 class InvokerHttpRequest extends HttpServletRequestWrapper { 37 38 39 41 42 47 public InvokerHttpRequest(HttpServletRequest request) { 48 49 super(request); 50 this.pathInfo = request.getPathInfo(); 51 this.pathTranslated = request.getPathTranslated(); 52 this.requestURI = request.getRequestURI(); 53 this.servletPath = request.getServletPath(); 54 55 } 56 57 58 60 61 64 protected static final String info = 65 "org.apache.catalina.servlets.InvokerHttpRequest/1.0"; 66 67 68 71 protected String pathInfo = null; 72 73 74 77 protected String pathTranslated = null; 78 79 80 83 protected String requestURI = null; 84 85 86 89 protected String servletPath = null; 90 91 92 94 95 98 public String getPathInfo() { 99 100 return (this.pathInfo); 101 102 } 103 104 105 109 public String getPathTranslated() { 110 111 return (this.pathTranslated); 112 113 } 114 115 116 119 public String getRequestURI() { 120 121 return (this.requestURI); 122 123 } 124 125 126 130 public String getServletPath() { 131 132 return (this.servletPath); 133 134 } 135 136 137 139 140 141 144 public String getInfo() { 145 146 return (info); 147 148 } 149 150 151 156 void setPathInfo(String pathInfo) { 157 158 this.pathInfo = pathInfo; 159 160 } 161 162 163 168 void setPathTranslated(String pathTranslated) { 169 170 this.pathTranslated = pathTranslated; 171 172 } 173 174 175 180 void setRequestURI(String requestURI) { 181 182 this.requestURI = requestURI; 183 184 } 185 186 187 192 void setServletPath(String servletPath) { 193 194 this.servletPath = servletPath; 195 196 } 197 198 199 } 200 | Popular Tags |