Methods Summary |
---|
public void | addCookie(javax.servlet.http.Cookie cookie)
if (isCommitted())
return;
response.addCookie(cookie);
|
public void | addDateHeader(java.lang.String name, long date)
if (isCommitted())
return;
response.addDateHeader(name, date);
|
public void | addHeader(java.lang.String name, java.lang.String value)
if (isCommitted())
return;
response.addHeader(name, value);
|
public void | addIntHeader(java.lang.String name, int value)
if (isCommitted())
return;
response.addIntHeader(name, value);
|
public void | clear()Clear facade.
response = null;
|
protected java.lang.Object | clone()Prevent cloning the facade.
// --------------------------------------------------------- Public Methods
throw new CloneNotSupportedException();
|
public boolean | containsHeader(java.lang.String name)
if (response == null) {
throw new IllegalStateException(
sm.getString("responseFacade.nullResponse"));
}
return response.containsHeader(name);
|
public java.lang.String | encodeRedirectURL(java.lang.String url)
if (response == null) {
throw new IllegalStateException(
sm.getString("responseFacade.nullResponse"));
}
return response.encodeRedirectURL(url);
|
public java.lang.String | encodeRedirectUrl(java.lang.String url)
if (response == null) {
throw new IllegalStateException(
sm.getString("responseFacade.nullResponse"));
}
return response.encodeRedirectURL(url);
|
public java.lang.String | encodeURL(java.lang.String url)
if (response == null) {
throw new IllegalStateException(
sm.getString("responseFacade.nullResponse"));
}
return response.encodeURL(url);
|
public java.lang.String | encodeUrl(java.lang.String url)
if (response == null) {
throw new IllegalStateException(
sm.getString("responseFacade.nullResponse"));
}
return response.encodeURL(url);
|
public void | finish()
if (response == null) {
throw new IllegalStateException(
sm.getString("responseFacade.nullResponse"));
}
response.setSuspended(true);
|
public void | flushBuffer()
if (isFinished())
// throw new IllegalStateException
// (/*sm.getString("responseFacade.finished")*/);
return;
if (SecurityUtil.isPackageProtectionEnabled()){
try{
AccessController.doPrivileged(new PrivilegedExceptionAction(){
public Object run() throws IOException{
response.setAppCommitted(true);
response.flushBuffer();
return null;
}
});
} catch(PrivilegedActionException e){
Exception ex = e.getException();
if (ex instanceof IOException){
throw (IOException)ex;
}
}
} else {
response.setAppCommitted(true);
response.flushBuffer();
}
|
public int | getBufferSize()
if (response == null) {
throw new IllegalStateException(
sm.getString("responseFacade.nullResponse"));
}
return response.getBufferSize();
|
public java.lang.String | getCharacterEncoding()
if (response == null) {
throw new IllegalStateException(
sm.getString("responseFacade.nullResponse"));
}
return response.getCharacterEncoding();
|
public int | getContentCount()
return response.getContentCount();
|
public java.util.Locale | getLocale()
if (response == null) {
throw new IllegalStateException(
sm.getString("responseFacade.nullResponse"));
}
return response.getLocale();
|
public java.lang.String | getMessage()
return response.getMessage();
|
public javax.servlet.ServletOutputStream | getOutputStream()
// if (isFinished())
// throw new IllegalStateException
// (/*sm.getString("responseFacade.finished")*/);
ServletOutputStream sos = response.getOutputStream();
if (isFinished())
response.setSuspended(true);
return (sos);
|
public int | getStatus()
return response.getStatus();
|
public CoyoteResponse | getUnwrappedCoyoteResponse()Return the original CoyoteRequest object.
// tomcat does not have any Permission types so instead of
// creating a TomcatPermission for this, use SecurityPermission.
if (Globals.IS_SECURITY_ENABLED) {
Permission perm =
new SecurityPermission("getUnwrappedCoyoteResponse");
AccessController.checkPermission(perm);
}
return response;
|
public java.io.PrintWriter | getWriter()
// if (isFinished())
// throw new IllegalStateException
// (/*sm.getString("responseFacade.finished")*/);
PrintWriter writer = response.getWriter();
if (isFinished())
response.setSuspended(true);
return (writer);
|
public boolean | isCommitted()
if (response == null) {
throw new IllegalStateException(
sm.getString("responseFacade.nullResponse"));
}
return (response.isAppCommitted());
|
public boolean | isError()
return response.isError();
|
public boolean | isFinished()
if (response == null) {
throw new IllegalStateException(
sm.getString("responseFacade.nullResponse"));
}
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, java.lang.String msg)
if (isCommitted())
throw new IllegalStateException
(/*sm.getString("responseBase.reset.ise")*/);
response.setAppCommitted(true);
response.sendError(sc, msg);
|
public void | sendError(int sc)
if (isCommitted())
throw new IllegalStateException
(/*sm.getString("responseBase.reset.ise")*/);
response.setAppCommitted(true);
response.sendError(sc);
|
public void | sendRedirect(java.lang.String location)
if (isCommitted())
throw new IllegalStateException
(/*sm.getString("responseBase.reset.ise")*/);
response.setAppCommitted(true);
response.sendRedirect(location);
|
public void | setAppCommitted(boolean appCommitted)
response.setAppCommitted(appCommitted);
|
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(java.lang.String type)
if (isCommitted())
return;
if (SecurityUtil.isPackageProtectionEnabled()){
AccessController.doPrivileged(new SetContentTypePrivilegedAction(type));
} else {
response.setContentType(type);
}
|
public void | setDateHeader(java.lang.String name, long date)
if (isCommitted())
return;
response.setDateHeader(name, date);
|
public void | setHeader(java.lang.String name, java.lang.String value)
if (isCommitted())
return;
response.setHeader(name, value);
|
public void | setIntHeader(java.lang.String name, int value)
if (isCommitted())
return;
response.setIntHeader(name, value);
|
public void | setLocale(java.util.Locale loc)
if (isCommitted())
return;
response.setLocale(loc);
|
public void | setStatus(int sc)
if (isCommitted())
return;
response.setStatus(sc);
|
public void | setStatus(int sc, java.lang.String sm)
if (isCommitted())
return;
response.setStatus(sc, sm);
|
public void | setSuspended(boolean suspended)
response.setSuspended(suspended);
|