1 16 package org.apache.cocoon.environment.wrapper; 17 18 import java.util.Locale ; 19 20 import org.apache.cocoon.environment.Cookie; 21 import org.apache.cocoon.environment.Response; 22 23 28 public class ResponseWrapper implements Response { 29 30 private Response res; 31 32 public ResponseWrapper(Response response) { 33 this.res = response; 34 } 35 36 public String getCharacterEncoding() { 37 return res.getCharacterEncoding(); 38 } 39 40 public void setLocale(Locale loc) { 41 res.setLocale(loc); 42 } 43 44 public Locale getLocale() { 45 return res.getLocale(); 46 } 47 48 public Cookie createCookie(String name, String value) { 49 return res.createCookie(name, value); 50 } 51 52 public void addCookie(Cookie cookie) { 53 res.addCookie(cookie); 54 } 55 56 public String encodeURL(String url) { 57 return res.encodeURL(url); 58 } 59 60 public boolean containsHeader(String name) { 61 return res.containsHeader(name); 62 } 63 64 public void setDateHeader(String name, long date) { 65 } 66 67 public void addDateHeader(String name, long date) { 68 } 69 70 public void setHeader(String name, String value) { 71 } 72 73 public void addHeader(String name, String value) { 74 } 75 76 public void setIntHeader(String name, int value) { 77 } 78 79 public void addIntHeader(String name, int value) { 80 } 81 82 } 83 | Popular Tags |