Class HttpResponseWrapper
- java.lang.Object
-
- de.uplanet.lucy.server.connector.web.HttpResponseWrapper
-
- All Implemented Interfaces:
de.uplanet.lucy.server.connector.web.IHttpResponseWrapper
public final class HttpResponseWrapper extends Object implements de.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
-
Constructor Summary
Constructors Constructor Description HttpResponseWrapper(IServerBridgeResponse p_response)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddCookie(Cookie p_cookie)voidaddCookie(javax.servlet.http.Cookie p_cookie)voidaddDateHeader(String p_strName, long p_lTime)voidaddHeader(String p_strName, String p_strValue)voidaddIntHeader(String p_strName, int p_iValue)booleancontainsHeader(String p_strName)StringencodeRedirectUrl(String p_strUrl)Deprecated.StringencodeRedirectURL(String p_strUrl)StringencodeUrl(String p_strUrl)Deprecated.StringencodeURL(String p_strUrl)voidflushBuffer()intgetBufferSize()StringgetCharacterEncoding()StringgetContentType()StringgetHeader(String p_strName)Collection<String>getHeaderNames()Collection<String>getHeaders(String p_strName)booleangetIgnoreWrite()LocalegetLocale()OutputStreamgetOutputStream()intgetStatus()WritergetWriter()booleanisCommitted()voidreset()voidresetBuffer()voidsendError(int p_iStatus)voidsendError(int p_iStatus, String p_strMsg)voidsendRedirect(String p_strLocation)voidsetBufferSize(int p_iBufSize)voidsetCharacterEncoding(String p_strEncoding)voidsetContentDisposition(String p_strDispositionType, String p_strFileName)voidsetContentLength(int p_iContentLength)voidsetContentLengthLong(long p_lContentLength)voidsetContentType(String p_strContentType)voidsetDateHeader(String p_strName, long p_lTime)voidsetHeader(String p_strName, String p_strValue)voidsetIgnoreWrite(boolean p_bIgnoreWrite)voidsetIntHeader(String p_strName, int p_iValue)voidsetLocale(Locale p_locale)voidsetStatus(int p_iStatus)voidsetStatus(int p_iStatus, String p_strMsg)Deprecated.
-
-
-
Constructor Detail
-
HttpResponseWrapper
public HttpResponseWrapper(IServerBridgeResponse p_response)
-
-
Method Detail
-
getIgnoreWrite
public boolean getIgnoreWrite()
- Specified by:
getIgnoreWritein interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
setIgnoreWrite
public void setIgnoreWrite(boolean p_bIgnoreWrite)
- Specified by:
setIgnoreWritein interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
setContentDisposition
public void setContentDisposition(String p_strDispositionType, String p_strFileName)
- Specified by:
setContentDispositionin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
reset
public void reset()
- Specified by:
resetin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStreamin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Throws:
IOException
-
getWriter
public Writer getWriter() throws IOException
- Specified by:
getWriterin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Throws:
IOException
-
getBufferSize
public int getBufferSize()
- Specified by:
getBufferSizein interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Throws:
UnsupportedOperationException- Always.
-
setBufferSize
public void setBufferSize(int p_iBufSize)
- Specified by:
setBufferSizein interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Throws:
UnsupportedOperationException- Always.
-
resetBuffer
public void resetBuffer()
- Specified by:
resetBufferin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Throws:
UnsupportedOperationException- Always.
-
flushBuffer
public void flushBuffer()
- Specified by:
flushBufferin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Throws:
UnsupportedOperationException- Always.
-
isCommitted
public boolean isCommitted()
- Specified by:
isCommittedin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Returns:
- Always
falsewith the current implementation.
-
getCharacterEncoding
public String getCharacterEncoding()
- Specified by:
getCharacterEncodingin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
getLocale
public Locale getLocale()
- Specified by:
getLocalein interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Throws:
UnsupportedOperationException- Always.
-
setLocale
public void setLocale(Locale p_locale)
- Specified by:
setLocalein interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Throws:
UnsupportedOperationException- Always.
-
setContentLength
public void setContentLength(int p_iContentLength)
- Specified by:
setContentLengthin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Throws:
UnsupportedOperationException- Always.
-
setContentLengthLong
public void setContentLengthLong(long p_lContentLength)
- Specified by:
setContentLengthLongin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Throws:
UnsupportedOperationException- Always.
-
setContentType
public void setContentType(String p_strContentType)
- Specified by:
setContentTypein interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
setStatus
public void setStatus(int p_iStatus)
- Specified by:
setStatusin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
getStatus
public int getStatus()
- Specified by:
getStatusin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
setStatus
@Deprecated public void setStatus(int p_iStatus, String p_strMsg)
Deprecated.- Specified by:
setStatusin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
sendError
public void sendError(int p_iStatus, String p_strMsg) throws IOException- Specified by:
sendErrorin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Throws:
IOException
-
sendError
public void sendError(int p_iStatus) throws IOException- Specified by:
sendErrorin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Throws:
IOException
-
sendRedirect
public void sendRedirect(String p_strLocation) throws IOException
- Specified by:
sendRedirectin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Throws:
IOException
-
setCharacterEncoding
public void setCharacterEncoding(String p_strEncoding)
- Specified by:
setCharacterEncodingin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Throws:
UnsupportedOperationException- Always.
-
getHeaders
public Collection<String> getHeaders(String p_strName)
- Specified by:
getHeadersin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
getHeaderNames
public Collection<String> getHeaderNames()
- Specified by:
getHeaderNamesin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
getHeader
public String getHeader(String p_strName)
- Specified by:
getHeaderin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
setHeader
public void setHeader(String p_strName, String p_strValue)
- Specified by:
setHeaderin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
setDateHeader
public void setDateHeader(String p_strName, long p_lTime)
- Specified by:
setDateHeaderin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
setIntHeader
public void setIntHeader(String p_strName, int p_iValue)
- Specified by:
setIntHeaderin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
addDateHeader
public void addDateHeader(String p_strName, long p_lTime)
- Specified by:
addDateHeaderin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Throws:
UnsupportedOperationException- Always.
-
addHeader
public void addHeader(String p_strName, String p_strValue)
- Specified by:
addHeaderin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Throws:
UnsupportedOperationException- Always.
-
addIntHeader
public void addIntHeader(String p_strName, int p_iValue)
- Specified by:
addIntHeaderin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Throws:
UnsupportedOperationException- Always.
-
containsHeader
public boolean containsHeader(String p_strName)
- Specified by:
containsHeaderin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
addCookie
public void addCookie(Cookie p_cookie)
- Specified by:
addCookiein interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
addCookie
public void addCookie(javax.servlet.http.Cookie p_cookie)
- Specified by:
addCookiein interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
encodeRedirectURL
public String encodeRedirectURL(String p_strUrl)
- Specified by:
encodeRedirectURLin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Throws:
UnsupportedOperationException- Always.
-
encodeRedirectUrl
@Deprecated public String encodeRedirectUrl(String p_strUrl)
Deprecated.- Specified by:
encodeRedirectUrlin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Throws:
UnsupportedOperationException- Always.
-
encodeURL
public String encodeURL(String p_strUrl)
- Specified by:
encodeURLin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Throws:
UnsupportedOperationException- Always.
-
encodeUrl
@Deprecated public String encodeUrl(String p_strUrl)
Deprecated.- Specified by:
encodeUrlin interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper- Throws:
UnsupportedOperationException- Always.
-
-