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 void
addCookie(Cookie p_cookie)
void
addCookie(javax.servlet.http.Cookie p_cookie)
void
addDateHeader(String p_strName, long p_lTime)
void
addHeader(String p_strName, String p_strValue)
void
addIntHeader(String p_strName, int p_iValue)
boolean
containsHeader(String p_strName)
String
encodeRedirectUrl(String p_strUrl)
Deprecated.String
encodeRedirectURL(String p_strUrl)
String
encodeUrl(String p_strUrl)
Deprecated.String
encodeURL(String p_strUrl)
void
flushBuffer()
int
getBufferSize()
String
getCharacterEncoding()
String
getContentType()
String
getHeader(String p_strName)
Collection<String>
getHeaderNames()
Collection<String>
getHeaders(String p_strName)
boolean
getIgnoreWrite()
Locale
getLocale()
OutputStream
getOutputStream()
int
getStatus()
Writer
getWriter()
boolean
isCommitted()
void
reset()
void
resetBuffer()
void
sendError(int p_iStatus)
void
sendError(int p_iStatus, String p_strMsg)
void
sendRedirect(String p_strLocation)
void
setBufferSize(int p_iBufSize)
void
setCharacterEncoding(String p_strEncoding)
void
setContentDisposition(String p_strDispositionType, String p_strFileName)
void
setContentLength(int p_iContentLength)
void
setContentLengthLong(long p_lContentLength)
void
setContentType(String p_strContentType)
void
setDateHeader(String p_strName, long p_lTime)
void
setHeader(String p_strName, String p_strValue)
void
setIgnoreWrite(boolean p_bIgnoreWrite)
void
setIntHeader(String p_strName, int p_iValue)
void
setLocale(Locale p_locale)
void
setStatus(int p_iStatus)
void
setStatus(int p_iStatus, String p_strMsg)
Deprecated.
-
-
-
Constructor Detail
-
HttpResponseWrapper
public HttpResponseWrapper(IServerBridgeResponse p_response)
-
-
Method Detail
-
getIgnoreWrite
public boolean getIgnoreWrite()
- Specified by:
getIgnoreWrite
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
setIgnoreWrite
public void setIgnoreWrite(boolean p_bIgnoreWrite)
- Specified by:
setIgnoreWrite
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
setContentDisposition
public void setContentDisposition(String p_strDispositionType, String p_strFileName)
- Specified by:
setContentDisposition
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
reset
public void reset()
- Specified by:
reset
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStream
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Throws:
IOException
-
getWriter
public Writer getWriter() throws IOException
- Specified by:
getWriter
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Throws:
IOException
-
getBufferSize
public int getBufferSize()
- Specified by:
getBufferSize
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Throws:
UnsupportedOperationException
- Always.
-
setBufferSize
public void setBufferSize(int p_iBufSize)
- Specified by:
setBufferSize
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Throws:
UnsupportedOperationException
- Always.
-
resetBuffer
public void resetBuffer()
- Specified by:
resetBuffer
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Throws:
UnsupportedOperationException
- Always.
-
flushBuffer
public void flushBuffer()
- Specified by:
flushBuffer
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Throws:
UnsupportedOperationException
- Always.
-
isCommitted
public boolean isCommitted()
- Specified by:
isCommitted
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Returns:
- Always
false
with the current implementation.
-
getCharacterEncoding
public String getCharacterEncoding()
- Specified by:
getCharacterEncoding
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
getLocale
public Locale getLocale()
- Specified by:
getLocale
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Throws:
UnsupportedOperationException
- Always.
-
setLocale
public void setLocale(Locale p_locale)
- Specified by:
setLocale
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Throws:
UnsupportedOperationException
- Always.
-
setContentLength
public void setContentLength(int p_iContentLength)
- Specified by:
setContentLength
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Throws:
UnsupportedOperationException
- Always.
-
setContentLengthLong
public void setContentLengthLong(long p_lContentLength)
- Specified by:
setContentLengthLong
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Throws:
UnsupportedOperationException
- Always.
-
setContentType
public void setContentType(String p_strContentType)
- Specified by:
setContentType
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
setStatus
public void setStatus(int p_iStatus)
- Specified by:
setStatus
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
getStatus
public int getStatus()
- Specified by:
getStatus
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
setStatus
@Deprecated public void setStatus(int p_iStatus, String p_strMsg)
Deprecated.- Specified by:
setStatus
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
sendError
public void sendError(int p_iStatus, String p_strMsg) throws IOException
- Specified by:
sendError
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Throws:
IOException
-
sendError
public void sendError(int p_iStatus) throws IOException
- Specified by:
sendError
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Throws:
IOException
-
sendRedirect
public void sendRedirect(String p_strLocation) throws IOException
- Specified by:
sendRedirect
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Throws:
IOException
-
setCharacterEncoding
public void setCharacterEncoding(String p_strEncoding)
- Specified by:
setCharacterEncoding
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Throws:
UnsupportedOperationException
- Always.
-
getHeaders
public Collection<String> getHeaders(String p_strName)
- Specified by:
getHeaders
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
getHeaderNames
public Collection<String> getHeaderNames()
- Specified by:
getHeaderNames
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
getHeader
public String getHeader(String p_strName)
- Specified by:
getHeader
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
setHeader
public void setHeader(String p_strName, String p_strValue)
- Specified by:
setHeader
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
setDateHeader
public void setDateHeader(String p_strName, long p_lTime)
- Specified by:
setDateHeader
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
setIntHeader
public void setIntHeader(String p_strName, int p_iValue)
- Specified by:
setIntHeader
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
addDateHeader
public void addDateHeader(String p_strName, long p_lTime)
- Specified by:
addDateHeader
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Throws:
UnsupportedOperationException
- Always.
-
addHeader
public void addHeader(String p_strName, String p_strValue)
- Specified by:
addHeader
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Throws:
UnsupportedOperationException
- Always.
-
addIntHeader
public void addIntHeader(String p_strName, int p_iValue)
- Specified by:
addIntHeader
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Throws:
UnsupportedOperationException
- Always.
-
containsHeader
public boolean containsHeader(String p_strName)
- Specified by:
containsHeader
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
addCookie
public void addCookie(Cookie p_cookie)
- Specified by:
addCookie
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
addCookie
public void addCookie(javax.servlet.http.Cookie p_cookie)
- Specified by:
addCookie
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
-
encodeRedirectURL
public String encodeRedirectURL(String p_strUrl)
- Specified by:
encodeRedirectURL
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Throws:
UnsupportedOperationException
- Always.
-
encodeRedirectUrl
@Deprecated public String encodeRedirectUrl(String p_strUrl)
Deprecated.- Specified by:
encodeRedirectUrl
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Throws:
UnsupportedOperationException
- Always.
-
encodeURL
public String encodeURL(String p_strUrl)
- Specified by:
encodeURL
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Throws:
UnsupportedOperationException
- Always.
-
encodeUrl
@Deprecated public String encodeUrl(String p_strUrl)
Deprecated.- Specified by:
encodeUrl
in interfacede.uplanet.lucy.server.connector.web.IHttpResponseWrapper
- Throws:
UnsupportedOperationException
- Always.
-
-