Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ locate()

virtual ObjectPtr Ice::ServantLocator::locate ( const Current & curr,
std::shared_ptr< void > & cookie )
pure virtual

Asks this servant locator to find and return a servant.

Remarks
The caller (the object adapter) does not insert the returned servant into its Active Servant Map.
The implementation can throw any exception, including UserException. The Ice runtime marshals this exception in the response.
Parameters
currInformation about the incoming request being dispatched.
cookieA "cookie" that will be passed to finished.
Returns
The located servant, or nullptr if no suitable servant has been found.