org.jasig.portal.channels.jsp
Class HttpResponseFacade

java.lang.Object
  extended by javax.servlet.ServletResponseWrapper
      extended by javax.servlet.http.HttpServletResponseWrapper
          extended by org.jasig.portal.channels.jsp.HttpResponseFacade
All Implemented Interfaces:
HttpServletResponse, ServletResponse

Deprecated. All IChannel implementations should be migrated to portlets

@Deprecated
public class HttpResponseFacade
extends HttpServletResponseWrapper

Author:
Mark Boyd To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletResponse
SC_ACCEPTED, SC_BAD_GATEWAY, SC_BAD_REQUEST, SC_CONFLICT, SC_CONTINUE, SC_CREATED, SC_EXPECTATION_FAILED, SC_FORBIDDEN, SC_FOUND, SC_GATEWAY_TIMEOUT, SC_GONE, SC_HTTP_VERSION_NOT_SUPPORTED, SC_INTERNAL_SERVER_ERROR, SC_LENGTH_REQUIRED, SC_METHOD_NOT_ALLOWED, SC_MOVED_PERMANENTLY, SC_MOVED_TEMPORARILY, SC_MULTIPLE_CHOICES, SC_NO_CONTENT, SC_NON_AUTHORITATIVE_INFORMATION, SC_NOT_ACCEPTABLE, SC_NOT_FOUND, SC_NOT_IMPLEMENTED, SC_NOT_MODIFIED, SC_OK, SC_PARTIAL_CONTENT, SC_PAYMENT_REQUIRED, SC_PRECONDITION_FAILED, SC_PROXY_AUTHENTICATION_REQUIRED, SC_REQUEST_ENTITY_TOO_LARGE, SC_REQUEST_TIMEOUT, SC_REQUEST_URI_TOO_LONG, SC_REQUESTED_RANGE_NOT_SATISFIABLE, SC_RESET_CONTENT, SC_SEE_OTHER, SC_SERVICE_UNAVAILABLE, SC_SWITCHING_PROTOCOLS, SC_TEMPORARY_REDIRECT, SC_UNAUTHORIZED, SC_UNSUPPORTED_MEDIA_TYPE, SC_USE_PROXY
 
Constructor Summary
HttpResponseFacade(HttpServletResponse arg0)
          Deprecated.  
 
Method Summary
 void addCookie(Cookie arg0)
          Deprecated. Override to prevent corruption of underlying request.
 void addDateHeader(String arg0, long arg1)
          Deprecated. Override to prevent corruption of underlying request.
 void addHeader(String arg0, String arg1)
          Deprecated. Override to prevent corruption of underlying request.
 void addIntHeader(String arg0, int arg1)
          Deprecated. Override to prevent corruption of underlying request.
 void flushBuffer()
          Deprecated. Override to flush internal buffer and not that of underlying response.
 String getCharacterEncoding()
          Deprecated. Returns the character encoding set on this object if any.
 char[] getCharacters()
          Deprecated.  
 int getErrorCode()
          Deprecated. Provides access to error code set on this wrapper and not on the state of the underlying response.
 String getErrorMessage()
          Deprecated. Provides access to error message set on this wrapper and not on the state of the underlying response.
 ServletOutputStream getOutputStream()
          Deprecated. This is an unsupported method for our use in the JSP channel type and results in an UnsupportedOperationException being thrown.
 PrintWriter getWriter()
          Deprecated. Override to return the internal writer and not that of underlying response.
 boolean isCommitted()
          Deprecated. Always returns false since this is a wrapper that enlessly buffers the output written to it.
 boolean isSuccessful()
          Deprecated.  
 void reset()
          Deprecated. Override to prevent corruption of underlying request.
 void resetBuffer()
          Deprecated. Override to prevent corruption of underlying request.
 void sendError(int arg0)
          Deprecated. Override to prevent corruption of underlying request.
 void sendError(int arg0, String arg1)
          Deprecated. Override to prevent corruption of underlying request.
 void sendRedirect(String arg0)
          Deprecated. Override to prevent corruption of underlying request.
 void setBufferSize(int arg0)
          Deprecated. Override to prevent corruption of underlying request.
 void setCharacterEncoding(String arg0)
          Deprecated. Sets the character encoding on this object and not the underlying response.
 void setContentLength(int arg0)
          Deprecated. Override to prevent corruption of underlying request.
 void setContentType(String arg0)
          Deprecated. Only looks for the character encoding aspect of the specified content type and sets that on this object and not the underlying response.
 void setDateHeader(String arg0, long arg1)
          Deprecated. Override to prevent corruption of underlying request.
 void setHeader(String arg0, String arg1)
          Deprecated. Override to prevent corruption of underlying request.
 void setIntHeader(String arg0, int arg1)
          Deprecated. Override to prevent corruption of underlying request.
 void setLocale(Locale arg0)
          Deprecated. Override to prevent corruption of underlying request.
 void setStatus(int arg0)
          Deprecated. Override to prevent corruption of underlying request.
 void setStatus(int arg0, String arg1)
          Deprecated. Override to prevent corruption of underlying request.
 
