1 31 32 package org.opencms.staticexport; 33 34 import java.io.IOException ; 35 36 import javax.servlet.http.HttpServletResponse ; 37 import javax.servlet.http.HttpServletResponseWrapper ; 38 39 53 public class CmsStaticExportResponseWrapper extends HttpServletResponseWrapper { 54 55 56 protected int m_status; 57 58 63 public CmsStaticExportResponseWrapper(HttpServletResponse res) { 64 65 super(res); 66 m_status = -1; 67 } 68 69 75 public int getStatus() { 76 77 return m_status; 78 } 79 80 83 public void sendError(int status) throws IOException { 84 85 m_status = status; 86 super.sendError(status); 87 } 88 89 92 public void sendError(int status, String message) throws IOException { 93 94 m_status = status; 95 super.sendError(status, message); 96 } 97 98 101 public void setStatus(int status) { 102 103 m_status = status; 104 super.setStatus(status); 105 } 106 107 110 public void setStatus(int status, String message) { 111 112 m_status = status; 113 super.setStatus(status, message); 114 } 115 } | Popular Tags |