1 16 17 package org.apache.tester; 18 19 20 import java.io.*; 21 import java.util.*; 22 import javax.servlet.*; 23 import javax.servlet.http.*; 24 25 26 33 34 public class UpperCaseRequest extends HttpServletRequestWrapper { 35 36 37 HttpServletRequest request = null; 38 39 public UpperCaseRequest(HttpServletRequest request) { 40 super(request); 41 this.request = request; 42 } 43 44 public ServletInputStream getInputStream() throws IOException { 45 return (new UpperCaseInputStream(request.getInputStream())); 46 } 47 48 public BufferedReader getReader() throws IOException { 49 return (new UpperCaseReader(request.getReader())); 50 } 51 52 53 } 54 55 56 57 | Popular Tags |