com.ibm.wsspi.sibx.context
Interface Context


public interface Context

This interface is implemented by objects that wish to be stored in the Context Store.


Field Summary
static java.lang.String $sccsid
           
static java.lang.String COPYRIGHT
           
 
Method Summary
 boolean isContextPersistent()
          Returns an indication of whether this context needs to be persisted.
 void read(java.io.InputStream in)
          Reads the context from the given stream.
 void write(java.io.OutputStream out)
          Writes the context to the given stream.
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

$sccsid

public static final java.lang.String $sccsid
See Also:
Constant Field Values
Method Detail

read

public void read(java.io.InputStream in)
          throws java.io.IOException
Reads the context from the given stream.

Only invoked if the context is to be persisted.

Parameters:
in - The input stream.
Throws:
java.io.IOException - An error occurred reading from the stream.

write

public void write(java.io.OutputStream out)
           throws java.io.IOException
Writes the context to the given stream.

Only invoked if the context is to be persisted.

Parameters:
out -
Throws:
java.io.IOException - An error occurred writing to the stream.

isContextPersistent

public boolean isContextPersistent()
Returns an indication of whether this context needs to be persisted.

Returns:
Indicates whether this context needs to be persisted.