package CorbaMail; /**
#pragma prefix "CorbaMail"
interface Mail {
string SendMail(
in string FROM,
in string MESSAGE,
in string SUBJECT,
in string USERINFO
)
raises(
::CorbaMail::MailError
);
};
*/
abstract public class _MailImplBase extends com.inprise.vbroker.CORBA.portable.Skeleton implements CorbaMail.Mail {
protected CorbaMail.Mail _wrapper = null;
public CorbaMail.Mail _this() {
return this;
}
protected _MailImplBase(java.lang.String name) {
super(name);
}
public _MailImplBase() {
}
public java.lang.String toString() {
try {
return super.toString();
} catch (org.omg.CORBA.SystemException ex) { // delegate may not be set yet
return "Unbound instance of CorbaMail.Mail";
}
}
public java.lang.String[] _ids() {
return __ids;
}
private static java.lang.String[] __ids = {
"IDL:CorbaMail/Mail:1.0"
};
public org.omg.CORBA.portable.MethodPointer[] _methods() {
org.omg.CORBA.portable.MethodPointer[] methods = {
new org.omg.CORBA.portable.MethodPointer("SendMail", 0, 0),
};
return methods;
}
public boolean _execute(org.omg.CORBA.portable.MethodPointer method, org.omg.CORBA.portable.InputStream input, org.omg.CORBA.portable.OutputStream output) {
switch(method.interface_id) {
case 0: {
return CorbaMail._MailImplBase._execute(_this(), method.method_id, input, output);
}
}
throw new org.omg.CORBA.MARSHAL();
}
public static boolean _execute(CorbaMail.Mail _self, int _method_id, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.OutputStream _output) {
switch(_method_id) {
case 0: {
try {
java.lang.String FROM;
FROM = _input.read_string();
java.lang.String MESSAGE;
MESSAGE = _input.read_string();
java.lang.String SUBJECT;
SUBJECT = _input.read_string();
java.lang.String USERINFO;
USERINFO = _input.read_string();
java.lang.String _result = _self.SendMail(FROM,MESSAGE,SUBJECT,USERINFO);
_output.write_string(_result);
}
catch(CorbaMail.MailError _exception) {
CorbaMail.MailErrorHelper.write(_output, _exception);
return true;
}
return false;
}
}
throw new org.omg.CORBA.MARSHAL();
}
}