org.jacorb.orb

Class IORMutator

public abstract class IORMutator extends Object

IORMutator is a low level plugin that allows the user to mutate incoming or outgoing objects at the CDRStream level. If the plugin is enabled both mutators will be called by the respective CDRStreams. Note - While this allows the user a lot of power altering objects at a very low level, it is the user's responsibility to ensure that any IOR returned is valid.

Version: $Id: IORMutator.java,v 1.1 2006/07/10 08:56:00 alphonse.bendt Exp $

Author: Nick Cross

Field Summary
protected Connectionconnection
connection is the ETF transport describing the connection that this mutator is used for.
Method Summary
abstract IORmutateIncoming(IOR object)
mutateIncoming is called by CDRInputStream::readObject.
abstract IORmutateOutgoing(IOR object)
mutateOutgoing is called by CDROutputStream::writeObject.
voidupdateConnection(Connection connection)
updateConnection is used to update the ETFConnection information.

Field Detail

connection

protected Connection connection
connection is the ETF transport describing the connection that this mutator is used for. This should not be altered by the user; any attempt to do so is undefined.

Method Detail

mutateIncoming

public abstract IOR mutateIncoming(IOR object)
mutateIncoming is called by CDRInputStream::readObject. This allows the user to alter the IOR according the their own wishes.

Parameters: object an IOR value

Returns: an IOR value

mutateOutgoing

public abstract IOR mutateOutgoing(IOR object)
mutateOutgoing is called by CDROutputStream::writeObject. This allows the user to alter the IOR according the their own wishes.

Parameters: object an IOR value

Returns: an IOR value

updateConnection

public void updateConnection(Connection connection)
updateConnection is used to update the ETFConnection information.

Parameters: connection a Connection value