This interface wraps the Socket and/or SSLSocket to provide clients an output set of APIs without exposing the underlying Socket/SSLSocket.
The APIs, writeFromBuffer and write are identical to Socket and SSLSocket, thus this interface can directly pass through to the underlying connection.
Note: Transport exception may or may not contains SSL information. This depends on whether or not the underlying connection is secure or not.
C++ Example:
HttpsURLConnection_var hc = HttpsURLConnection::_narrow( ... );
..... set properties .....
SocketOutputStream_var sos = hc->getOutputStream();
sos->write(buffer);
Java Example:
Sends data to the peer.
void write ( in XDT::Binary data ) raises (NetComponents::TransportException, CtsSecurity::TransportException, CtsSecurity::SSLException);
Sends data in the bufferRef to the peer.
void writeFromBuffer ( in long length, in XDT::Binary bufferRef ) raises (NetComponents::TransportException, CtsSecurity::TransportException, CtsSecurity::SSLException);
Note: This method may only be called from a C++ component.
The implementation of this method expects that the bufferRef contains a a reference to the buffer. In essense you are passing a pointer. You can not do this in Java.