summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/interceptor/InterceptorI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/interceptor/InterceptorI.cpp')
-rw-r--r--cpp/test/Ice/interceptor/InterceptorI.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/cpp/test/Ice/interceptor/InterceptorI.cpp b/cpp/test/Ice/interceptor/InterceptorI.cpp
index e618db8d34c..99807d8c0d8 100644
--- a/cpp/test/Ice/interceptor/InterceptorI.cpp
+++ b/cpp/test/Ice/interceptor/InterceptorI.cpp
@@ -19,13 +19,13 @@ InterceptorI::InterceptorI(const Ice::ObjectPtr& servant) :
{
}
-
-Ice::DispatchStatus
+
+Ice::DispatchStatus
InterceptorI::dispatch(Ice::Request& request)
{
Ice::Current& current = const_cast<Ice::Current&>(request.getCurrent());
_lastOperation = current.operation;
-
+
if(_lastOperation == "addWithRetry")
{
for(int i = 0; i < 10; ++i)
@@ -42,26 +42,26 @@ InterceptorI::dispatch(Ice::Request& request)
//
}
}
-
+
current.ctx["retry"] = "no";
}
_lastStatus = _servant->ice_dispatch(request);
return _lastStatus;
}
-
-Ice::DispatchStatus
+
+Ice::DispatchStatus
InterceptorI::getLastStatus() const
{
return _lastStatus;
}
-const std::string&
+const std::string&
InterceptorI::getLastOperation() const
{
return _lastOperation;
}
-
-void
+
+void
InterceptorI::clear()
{
_lastStatus = Ice::DispatchAsync;