| Method from org.apache.coyote.tomcat4.CoyoteResponseFacade Detail: |
public void addCookie(Cookie cookie) {
if (isCommitted())
return;
response.addCookie(cookie);
}
|
public void addDateHeader(String name,
long date) {
if (isCommitted())
return;
response.addDateHeader(name, date);
}
|
public void addHeader(String name,
String value) {
if (isCommitted())
return;
response.addHeader(name, value);
}
|
public void addIntHeader(String name,
int value) {
if (isCommitted())
return;
response.addIntHeader(name, value);
}
|
public void clear() {
// --------------------------------------------------------- Public Methods
response = null;
}
|
public boolean containsHeader(String name) {
return response.containsHeader(name);
}
|
public String encodeRedirectURL(String url) {
return response.encodeRedirectURL(url);
}
|
public String encodeRedirectUrl(String url) {
return response.encodeRedirectURL(url);
}
|
public String encodeURL(String url) {
return response.encodeURL(url);
}
|
public String encodeUrl(String url) {
return response.encodeURL(url);
}
|
public void finish() {
response.setSuspended(true);
}
|
public void flushBuffer() throws IOException {
if (isFinished())
// throw new IllegalStateException
// (/*sm.getString("responseFacade.finished")*/);
return;
response.setAppCommitted(true);
response.flushBuffer();
}
|
public int getBufferSize() {
return response.getBufferSize();
}
|
public String getCharacterEncoding() {
return response.getCharacterEncoding();
}
|
public Locale getLocale() {
return response.getLocale();
}
|
public ServletOutputStream getOutputStream() throws IOException {
// if (isFinished())
// throw new IllegalStateException
// (/*sm.getString("responseFacade.finished")*/);
ServletOutputStream sos = response.getOutputStream();
if (isFinished())
response.setSuspended(true);
return (sos);
}
|
public PrintWriter getWriter() throws IOException {
// if (isFinished())
// throw new IllegalStateException
// (/*sm.getString("responseFacade.finished")*/);
PrintWriter writer = response.getWriter();
if (isFinished())
response.setSuspended(true);
return (writer);
}
|
public boolean isCommitted() {
return (response.isAppCommitted());
}
|
public boolean isFinished() {
return response.isSuspended();
}
|
public void reset() {
if (isCommitted())
throw new IllegalStateException
(/*sm.getString("responseBase.reset.ise")*/);
response.reset();
}
|
public void resetBuffer() {
if (isCommitted())
throw new IllegalStateException
(/*sm.getString("responseBase.reset.ise")*/);
response.resetBuffer();
}
|
public void sendError(int sc) throws IOException {
if (isCommitted())
throw new IllegalStateException
(/*sm.getString("responseBase.reset.ise")*/);
response.setAppCommitted(true);
response.sendError(sc);
}
|
public void sendError(int sc,
String msg) throws IOException {
if (isCommitted())
throw new IllegalStateException
(/*sm.getString("responseBase.reset.ise")*/);
response.setAppCommitted(true);
response.sendError(sc, msg);
}
|
public void sendRedirect(String location) throws IOException {
if (isCommitted())
throw new IllegalStateException
(/*sm.getString("responseBase.reset.ise")*/);
response.setAppCommitted(true);
response.sendRedirect(location);
}
|
public void setBufferSize(int size) {
if (isCommitted())
throw new IllegalStateException
(/*sm.getString("responseBase.reset.ise")*/);
response.setBufferSize(size);
}
|
public void setContentLength(int len) {
if (isCommitted())
return;
response.setContentLength(len);
}
|
public void setContentType(String type) {
if (isCommitted())
return;
response.setContentType(type);
}
|
public void setDateHeader(String name,
long date) {
if (isCommitted())
return;
response.setDateHeader(name, date);
}
|
public void setHeader(String name,
String value) {
if (isCommitted())
return;
response.setHeader(name, value);
}
|
public void setIntHeader(String name,
int value) {
if (isCommitted())
return;
response.setIntHeader(name, value);
}
|
public void setLocale(Locale loc) {
if (isCommitted())
return;
response.setLocale(loc);
}
|
public void setStatus(int sc) {
if (isCommitted())
return;
response.setStatus(sc);
}
|
public void setStatus(int sc,
String sm) {
if (isCommitted())
return;
response.setStatus(sc, sm);
}
|