Methods inherited from class javax.servlet.http.HttpServletResponseWrapper
containsHeader, encodeRedirectUrl, encodeRedirectURL, encodeUrl, encodeURL
 
Methods inherited from class javax.servlet.ServletResponseWrapper
getBufferSize, getContentType, getLocale, getResponse, setResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.ServletResponse
getBufferSize, getContentType, getLocale
 

Constructor Detail

HttpResponseFacade

public HttpResponseFacade(HttpServletResponse arg0)
Deprecated. 
Parameters:
arg0 -
Method Detail

getCharacters

public char[] getCharacters()
Deprecated. 

addCookie

public void addCookie(Cookie arg0)
Deprecated. 
Override to prevent corruption of underlying request.

Specified by:
addCookie in interface HttpServletResponse
Overrides:
addCookie in class HttpServletResponseWrapper

addDateHeader

public void addDateHeader(String arg0,
                          long arg1)
Deprecated. 
Override to prevent corruption of underlying request.

Specified by:
addDateHeader in interface HttpServletResponse
Overrides:
addDateHeader in class HttpServletResponseWrapper

addHeader

public void addHeader(String arg0,
                      String arg1)
Deprecated. 
Override to prevent corruption of underlying request.

Specified by:
addHeader in interface HttpServletResponse
Overrides:
addHeader in class HttpServletResponseWrapper

addIntHeader

public void addIntHeader(String arg0,
                         int arg1)
Deprecated. 
Override to prevent corruption of underlying request.

Specified by:
addIntHeader in interface HttpServletResponse
Overrides:
addIntHeader in class HttpServletResponseWrapper

sendError

public void sendError(int arg0,
                      String arg1)
               throws IOException
Deprecated. 
Override to prevent corruption of underlying request.

Specified by:
sendError in interface HttpServletResponse
Overrides:
sendError in class HttpServletResponseWrapper
Throws:
IOException

isSuccessful

public boolean isSuccessful()
Deprecated. 

getErrorCode

public int getErrorCode()
Deprecated. 
Provides access to error code set on this wrapper and not on the state of the underlying response.

Returns:

getErrorMessage

public String getErrorMessage()
Deprecated. 
Provides access to error message set on this wrapper and not on the state of the underlying response.

Returns:

sendError

public void sendError(int arg0)
               throws IOException
Deprecated. 
Override to prevent corruption of underlying request.

Specified by:
sendError in interface HttpServletResponse
Overrides:
sendError in class HttpServletResponseWrapper
Throws:
IOException

sendRedirect

public void sendRedirect(String arg0)
                  throws IOException
Deprecated. 
Override to prevent corruption of underlying request.

Specified by:
sendRedirect in interface HttpServletResponse
Overrides:
sendRedirect in class HttpServletResponseWrapper
Throws:
IOException

setDateHeader

public void setDateHeader(String arg0,
                          long arg1)
Deprecated. 
Override to prevent corruption of underlying request.

Specified by:
setDateHeader in interface HttpServletResponse
Overrides:
setDateHeader in class HttpServletResponseWrapper

