| 1 28 29 package com.opencms.core; 30 31 import java.io.IOException ; 32 import java.io.OutputStream ; 33 34 import javax.servlet.http.HttpServletResponse ; 35 36 51 public interface I_CmsResponse { 52 53 54 String C_CMS_RESPONSE = "__I_CmsResponse"; 55 56 61 HttpServletResponse getOriginalResponse(); 62 63 69 int getOriginalResponseType(); 70 71 77 OutputStream getOutputStream() throws IOException ; 78 79 83 boolean isOutputWritten(); 84 85 90 boolean isRedirected(); 91 92 98 void sendCmsRedirect(String location) throws IOException ; 99 100 107 void sendError(int code) throws IOException ; 108 109 117 void sendError(int code, String msg) throws IOException ; 118 119 125 void sendRedirect(String location) throws IOException ; 126 127 132 void setContentLength(int len); 133 134 139 void setContentType(String type); 140 141 147 String getContentType(); 148 149 155 void setHeader(String key, String value); 156 157 163 void addHeader(String key, String value); 164 165 170 void setLastModified(long time); 171 172 177 boolean containsHeader(String key); 178 } 179 | Popular Tags |