com.sibvisions.rad.server
Interface IResponse


public interface IResponse

Defines an object to assist a servre in sending a response to the client.


Method Summary
 void close()
          Notifies that processing is finished.
 java.io.OutputStream getOutputStream()
          Returns an OutputStream suitable for writing binary data in the response.
 boolean isClosed()
          Gets whether the response was closed.
 void setProperty(java.lang.String pKey, java.lang.Object pValue)
          Sets a response property.
 

Method Detail

getOutputStream

java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Returns an OutputStream suitable for writing binary data in the response.

Returns:
an OutputStream for writing binary data
Throws:
java.io.IOException - if an input or output exception occurred

setProperty

void setProperty(java.lang.String pKey,
                 java.lang.Object pValue)
Sets a response property.

Parameters:
pKey - the property name
pValue - the value

close

void close()
Notifies that processing is finished.


isClosed

boolean isClosed()
Gets whether the response was closed.

Returns:
true if response was closed, false if still open


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.