summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Proxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/Proxy.cpp')
-rw-r--r--cpp/src/Ice/Proxy.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/cpp/src/Ice/Proxy.cpp b/cpp/src/Ice/Proxy.cpp
index 44636a6e387..50bac167724 100644
--- a/cpp/src/Ice/Proxy.cpp
+++ b/cpp/src/Ice/Proxy.cpp
@@ -548,6 +548,27 @@ IceProxy::Ice::Object::ice_secure(bool b) const
}
}
+bool
+IceProxy::Ice::Object::ice_isPreferSecure() const
+{
+ return _reference->getPreferSecure();
+}
+
+ObjectPrx
+IceProxy::Ice::Object::ice_preferSecure(bool b) const
+{
+ if(b == _reference->getPreferSecure())
+ {
+ return ObjectPrx(const_cast< ::IceProxy::Ice::Object*>(this));
+ }
+ else
+ {
+ ObjectPrx proxy(new ::IceProxy::Ice::Object());
+ proxy->setup(_reference->changePreferSecure(b));
+ return proxy;
+ }
+}
+
RouterPrx
IceProxy::Ice::Object::ice_getRouter() const
{