de.uplanet.lucy.server.connector
Interface IServerBridgeResponse


public interface IServerBridgeResponse

Version:
$Revision: 66920 $

Method Summary
 java.nio.charset.Charset getCharset()
          Get this response's charset.
 java.lang.String getCharsetName()
          Get this response charset's name.
 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.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.
 

Method Detail

setHeaderValue

void setHeaderValue(java.lang.String p_strKey,
                    java.lang.String p_strValue)
Set one name-value pair into the header map.

Parameters:
p_strKey - The header key.
p_strValue - The header value.

getHeaderValue

java.lang.String getHeaderValue(java.lang.String p_strKey)
Get a header info value to a specified key.

Parameters:
p_strKey - The header info key.
Returns:
The header value.

getHeaderValueMap

java.util.Map<java.lang.String,java.lang.String> getHeaderValueMap()
Get a reference to the internal header map.

Returns:
The header info map.

getOutputStream

java.io.OutputStream getOutputStream()
Get the socket output stream.

Returns:
The socket output stream.

getCharsetName

java.lang.String getCharsetName()
Get this response charset's name.

Returns:
The charset.

getCharset

java.nio.charset.Charset getCharset()
Get this response's charset.

Returns:
The charset.

setCharset

void setCharset(java.lang.String p_strCharsetName,
                java.nio.charset.Charset p_charset)
Set this response's charset.

This method should only be called once.

Parameters:
p_strCharsetName - The name of the charset to be set.
p_charset - The charset to be set.

getWriter

java.io.Writer getWriter()
Get a writer to the underlying output stream with the given charset.

Returns:
The writer.


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