diff options
author | Matthew Newhook <matthew@zeroc.com> | 2014-10-20 11:40:05 -0230 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2014-10-20 11:40:05 -0230 |
commit | b51469b41167fb86ae2059a15cf0475c53fdda7b (patch) | |
tree | fc85d6ca2efd89c67e1e4e7438f437c3e08313f4 /java/src/Ice/ObjectPrxHelper.java | |
parent | Fixed (ICE-5695) - IceSSL: misleading exception (diff) | |
download | ice-b51469b41167fb86ae2059a15cf0475c53fdda7b.tar.bz2 ice-b51469b41167fb86ae2059a15cf0475c53fdda7b.tar.xz ice-b51469b41167fb86ae2059a15cf0475c53fdda7b.zip |
Down with ant. From the gradle to the grave.
Diffstat (limited to 'java/src/Ice/ObjectPrxHelper.java')
-rw-r--r-- | java/src/Ice/ObjectPrxHelper.java | 157 |
1 files changed, 0 insertions, 157 deletions
diff --git a/java/src/Ice/ObjectPrxHelper.java b/java/src/Ice/ObjectPrxHelper.java deleted file mode 100644 index c390823e61f..00000000000 --- a/java/src/Ice/ObjectPrxHelper.java +++ /dev/null @@ -1,157 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2014 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. -// -// ********************************************************************** - -package Ice; - -/** - * Base class for all proxy helpers. - **/ -public class ObjectPrxHelper extends ObjectPrxHelperBase -{ - /** - * Casts a proxy to {@link Ice.ObjectPrx}. This call contacts - * the server and will throw an Ice run-time exception if the target - * object does not exist or the server cannot be reached. - * - * @param b The proxy to cast to @{link Ice.ObjectPrx}. - * @return <code>b</code>. - **/ - public static ObjectPrx - checkedCast(Ice.ObjectPrx b) - { - return b; - } - - /** - * Casts a proxy to {@link Ice.ObjectPrx}. This call contacts - * the server and throws an Ice run-time exception if the target - * object does not exist or the server cannot be reached. - * - * @param b The proxy to cast to {@link Ice.ObjectPrx}. - * @param ctx The <code>Context</code> map for the invocation. - * @return <code>b</code>. - **/ - public static ObjectPrx - checkedCast(Ice.ObjectPrx b, java.util.Map<String, String> ctx) - { - return b; - } - - /** - * Creates a new proxy that is identical to the passed proxy, except - * for its facet. This call contacts - * the server and throws an Ice run-time exception if the target - * object does not exist, the specified facet does not exist, or the server cannot be reached. - * - * @param b The proxy to cast to {@link Ice.ObjectPrx}. - * @param f The facet for the new proxy. - * @return The new proxy with the specified facet. - **/ - public static ObjectPrx - checkedCast(Ice.ObjectPrx b, String f) - { - ObjectPrx d = null; - if(b != null) - { - Ice.ObjectPrx bb = b.ice_facet(f); - try - { - boolean ok = bb.ice_isA("::Ice::Object"); - assert(ok); - ObjectPrxHelper h = new ObjectPrxHelper(); - h.__copyFrom(bb); - d = h; - } - catch(Ice.FacetNotExistException ex) - { - } - } - return d; - } - - /** - * Creates a new proxy that is identical to the passed proxy, except - * for its facet. This call contacts - * the server and throws an Ice run-time exception if the target - * object does not exist, the specified facet does not exist, or the server cannot be reached. - * - * @param b The proxy to cast to {@link Ice.ObjectPrx}. - * @param f The facet for the new proxy. - * @param ctx The <code>Context</code> map for the invocation. - * @return The new proxy with the specified facet. - **/ - public static ObjectPrx - checkedCast(Ice.ObjectPrx b, String f, java.util.Map<String, String> ctx) - { - ObjectPrx d = null; - if(b != null) - { - Ice.ObjectPrx bb = b.ice_facet(f); - try - { - boolean ok = bb.ice_isA("::Ice::Object", ctx); - assert(ok); - ObjectPrxHelper h = new ObjectPrxHelper(); - h.__copyFrom(bb); - d = h; - } - catch(Ice.FacetNotExistException ex) - { - } - } - return d; - } - - /** - * Casts a proxy to {@link Ice.ObjectPrx}. This call does - * not contact the server and always succeeds. - * - * @param b The proxy to cast to {@link Ice.ObjectPrx}. - * @return <code>b</code>. - **/ - public static ObjectPrx - uncheckedCast(Ice.ObjectPrx b) - { - return b; - } - - /** - * Creates a new proxy that is identical to the passed proxy, except - * for its facet. This call does not contact the server and always succeeds. - * - * @param b The proxy to cast to {@link Ice.ObjectPrx}. - * @param f The facet for the new proxy. - * @return The new proxy with the specified facet. - **/ - public static ObjectPrx - uncheckedCast(Ice.ObjectPrx b, String f) - { - ObjectPrx d = null; - if(b != null) - { - Ice.ObjectPrx bb = b.ice_facet(f); - ObjectPrxHelper h = new ObjectPrxHelper(); - h.__copyFrom(bb); - d = h; - } - return d; - } - - /** - * Returns the Slice type id of the interface or class associated - * with this proxy class. - * - * @return the type id, "::Ice::Object" - **/ - public static String - ice_staticId() - { - return Ice.ObjectImpl.ice_staticId(); - } -} |