setHeader

public void setHeader(String arg0,
                      String arg1)
Deprecated. 
Override to prevent corruption of underlying request.

Specified by:
setHeader in interface HttpServletResponse
Overrides:
setHeader in class HttpServletResponseWrapper

setIntHeader

public void setIntHeader(String arg0,
                         int arg1)
Deprecated. 
Override to prevent corruption of underlying request.

Specified by:
setIntHeader in interface HttpServletResponse
Overrides:
setIntHeader in class HttpServletResponseWrapper

setStatus

public void setStatus(int arg0,
                      String arg1)
Deprecated. 
Override to prevent corruption of underlying request.

Specified by:
setStatus in interface HttpServletResponse
Overrides:
setStatus in class HttpServletResponseWrapper

setStatus

public void setStatus(int arg0)
Deprecated. 
Override to prevent corruption of underlying request.

Specified by:
setStatus in interface HttpServletResponse
Overrides:
setStatus in class HttpServletResponseWrapper

flushBuffer

public void flushBuffer()
                 throws IOException
Deprecated. 
Override to flush internal buffer and not that of underlying response.

Specified by:
flushBuffer in interface ServletResponse
Overrides:
flushBuffer in class ServletResponseWrapper
Throws:
IOException

getOutputStream

public ServletOutputStream getOutputStream()
                                    throws IOException
Deprecated. 
This is an unsupported method for our use in the JSP channel type and results in an UnsupportedOperationException being thrown.

Specified by:
getOutputStream in interface ServletResponse
Overrides:
getOutputStream in class ServletResponseWrapper
Throws:
IOException

getWriter

public PrintWriter getWriter()
                      throws IOException
Deprecated. 
Override to return the internal writer and not that of underlying response.

Specified by:
getWriter in interface ServletResponse
Overrides:
getWriter in class ServletResponseWrapper
Throws:
IOException

reset

public void reset()
Deprecated. 
Override to prevent corruption of underlying request.

Specified by:
reset in interface ServletResponse
Overrides:
reset in class ServletResponseWrapper

resetBuffer

public void resetBuffer()
Deprecated. 
Override to prevent corruption of underlying request.

Specified by:
resetBuffer in interface ServletResponse
Overrides:
resetBuffer in class ServletResponseWrapper

setBufferSize

public void setBufferSize(int arg0)
Deprecated. 
Override to prevent corruption of underlying request.

Specified by:
setBufferSize in interface ServletResponse
Overrides:
setBufferSize in class ServletResponseWrapper

setCharacterEncoding

public void setCharacterEncoding(String arg0)
Deprecated. 
Sets the character encoding on this object and not the underlying response.

Specified by:
setCharacterEncoding in interface ServletResponse
Overrides:
setCharacterEncoding in class ServletResponseWrapper

setContentLength

public void setContentLength(int arg0)
Deprecated. 
Override to prevent corruption of underlying request.

Specified by:
setContentLength in interface ServletResponse
Overrides:
setContentLength in class ServletResponseWrapper

setContentType

public void setContentType(String arg0)
Deprecated. 
Only looks for the character encoding aspect of the specified content type and sets that on this object and not the underlying response.

Specified by:
setContentType in interface ServletResponse
Overrides:
setContentType in class ServletResponseWrapper

setLocale

public void setLocale(Locale arg0)
Deprecated. 
Override to prevent corruption of underlying request.

Specified by:
setLocale in interface ServletResponse
Overrides:
setLocale in class ServletResponseWrapper

getCharacterEncoding

public String getCharacterEncoding()
Deprecated. 
Returns the character encoding set on this object if any. Otherwise it delegates to the wrapped response.

Specified by:
getCharacterEncoding in interface ServletResponse
Overrides:
getCharacterEncoding in class ServletResponseWrapper

isCommitted

public boolean isCommitted()
Deprecated. 
Always returns false since this is a wrapper that enlessly buffers the output written to it.

Specified by:
isCommitted in interface ServletResponse
Overrides:
isCommitted in class ServletResponseWrapper


Copyright © 2010 Jasig. All Rights Reserved.