summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/ConnectionRequestHandler.java
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2014-10-20 11:40:05 -0230
committerMatthew Newhook <matthew@zeroc.com>2014-10-20 11:40:05 -0230
commitb51469b41167fb86ae2059a15cf0475c53fdda7b (patch)
treefc85d6ca2efd89c67e1e4e7438f437c3e08313f4 /java/src/IceInternal/ConnectionRequestHandler.java
parentFixed (ICE-5695) - IceSSL: misleading exception (diff)
downloadice-b51469b41167fb86ae2059a15cf0475c53fdda7b.tar.bz2
ice-b51469b41167fb86ae2059a15cf0475c53fdda7b.tar.xz
ice-b51469b41167fb86ae2059a15cf0475c53fdda7b.zip
Down with ant. From the gradle to the grave.
Diffstat (limited to 'java/src/IceInternal/ConnectionRequestHandler.java')
-rw-r--r--java/src/IceInternal/ConnectionRequestHandler.java119
1 files changed, 0 insertions, 119 deletions
diff --git a/java/src/IceInternal/ConnectionRequestHandler.java b/java/src/IceInternal/ConnectionRequestHandler.java
deleted file mode 100644
index 924b633e670..00000000000
--- a/java/src/IceInternal/ConnectionRequestHandler.java
+++ /dev/null
@@ -1,119 +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 IceInternal;
-
-public class ConnectionRequestHandler implements RequestHandler
-{
- @Override
- public RequestHandler
- connect()
- {
- assert(false); // This request handler is only created after connection binding.
- return null;
- }
-
- @Override
- public RequestHandler
- update(RequestHandler previousHandler, RequestHandler newHandler)
- {
- try
- {
- if(previousHandler == this)
- {
- return newHandler;
- }
- else if(previousHandler.getConnection() == _connection)
- {
- //
- // If both request handlers point to the same connection, we also
- // update the request handler. See bug ICE-5489 for reasons why
- // this can be useful.
- //
- return newHandler;
- }
- }
- catch(Ice.Exception ex)
- {
- // Ignore
- }
- return this;
- }
-
- @Override
- public void
- prepareBatchRequest(BasicStream out)
- throws RetryException
- {
- _connection.prepareBatchRequest(out);
- }
-
- @Override
- public void
- finishBatchRequest(BasicStream out)
- {
- _connection.finishBatchRequest(out, _compress);
- }
-
- @Override
- public void
- abortBatchRequest()
- {
- _connection.abortBatchRequest();
- }
-
- @Override
- public int sendAsyncRequest(OutgoingAsyncBase out)
- throws RetryException
- {
- return out.send(_connection, _compress, _response);
- }
-
- @Override
- public void
- asyncRequestCanceled(OutgoingAsyncBase outgoingAsync, Ice.LocalException ex)
- {
- _connection.asyncRequestCanceled(outgoingAsync, ex);
- }
-
- @Override
- public Reference
- getReference()
- {
- return _reference;
- }
-
- @Override
- public Ice.ConnectionI
- getConnection()
- {
- return _connection;
- }
-
- @Override
- public Ice.ConnectionI
- waitForConnection()
- {
- return _connection;
- }
-
- public ConnectionRequestHandler(Reference ref, Ice.ConnectionI connection, boolean compress)
- {
- _reference = ref;
- _response = _reference.getMode() == Reference.ModeTwoway;
- _connection = connection;
- _compress = compress;
- }
-
- private final Reference _reference;
- private final boolean _response;
- private final Ice.ConnectionI _connection;
- private final boolean _compress;
-
-}