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 32 33 public class TesterServletResponseWrapper extends ServletResponseWrapper { 34 35 36 38 39 44 public TesterServletResponseWrapper(ServletResponse response) { 45 46 super(response); 47 48 } 49 50 51 53 54 56 57 public void flushBuffer() throws IOException { 58 StaticLogger.write("TesterServletResponseWrapper.flushBuffer()"); 59 getResponse().flushBuffer(); 60 } 61 62 63 public int getBufferSize() { 64 StaticLogger.write("TesterServletResponseWrapper.getBufferSize()"); 65 return (getResponse().getBufferSize()); 66 } 67 68 69 public String getCharacterEncoding() { 70 StaticLogger.write("TesterServletResponseWrapper.getCharacterEncoding()"); 71 return (getResponse().getCharacterEncoding()); 72 } 73 74 75 public Locale getLocale() { 76 StaticLogger.write("TesterServletResponseWrapper.getLocale()"); 77 return (getResponse().getLocale()); 78 } 79 80 81 public ServletOutputStream getOutputStream() throws IOException { 82 StaticLogger.write("TesterServletResponseWrapper.getOutputStream()"); 83 return (getResponse().getOutputStream()); 84 } 85 86 87 public PrintWriter getWriter() throws IOException { 88 StaticLogger.write("TesterServletResponseWrapper.getWriter()"); 89 return (getResponse().getWriter()); 90 } 91 92 93 public boolean isCommitted() { 94 StaticLogger.write("TesterServletResponseWrapper.isCommitted()"); 95 return (getResponse().isCommitted()); 96 } 97 98 99 public void reset() { 100 StaticLogger.write("TesterServletResponseWrapper.reset()"); 101 getResponse().reset(); 102 } 103 104 105 public void resetBuffer() { 106 StaticLogger.write("TesterServletResponseWrapper.resetBuffer()"); 107 getResponse().resetBuffer(); 108 } 109 110 111 public void setBufferSize(int size) { 112 StaticLogger.write("TesterServletResponseWrapper.setBufferSize()"); 113 getResponse().setBufferSize(size); 114 } 115 116 117 public void setContentLength(int len) { 118 StaticLogger.write("TesterServletResponseWrapper.setContentLength()"); 119 getResponse().setContentLength(len); 120 } 121 122 123 public void setContentType(String type) { 124 StaticLogger.write("TesterServletResponseWrapper.setContentType()"); 125 getResponse().setContentType(type); 126 } 127 128 129 public void setLocale(Locale locale) { 130 StaticLogger.write("TesterServletResponseWrapper.setLocale()"); 131 getResponse().setLocale(locale); 132 } 133 134 135 } 136 | Popular Tags |