public static String buildContextUrlFromOperationCall ( ODataUri oDataUri , EntityDataModel entityDataModel , boolean isPrimitive ) { String serviceRoot = oDataUri . serviceRoot ( ) ; String returnType = ODataUriUtil . getOperationReturnType ( oDataUri , entityDataModel ) ; return serviceRoot + "/" + METADATA + "#" + returnType + ( isPrimitive ? "" : "/$entity" ) ; }
Builds the Context URL when the request is an action or function call .