// **********************************************************************
//
// Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
// Ice version 3.4.1
package Ice;
// <auto-generated>
//
// Generated from file `Properties.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
public final class _PropertiesAdminDelM extends Ice._ObjectDelM implements _PropertiesAdminDel
{
public java.util.Map<java.lang.String, java.lang.String>
getPropertiesForPrefix(String prefix, java.util.Map<String, String> __ctx)
throws IceInternal.LocalExceptionWrapper
{
IceInternal.Outgoing __og = __handler.getOutgoing("getPropertiesForPrefix", Ice.OperationMode.Normal, __ctx);
try
{
try
{
IceInternal.BasicStream __os = __og.os();
__os.writeString(prefix);
}
catch(Ice.LocalException __ex)
{
__og.abort(__ex);
}
boolean __ok = __og.invoke();
try
{
if(!__ok)
{
try
{
__og.throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name());
}
}
IceInternal.BasicStream __is = __og.is();
__is.startReadEncaps();
java.util.Map<java.lang.String, java.lang.String> __ret;
__ret = new java.util.TreeMap<String, String>();
int __sz0 = __is.readSize();
for(int __i0 = 0; __i0 < __sz0; __i0++)
{
String __key;
__key = __is.readString();
String __value;
__value = __is.readString();
__ret.put(__key, __value);
}
__is.endReadEncaps();
return __ret;
}
catch(Ice.LocalException __ex)
{
throw new IceInternal.LocalExceptionWrapper(__ex, false);
}
}
finally
{
__handler.reclaimOutgoing(__og);
}
}
public String
getProperty(String key, java.util.Map<String, String> __ctx)
throws IceInternal.LocalExceptionWrapper
{
IceInternal.Outgoing __og = __handler.getOutgoing("getProperty", Ice.OperationMode.Normal, __ctx);
try
{
try
{
IceInternal.BasicStream __os = __og.os();
__os.writeString(key);
}
catch(Ice.LocalException __ex)
{
__og.abort(__ex);
}
boolean __ok = __og.invoke();
try
{
if(!__ok)
{
try
{
__og.throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name());
}
}
IceInternal.BasicStream __is = __og.is();
__is.startReadEncaps();
String __ret;
__ret = __is.readString();
__is.endReadEncaps();
return __ret;
}
catch(Ice.LocalException __ex)
{
throw new IceInternal.LocalExceptionWrapper(__ex, false);
}
}
finally
{
__handler.reclaimOutgoing(__og);
}
}
}