1 20 package org.apache.cactus.server; 21 22 import java.io.UnsupportedEncodingException ; 23 24 import java.util.Map ; 25 26 import javax.servlet.http.HttpServletRequest ; 27 28 import org.apache.cactus.ServletURL; 29 30 37 public abstract class AbstractHttpServletRequestWrapper23 38 extends AbstractHttpServletRequestWrapper 39 { 40 49 public AbstractHttpServletRequestWrapper23(HttpServletRequest theRequest, 50 ServletURL theURL) 51 { 52 super(theRequest, theURL); 53 } 54 55 57 62 public StringBuffer getRequestURL() 63 { 64 StringBuffer result; 65 66 if (this.url != null) 67 { 68 result = new StringBuffer (this.url.getProtocol() + "://" 69 + getServerName() + ":" + getServerPort() 70 + getRequestURI()); 71 } 72 else 73 { 74 result = this.request.getRequestURL(); 75 } 76 77 return result; 78 } 79 80 83 public void setCharacterEncoding(String theEnvironment) 84 throws UnsupportedEncodingException 85 { 86 this.request.setCharacterEncoding(theEnvironment); 87 } 88 89 92 public Map getParameterMap() 93 { 94 return this.request.getParameterMap(); 95 } 96 } 97 | Popular Tags |