Methods Summary |
---|
public void | clear()Clear facade.
// --------------------------------------------------------- Public Methods
response = null;
resp = null;
|
public void | finish()
resp.setSuspended(true);
|
public void | flushBuffer()
// Disallow operation if the object has gone out of scope
if (response == null) {
throw new IllegalStateException(
sm.getString("object.invalidScope"));
}
if (isFinished())
// throw new IllegalStateException
// (/*sm.getString("responseFacade.finished")*/);
return;
resp.setAppCommitted(true);
try {
response.flushBuffer();
} catch(IOException ioe) {
// An IOException on a write is almost always due to
// the remote client aborting the request. Wrap this
// so that it can be handled better by the error dispatcher.
throw new ClientAbortException(ioe);
}
|
public int | getBufferSize()
// Disallow operation if the object has gone out of scope
if (response == null) {
throw new IllegalStateException(
sm.getString("object.invalidScope"));
}
return response.getBufferSize();
|
public java.lang.String | getCharacterEncoding()
// Disallow operation if the object has gone out of scope
if (response == null) {
throw new IllegalStateException(
sm.getString("object.invalidScope"));
}
return response.getCharacterEncoding();
|
public java.lang.String | getContentType()
// Disallow operation if the object has gone out of scope
if (response == null) {
throw new IllegalStateException(
sm.getString("object.invalidScope"));
}
return response.getContentType();
|
public java.util.Locale | getLocale()
// Disallow operation if the object has gone out of scope
if (response == null) {
throw new IllegalStateException(
sm.getString("object.invalidScope"));
}
return response.getLocale();
|
public javax.servlet.ServletOutputStream | getOutputStream()
// if (isFinished())
// throw new IllegalStateException
// (/*sm.getString("responseFacade.finished")*/);
// Disallow operation if the object has gone out of scope
if (response == null) {
throw new IllegalStateException(
sm.getString("object.invalidScope"));
}
ServletOutputStream sos = response.getOutputStream();
if (isFinished())
resp.setSuspended(true);
return (sos);
|
public java.io.PrintWriter | getWriter()
// if (isFinished())
// throw new IllegalStateException
// (/*sm.getString("responseFacade.finished")*/);
// Disallow operation if the object has gone out of scope
if (response == null) {
throw new IllegalStateException(
sm.getString("object.invalidScope"));
}
PrintWriter writer = response.getWriter();
if (isFinished())
resp.setSuspended(true);
return (writer);
|
public boolean | isCommitted()
// Disallow operation if the object has gone out of scope
if (response == null) {
throw new IllegalStateException(
sm.getString("object.invalidScope"));
}
return (resp.isAppCommitted());
|
public boolean | isFinished()
return resp.isSuspended();
|
public void | reset()
// Disallow operation if the object has gone out of scope
if (response == null) {
throw new IllegalStateException(
sm.getString("object.invalidScope"));
}
if (isCommitted())
throw new IllegalStateException
(/*sm.getString("responseBase.reset.ise")*/);
response.reset();
|
public void | resetBuffer()
// Disallow operation if the object has gone out of scope
if (response == null) {
throw new IllegalStateException(
sm.getString("object.invalidScope"));
}
if (isCommitted())
throw new IllegalStateException
(/*sm.getString("responseBase.reset.ise")*/);
response.resetBuffer();
|
public void | setBufferSize(int size)
// Disallow operation if the object has gone out of scope
if (response == null) {
throw new IllegalStateException(
sm.getString("object.invalidScope"));
}
if (isCommitted())
throw new IllegalStateException
(/*sm.getString("responseBase.reset.ise")*/);
response.setBufferSize(size);
|
public void | setCharacterEncoding(java.lang.String charset)
// Disallow operation if the object has gone out of scope
if (response == null) {
throw new IllegalStateException(
sm.getString("object.invalidScope"));
}
if (isCommitted())
return;
response.setCharacterEncoding(charset);
|
public void | setContentLength(int len)
// Disallow operation if the object has gone out of scope
if (response == null) {
throw new IllegalStateException(
sm.getString("object.invalidScope"));
}
if (isCommitted())
return;
response.setContentLength(len);
|
public void | setContentType(java.lang.String type)
// Disallow operation if the object has gone out of scope
if (response == null) {
throw new IllegalStateException(
sm.getString("object.invalidScope"));
}
if (isCommitted())
return;
response.setContentType(type);
|
public void | setLocale(java.util.Locale loc)
// Disallow operation if the object has gone out of scope
if (response == null) {
throw new IllegalStateException(
sm.getString("object.invalidScope"));
}
if (isCommitted())
return;
response.setLocale(loc);
|