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;
if(Globals.IS_SECURITY_ENABLED) {
AccessController.doPrivileged(new DateHeaderPrivilegedAction
(name, date, true));
} else {
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.
// --------------------------------------------------------- Public Methods
response = null;
|
protected java.lang.Object | clone()Prevent cloning the facade.
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 java.lang.String | getContentType()
if (response == null) {
throw new IllegalStateException(
sm.getString("responseFacade.nullResponse"));
}
return response.getContentType();
|
public java.util.Locale | getLocale()
if (response == null) {
throw new IllegalStateException(
sm.getString("responseFacade.nullResponse"));
}
return response.getLocale();
|
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 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 | 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 | setBufferSize(int size)
if (isCommitted())
throw new IllegalStateException
(/*sm.getString("responseBase.reset.ise")*/);
response.setBufferSize(size);
|
public void | setCharacterEncoding(java.lang.String arg0)
if (response == null) {
throw new IllegalStateException(
sm.getString("responseFacade.nullResponse"));
}
response.setCharacterEncoding(arg0);
|
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;
if(Globals.IS_SECURITY_ENABLED) {
AccessController.doPrivileged(new DateHeaderPrivilegedAction
(name, date, false));
} else {
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);
|