public interface IServerBridgeResponse
Modifier and Type | Method and Description |
---|---|
void |
addCookie(de.uplanet.net.http.ICookie p_cookie)
Add a cookie to the response or replace a cookie in the response.
|
java.nio.charset.Charset |
getCharset()
Get this response's charset.
|
java.lang.String |
getCharsetName()
Get this response charset's name.
|
java.util.List<de.uplanet.net.http.ICookie> |
getCookieList()
Get a reference to the internal cookie list.
|
java.lang.String |
getHeaderValue(java.lang.String p_strKey)
Get a header info value to a specified key.
|
java.util.Map<java.lang.String,java.lang.String> |
getHeaderValueMap()
Get a reference to the internal header map.
|
java.io.OutputStream |
getOutputStream()
Get the socket output stream.
|
java.lang.String |
getReasonPhrase()
Deprecated.
|
int |
getStatus()
Get the HTTP status.
|
java.io.Writer |
getWriter()
Get a writer to the underlying output stream with the given charset.
|
void |
setCharset(java.lang.String p_strCharsetName,
java.nio.charset.Charset p_charset)
Set this response's charset.
|
void |
setHeaderValue(java.lang.String p_strKey,
java.lang.String p_strValue)
Set one name-value pair into the header map.
|
void |
setStatus(int p_iStatus)
Set the HTTP status and message.
|
void |
setStatus(int p_iStatus,
java.lang.String p_strReasonPhrase)
Deprecated.
Use
setStatus(int) instead. |
void setStatus(int p_iStatus)
p_iStatus
- The HTTP status code.@Deprecated void setStatus(int p_iStatus, java.lang.String p_strReasonPhrase)
setStatus(int)
instead.p_iStatus
- The HTTP status code.p_strReasonPhrase
- The reason phrase.int getStatus()
@Deprecated java.lang.String getReasonPhrase()
Note: This method is for internal use only. It must not be used in scripts.
void setHeaderValue(java.lang.String p_strKey, java.lang.String p_strValue)
p_strKey
- The header key.p_strValue
- The header value.java.lang.String getHeaderValue(java.lang.String p_strKey)
p_strKey
- The header info key.java.util.Map<java.lang.String,java.lang.String> getHeaderValueMap()
Note: This method is for internal use only. It must not be used in scripts.
void addCookie(de.uplanet.net.http.ICookie p_cookie)
An already existing cookie is being replaced if it is considered equal according to RFC 2965, 3.3.3, ie.
p_cookie
- The cookie to be added.java.util.List<de.uplanet.net.http.ICookie> getCookieList()
Note: This method is for internal use only. It must not be used in scripts.
java.io.OutputStream getOutputStream()
java.lang.String getCharsetName()
java.nio.charset.Charset getCharset()
void setCharset(java.lang.String p_strCharsetName, java.nio.charset.Charset p_charset)
This method should only be called once.
p_strCharsetName
- The name of the charset to be set.p_charset
- The charset to be set.java.io.Writer getWriter()