blob: 800fdd7b8b9cf891e01e642447444fe7ca428b02 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.codesets;
//
// IDL:TestCodeSets:1.0
//
public class _TestCodeSetsStub extends org.omg.CORBA.portable.ObjectImpl
implements TestCodeSets
{
private static final String[] _ob_ids_ =
{
"IDL:TestCodeSets:1.0",
};
public String[]
_ids()
{
return _ob_ids_;
}
final public static java.lang.Class _ob_opsClass = TestCodeSetsOperations.class;
//
// IDL:TestCodeSets/testChar:1.0
//
public char
testChar(char _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("testChar", true);
out.write_char(_ob_a0);
in = _invoke(out);
char _ob_r = in.read_char();
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("testChar", _ob_opsClass);
if(_ob_so == null)
continue;
TestCodeSetsOperations _ob_self = (TestCodeSetsOperations)_ob_so.servant;
try
{
return _ob_self.testChar(_ob_a0);
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestCodeSets/testString:1.0
//
public String
testString(String _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("testString", true);
out.write_string(_ob_a0);
in = _invoke(out);
String _ob_r = in.read_string();
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("testString", _ob_opsClass);
if(_ob_so == null)
continue;
TestCodeSetsOperations _ob_self = (TestCodeSetsOperations)_ob_so.servant;
try
{
return _ob_self.testString(_ob_a0);
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestCodeSets/testWChar:1.0
//
public char
testWChar(char _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("testWChar", true);
out.write_wchar(_ob_a0);
in = _invoke(out);
char _ob_r = in.read_wchar();
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("testWChar", _ob_opsClass);
if(_ob_so == null)
continue;
TestCodeSetsOperations _ob_self = (TestCodeSetsOperations)_ob_so.servant;
try
{
return _ob_self.testWChar(_ob_a0);
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestCodeSets/testWString:1.0
//
public String
testWString(String _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("testWString", true);
out.write_wstring(_ob_a0);
in = _invoke(out);
String _ob_r = in.read_wstring();
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("testWString", _ob_opsClass);
if(_ob_so == null)
continue;
TestCodeSetsOperations _ob_self = (TestCodeSetsOperations)_ob_so.servant;
try
{
return _ob_self.testWString(_ob_a0);
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestCodeSets/deactivate:1.0
//
public void
deactivate()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("deactivate", true);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("deactivate", _ob_opsClass);
if(_ob_so == null)
continue;
TestCodeSetsOperations _ob_self = (TestCodeSetsOperations)_ob_so.servant;
try
{
_ob_self.deactivate();
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
}