blob: ae12e77f900eb046203b987b6c1a3ea44cd35ef8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
#include <Ice/DispatchInterceptor.h>
#include <Ice/IncomingRequest.h>
#include <Ice/LocalException.h>
using namespace Ice;
using namespace IceInternal;
bool
Ice::DispatchInterceptor::_iceDispatch(IceInternal::Incoming& in, const Current& /*current*/)
{
try
{
IncomingRequest request(in);
return dispatch(request);
}
catch(const ResponseSentException&)
{
return false;
}
catch(const std::exception&)
{
//
// If the input parameters weren't read, make sure we skip them here. It's needed to read the
// encoding version used by the client to eventually marshal the user exception. It's also needed
// if we are dispatch a batch oneway request to read the next batch request.
//
if(in.getCurrent().encoding.major == 0 && in.getCurrent().encoding.minor == 0)
{
in.skipReadParams();
}
throw;
}
}
|