summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/FixedReference.java
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2008-01-15 10:15:19 +0100
committerBenoit Foucher <benoit@zeroc.com>2008-01-15 10:15:19 +0100
commitf00672fd53741dc528b81ed7f53dcca8276c2014 (patch)
tree3625b90e69b8b3ffefc35567c1eeafb2ef07c276 /java/src/IceInternal/FixedReference.java
parentMore documentation changes wrt mcpp usage. (diff)
downloadice-f00672fd53741dc528b81ed7f53dcca8276c2014.tar.bz2
ice-f00672fd53741dc528b81ed7f53dcca8276c2014.tar.xz
ice-f00672fd53741dc528b81ed7f53dcca8276c2014.zip
Fixed bug 1359
Diffstat (limited to 'java/src/IceInternal/FixedReference.java')
-rw-r--r--java/src/IceInternal/FixedReference.java23
1 files changed, 13 insertions, 10 deletions
diff --git a/java/src/IceInternal/FixedReference.java b/java/src/IceInternal/FixedReference.java
index 64f0818a88b..bc43460b555 100644
--- a/java/src/IceInternal/FixedReference.java
+++ b/java/src/IceInternal/FixedReference.java
@@ -145,15 +145,6 @@ public class FixedReference extends Reference
}
public Reference
- changeCompress(boolean newCompress)
- {
- // TODO: FixedReferences should probably have a _compress flag,
- // that gets its default from the fixed connection this reference
- // refers to. This should be changable with changeCompress().
- throw new Ice.FixedProxyException();
- }
-
- public Reference
changeTimeout(int newTimeout)
{
throw new Ice.FixedProxyException();
@@ -193,8 +184,20 @@ public class FixedReference extends Reference
Ice.ConnectionI connection = filteredConns[0];
assert(connection != null);
connection.throwException(); // Throw in case our connection is already destroyed.
- compress.value = connection.endpoint().compress();
+ DefaultsAndOverrides defaultsAndOverrides = getInstance().defaultsAndOverrides();
+ if(defaultsAndOverrides.overrideCompress)
+ {
+ compress.value = defaultsAndOverrides.overrideCompressValue;
+ }
+ else if(_overrideCompress)
+ {
+ compress.value = _compress;
+ }
+ else
+ {
+ compress.value = connection.endpoint().compress();
+ }
return connection;
}