Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / tao / PI_Server / ServerRequestDetails.inl
blob741f4e884816fac2038c0480fcfe6c589e505349
1 // -*- C++ -*-
2 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
4 namespace TAO
6   ACE_INLINE
7   ServerRequestDetails::ServerRequestDetails (void)
8     : processing_mode_(PortableInterceptor::LOCAL_AND_REMOTE)
9   {
10   }
12   ACE_INLINE
13   bool
14   ServerRequestDetails::should_be_processed (bool is_remote_request) const
15   {
16     return ((this->processing_mode_ == PortableInterceptor::LOCAL_AND_REMOTE) ||
17             ((this->processing_mode_ == PortableInterceptor::REMOTE_ONLY) &&
18              (is_remote_request)) ||
19             ((this->processing_mode_ == PortableInterceptor::LOCAL_ONLY) &&
20              (!is_remote_request)));
21   }
24 TAO_END_VERSIONED_NAMESPACE_DECL