org.omg.PortableServer.ServantLocatorPackage
Class CookieHolder

java.lang.Object
  extended by org.omg.PortableServer.ServantLocatorPackage.CookieHolder
All Implemented Interfaces:
Streamable

public final class CookieHolder
extends Object
implements Streamable

The CookieHolder is used together with the ServantLocator, allowing the ServantLocatorOperations.preinvoke(byte[], org.omg.PortableServer.POA, java.lang.String, org.omg.PortableServer.ServantLocatorPackage.CookieHolder) to return an arbitrary java.lang.Object that will be later passed to ServantLocatorOperations.postinvoke(byte[], org.omg.PortableServer.POA, java.lang.String, java.lang.Object, org.omg.PortableServer.Servant).

See Also:
ServantLocatorOperations, ServantManager

Field Summary
 Object value
          The wrapped java.lang.Object.
 
Constructor Summary
CookieHolder()
          Create the unitialised instance of this holder.
CookieHolder(Object initial)
          Create the instance, intialising the value field to the passed value.
 
Method Summary
 void _read(InputStream input)
          java.lang.Object is outside the scope of the CORBA standards and the read operation cannot be supported in a language-neutral way.
 TypeCode _type()
          There is no CORBA typecode that would specifically match a java.lang.Object.
 void _write(OutputStream output)
          java.lang.Object is outside the scope of the CORBA standards and the write operation cannot be supported in a language-neutral way.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

public Object value
The wrapped java.lang.Object.

Constructor Detail

CookieHolder

public CookieHolder()
Create the unitialised instance of this holder.


CookieHolder

public CookieHolder(Object initial)
Create the instance, intialising the value field to the passed value.

Method Detail

_read

public void _read(InputStream input)
java.lang.Object is outside the scope of the CORBA standards and the read operation cannot be supported in a language-neutral way.

Specified by:
_read in interface Streamable
Parameters:
input - the input stream to read from.
Throws:
NO_IMPLEMENT - always.

_type

public TypeCode _type()
There is no CORBA typecode that would specifically match a java.lang.Object.

Specified by:
_type in interface Streamable
Throws:
NO_IMPLEMENT - always.

_write

public void _write(OutputStream output)
java.lang.Object is outside the scope of the CORBA standards and the write operation cannot be supported in a language-neutral way.

Specified by:
_write in interface Streamable
Parameters:
output - the output stream to write into.
Throws:
NO_IMPLEMENT - always.