de.uplanet.lucy.server.connector.web
Class HttpResponseWrapper

java.lang.Object
  extended by de.uplanet.lucy.server.connector.web.HttpResponseWrapper

public final class HttpResponseWrapper
extends java.lang.Object

Version:
$Revision: 71960 $

Constructor Summary
HttpResponseWrapper(de.uplanet.lucy.server.connector.web.ServerBridgeResponse p_response)
           
 
Method Summary
 void addCookie(javax.servlet.http.Cookie p_cookie)
           
 void addDateHeader(java.lang.String p_strName, long p_lDate)
           
 void addHeader(java.lang.String p_strName, java.lang.String p_strValue)
           
 void addIntHeader(java.lang.String p_strName, int p_arg1)
           
 boolean containsHeader(java.lang.String p_strName)
           
 java.lang.String encodeRedirectUrl(java.lang.String p_strUrl)
          Deprecated. 
 java.lang.String encodeRedirectURL(java.lang.String p_strUrl)
           
 java.lang.String encodeUrl(java.lang.String p_strUrl)
          Deprecated. 
 java.lang.String encodeURL(java.lang.String p_strUrl)
           
 void flushBuffer()
           
 int getBufferSize()
           
 java.lang.String getCharacterEncoding()
           
 java.lang.String getContentType()
           
 boolean getIgnoreWrite()
          Get the ignore-write flag.
 java.util.Locale getLocale()
           
 OutgoingWireProtocolOutputStream getOutputStream()
           
 OutgoingWireProtocolOutputWriter getWriter()
           
 boolean isCommitted()
           
 boolean isStreaming()
           
 void reset()
           
 void resetBuffer()
           
 void sendError(int p_iStatus)
           
 void sendError(int p_iStatus, java.lang.String p_strMsg)
           
 void sendRedirect(java.lang.String p_strLocation)
           
 void setBufferSize(int p_iBufSize)
           
 void setCharacterEncoding(java.lang.String p_strEncoding)
           
 void setContentLength(int p_arg0)
           
 void setContentType(java.lang.String p_arg0)
           
 void setDateHeader(java.lang.String p_strName, long p_arg1)
           
 void setHeader(java.lang.String p_strName, java.lang.String p_strValue)
           
 void setIgnoreWrite(boolean p_bIgnoreWrite)
          Set or unset the ignore-write flag.
 void setIntHeader(java.lang.String p_strName, int p_iValue)
           
 void setLocale(java.util.Locale p_locale)
           
 void setStatus(int p_iStatus)
           
 void setStatus(int p_iStatus, java.lang.String p_strMsg)
           
 void setStreaming()
          Switch the wire protocol output stream to streaming mode.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpResponseWrapper

public HttpResponseWrapper(de.uplanet.lucy.server.connector.web.ServerBridgeResponse p_response)
Method Detail

isStreaming

public boolean isStreaming()
Returns:
true if the wire protocol output stream is in streaming mode, false otherwise.

setStreaming

public void setStreaming()
                  throws java.io.IOException
Switch the wire protocol output stream to streaming mode.

Throws:
java.io.IOException

getIgnoreWrite

public boolean getIgnoreWrite()
Get the ignore-write flag.


setIgnoreWrite

public void setIgnoreWrite(boolean p_bIgnoreWrite)
Set or unset the ignore-write flag.


getBufferSize

public int getBufferSize()
Throws:
java.lang.UnsupportedOperationException - Always.

setBufferSize

public void setBufferSize(int p_iBufSize)
Throws:
java.lang.UnsupportedOperationException - Always.

resetBuffer

public void resetBuffer()
Throws:
java.lang.UnsupportedOperationException - Always.

flushBuffer

public void flushBuffer()
                 throws java.io.IOException
Throws:
java.lang.UnsupportedOperationException - Always.
java.io.IOException

isCommitted

public boolean isCommitted()
Throws:
java.lang.UnsupportedOperationException - Always.

reset

public void reset()

getOutputStream

public OutgoingWireProtocolOutputStream getOutputStream()
                                                 throws java.io.IOException
Throws:
java.io.IOException

getWriter

public OutgoingWireProtocolOutputWriter getWriter()
                                           throws java.io.IOException
Throws:
java.io.IOException

getCharacterEncoding

public java.lang.String getCharacterEncoding()
Throws:
java.lang.UnsupportedOperationException - Always.

getLocale

public java.util.Locale getLocale()
Throws:
java.lang.UnsupportedOperationException - Always.

setLocale

public void setLocale(java.util.Locale p_locale)
Throws:
java.lang.UnsupportedOperationException - Always.

setContentLength

public void setContentLength(int p_arg0)
Throws:
java.lang.UnsupportedOperationException - Always.

setContentType

public void setContentType(java.lang.String p_arg0)
Throws:
java.lang.UnsupportedOperationException - Always.

setStatus

public void setStatus(int p_iStatus,
                      java.lang.String p_strMsg)
Throws:
java.lang.UnsupportedOperationException - Always.

setStatus

public void setStatus(int p_iStatus)
Throws:
java.lang.UnsupportedOperationException - Always.

sendError

public void sendError(int p_iStatus,
                      java.lang.String p_strMsg)
               throws java.io.IOException
Throws:
java.lang.UnsupportedOperationException - Always.
java.io.IOException

sendError

public void sendError(int p_iStatus)
               throws java.io.IOException
Throws:
java.lang.UnsupportedOperationException - Always.
java.io.IOException

sendRedirect

public void sendRedirect(java.lang.String p_strLocation)
                  throws java.io.IOException
Throws:
java.lang.UnsupportedOperationException - Always.
java.io.IOException

setCharacterEncoding

public void setCharacterEncoding(java.lang.String p_strEncoding)
Throws:
java.lang.UnsupportedOperationException - Always.

setHeader

public void setHeader(java.lang.String p_strName,
                      java.lang.String p_strValue)

setDateHeader

public void setDateHeader(java.lang.String p_strName,
                          long p_arg1)
Throws:
java.lang.UnsupportedOperationException - Always.

setIntHeader

public void setIntHeader(java.lang.String p_strName,
                         int p_iValue)

addDateHeader

public void addDateHeader(java.lang.String p_strName,
                          long p_lDate)
Throws:
java.lang.UnsupportedOperationException - Always.

addHeader

public void addHeader(java.lang.String p_strName,
                      java.lang.String p_strValue)
Throws:
java.lang.UnsupportedOperationException - Always.

addIntHeader

public void addIntHeader(java.lang.String p_strName,
                         int p_arg1)
Throws:
java.lang.UnsupportedOperationException - Always.

containsHeader

public boolean containsHeader(java.lang.String p_strName)

getContentType

public java.lang.String getContentType()
Throws:
java.lang.UnsupportedOperationException - Always.

addCookie

public void addCookie(javax.servlet.http.Cookie p_cookie)
Throws:
java.lang.UnsupportedOperationException - Always.

encodeRedirectURL

public java.lang.String encodeRedirectURL(java.lang.String p_strUrl)
Throws:
java.lang.UnsupportedOperationException - Always.

encodeRedirectUrl

@Deprecated
public java.lang.String encodeRedirectUrl(java.lang.String p_strUrl)
Deprecated. 

Throws:
java.lang.UnsupportedOperationException - Always.

encodeURL

public java.lang.String encodeURL(java.lang.String p_strUrl)
Throws:
java.lang.UnsupportedOperationException - Always.

encodeUrl

@Deprecated
public java.lang.String encodeUrl(java.lang.String p_strUrl)
Deprecated. 

Throws:
java.lang.UnsupportedOperationException - Always.


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.