IT_reqTransformer provides access to the OrbixWeb request data buffer immediately prior to transmission over the network. This feature is useful for operations in which such access is necessary, for example request encryption.A transformer class can be implemented by declaring a derived class of
IT_reqTransformer and overriding the IT_reqTransformer methods; the method transform() provides access to the request buffer, transform_error() allows an implementation specific error to be returned (or null if no error exists).If an OrbixWeb client implements a non-null
IT_reqTransformer then servers with which that client communicates must implement a matching IT_reqTransformer.
// Java
package IE.Iona.Orbix2.CORBA;
public class IT_reqTransformer {
// Methods
public boolean transform(_sequence_Octet data,
String host, boolean is_send);
public String transform_error();
}
public boolean transform(_sequence_Octet data, String host, boolean is_send);
CORBA.Request. This method is automatically invoked on the registered transformer object immediately prior to transmitting data in a CORBA.Request (and after any filtering) and directly subsequent (before any filtering) to receiving data in a CORBA.Request. A derived class of
CORBA.IT_reqTransformer should override this method to implement a transformation.An implementation of this method may raise a
TRANSFORM_ERR system exception to indicate that an error has occurred during the transformation.
true if the transformation is successful, returns false otherwise.
CORBA.Filter
public String transform_error();
transform() method. A derived class may override this method to return a text string specific to the transformation implemented by the class.