public OutputStream _invoke(String method, InputStream in, ResponseHandler rh)
{
OutputStream out = null;
Integer __method = (Integer) _methods.get(method);
if (__method == null)
throw new BAD_OPERATION(method, 0, CompletionStatus.COMPLETED_MAYBE);
switch (__method.intValue())
{
/**
* Set the name of POA to that subsequent operations
* will apply. This POA must be the child of the POA
* to that this remotePoaControl servant is connected.
*/
case 0 : // gnu/classpath/examples/CORBA/SimpleCommunication/communication/remotePoaControl/setControlTarget
{
String child_poa_name = in.read_string();
this.setControlTarget(child_poa_name);
out = rh.createReply();
break;
}
/**
* Set the mode of the POA being controlled (active,
* holding, discarding, deactivated).
*/
case 1 : // gnu/classpath/examples/CORBA/SimpleCommunication/communication/remotePoaControl/setPoaMode
{
int mode = in.read_long();
this.setPoaMode(mode);
out = rh.createReply();
break;
}
/**
* Get the mode of POA being controlled.
*/
case 2 : // gnu/classpath/examples/CORBA/SimpleCommunication/communication/remotePoaControl/getPoaMode
{
int result = getPoaMode();
out = rh.createReply();
out.write_long(result);
break;
}
default :
throw new BAD_OPERATION(0, CompletionStatus.COMPLETED_MAYBE);
}
return out;
} // _invoke