1 15 package org.apache.tapestry.request; 16 17 import javax.servlet.http.HttpServletRequest ; 18 import javax.servlet.http.HttpServletRequestWrapper ; 19 20 import org.apache.hivemind.util.Defense; 21 22 29 public class DecodedRequestWrapper extends HttpServletRequestWrapper 30 { 31 private final DecodedRequest _decoded; 32 33 public DecodedRequestWrapper(HttpServletRequest request, DecodedRequest decoded) 34 { 35 super(request); 36 37 Defense.notNull(decoded, "decoded"); 38 39 _decoded = decoded; 40 } 41 42 public String getRequestURI() 43 { 44 return _decoded.getRequestURI(); 45 } 46 47 public String getScheme() 48 { 49 return _decoded.getScheme(); 50 } 51 52 public String getServerName() 53 { 54 return _decoded.getServerName(); 55 } 56 57 public int getServerPort() 58 { 59 return _decoded.getServerPort(); 60 } 61 62 public String toString() 63 { 64 return "<DecodedRequestWrapper for " + getRequest() + ">"; 65 } 66 } | Popular Tags |